Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: ui/accessibility/platform/test_ax_node_wrapper.cc

Issue 2964313002: Converts accNavigate over to the AXPlatformNode code. (Closed)
Patch Set: are -> is Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/accessibility/platform/test_ax_node_wrapper.h ('k') | ui/views/accessibility/native_view_accessibility_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698