1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/accessibility/null_ax_action_target.h"
6
7 namespace ui {
8
GetType() const9 AXActionTarget::Type NullAXActionTarget::GetType() const {
10 return AXActionTarget::Type::kNull;
11 }
12
ClearAccessibilityFocus() const13 bool NullAXActionTarget::ClearAccessibilityFocus() const {
14 return false;
15 }
16
Click() const17 bool NullAXActionTarget::Click() const {
18 return false;
19 }
20
Decrement() const21 bool NullAXActionTarget::Decrement() const {
22 return false;
23 }
24
Increment() const25 bool NullAXActionTarget::Increment() const {
26 return false;
27 }
28
Focus() const29 bool NullAXActionTarget::Focus() const {
30 return false;
31 }
32
GetRelativeBounds() const33 gfx::Rect NullAXActionTarget::GetRelativeBounds() const {
34 return gfx::Rect();
35 }
36
GetScrollOffset() const37 gfx::Point NullAXActionTarget::GetScrollOffset() const {
38 return gfx::Point();
39 }
40
MinimumScrollOffset() const41 gfx::Point NullAXActionTarget::MinimumScrollOffset() const {
42 return gfx::Point();
43 }
44
MaximumScrollOffset() const45 gfx::Point NullAXActionTarget::MaximumScrollOffset() const {
46 return gfx::Point();
47 }
48
SetAccessibilityFocus() const49 bool NullAXActionTarget::SetAccessibilityFocus() const {
50 return false;
51 }
52
SetScrollOffset(const gfx::Point & point) const53 void NullAXActionTarget::SetScrollOffset(const gfx::Point& point) const {}
54
SetSelected(bool selected) const55 bool NullAXActionTarget::SetSelected(bool selected) const {
56 return false;
57 }
58
SetSelection(const AXActionTarget * anchor_object,int anchor_offset,const AXActionTarget * focus_object,int focus_offset) const59 bool NullAXActionTarget::SetSelection(const AXActionTarget* anchor_object,
60 int anchor_offset,
61 const AXActionTarget* focus_object,
62 int focus_offset) const {
63 return false;
64 }
65
SetSequentialFocusNavigationStartingPoint() const66 bool NullAXActionTarget::SetSequentialFocusNavigationStartingPoint() const {
67 return false;
68 }
69
SetValue(const std::string & value) const70 bool NullAXActionTarget::SetValue(const std::string& value) const {
71 return false;
72 }
73
ShowContextMenu() const74 bool NullAXActionTarget::ShowContextMenu() const {
75 return false;
76 }
77
ScrollToMakeVisible() const78 bool NullAXActionTarget::ScrollToMakeVisible() const {
79 return false;
80 }
81
ScrollToMakeVisibleWithSubFocus(const gfx::Rect & rect,ax::mojom::ScrollAlignment horizontal_scroll_alignment,ax::mojom::ScrollAlignment vertical_scroll_alignment,ax::mojom::ScrollBehavior scroll_behavior) const82 bool NullAXActionTarget::ScrollToMakeVisibleWithSubFocus(
83 const gfx::Rect& rect,
84 ax::mojom::ScrollAlignment horizontal_scroll_alignment,
85 ax::mojom::ScrollAlignment vertical_scroll_alignment,
86 ax::mojom::ScrollBehavior scroll_behavior) const {
87 return false;
88 }
89
ScrollToGlobalPoint(const gfx::Point & point) const90 bool NullAXActionTarget::ScrollToGlobalPoint(const gfx::Point& point) const {
91 return false;
92 }
93
94 } // namespace ui
95