OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/containers/hash_tables.h" | 5 #include "base/containers/hash_tables.h" |
6 #include "ui/accessibility/ax_action_data.h" | 6 #include "ui/accessibility/ax_action_data.h" |
7 #include "ui/accessibility/platform/test_ax_node_wrapper.h" | 7 #include "ui/accessibility/platform/test_ax_node_wrapper.h" |
8 #include "ui/gfx/geometry/rect_conversions.h" | 8 #include "ui/gfx/geometry/rect_conversions.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 gfx::NativeViewAccessible TestAXNodeWrapper::HitTestSync(int x, int y) { | 134 gfx::NativeViewAccessible TestAXNodeWrapper::HitTestSync(int x, int y) { |
135 TestAXNodeWrapper* wrapper = HitTestSyncInternal(x, y); | 135 TestAXNodeWrapper* wrapper = HitTestSyncInternal(x, y); |
136 return wrapper ? wrapper->ax_platform_node()->GetNativeViewAccessible() | 136 return wrapper ? wrapper->ax_platform_node()->GetNativeViewAccessible() |
137 : nullptr; | 137 : nullptr; |
138 } | 138 } |
139 | 139 |
140 gfx::NativeViewAccessible TestAXNodeWrapper::GetFocus() { | 140 gfx::NativeViewAccessible TestAXNodeWrapper::GetFocus() { |
141 return nullptr; | 141 return nullptr; |
142 } | 142 } |
143 | 143 |
| 144 AXPlatformNode* TestAXNodeWrapper::GetFromNodeID(int32_t id) { |
| 145 return nullptr; |
| 146 } |
| 147 |
144 gfx::AcceleratedWidget | 148 gfx::AcceleratedWidget |
145 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() { | 149 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() { |
146 return gfx::kNullAcceleratedWidget; | 150 return gfx::kNullAcceleratedWidget; |
147 } | 151 } |
148 | 152 |
149 bool TestAXNodeWrapper::AccessibilityPerformAction( | 153 bool TestAXNodeWrapper::AccessibilityPerformAction( |
150 const ui::AXActionData& data) { | 154 const ui::AXActionData& data) { |
151 return true; | 155 return true; |
152 } | 156 } |
153 | 157 |
154 bool TestAXNodeWrapper::ShouldIgnoreHoveredStateForTesting() { | 158 bool TestAXNodeWrapper::ShouldIgnoreHoveredStateForTesting() { |
155 return true; | 159 return true; |
156 } | 160 } |
157 | 161 |
158 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) | 162 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) |
159 : tree_(tree), | 163 : tree_(tree), |
160 node_(node), | 164 node_(node), |
161 platform_node_(AXPlatformNode::Create(this)) { | 165 platform_node_(AXPlatformNode::Create(this)) { |
162 } | 166 } |
163 | 167 |
164 } // namespace ui | 168 } // namespace ui |
OLD | NEW |