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

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

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Created 3 years, 8 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 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 GetOrCreate(tree_, node_->children()[index]); 97 GetOrCreate(tree_, node_->children()[index]);
98 return child_wrapper ? 98 return child_wrapper ?
99 child_wrapper->ax_platform_node()->GetNativeViewAccessible() : 99 child_wrapper->ax_platform_node()->GetNativeViewAccessible() :
100 nullptr; 100 nullptr;
101 } 101 }
102 102
103 gfx::Vector2d TestAXNodeWrapper::GetGlobalCoordinateOffset() { 103 gfx::Vector2d TestAXNodeWrapper::GetGlobalCoordinateOffset() {
104 return g_offset; 104 return g_offset;
105 } 105 }
106 106
107 gfx::Rect TestAXNodeWrapper::GetScreenBoundsRect() const {
108 NOTREACHED();
109 return gfx::Rect(0, 0, 0, 0);
110 }
111
107 gfx::NativeViewAccessible TestAXNodeWrapper::HitTestSync(int x, int y) { 112 gfx::NativeViewAccessible TestAXNodeWrapper::HitTestSync(int x, int y) {
108 return nullptr; 113 return nullptr;
109 } 114 }
110 115
111 gfx::NativeViewAccessible TestAXNodeWrapper::GetFocus() { 116 gfx::NativeViewAccessible TestAXNodeWrapper::GetFocus() {
112 return nullptr; 117 return nullptr;
113 } 118 }
114 119
115 gfx::AcceleratedWidget 120 gfx::AcceleratedWidget
116 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() { 121 TestAXNodeWrapper::GetTargetForNativeAccessibilityEvent() {
117 return gfx::kNullAcceleratedWidget; 122 return gfx::kNullAcceleratedWidget;
118 } 123 }
119 124
120 bool TestAXNodeWrapper::AccessibilityPerformAction( 125 bool TestAXNodeWrapper::AccessibilityPerformAction(
121 const ui::AXActionData& data) { 126 const ui::AXActionData& data) {
122 return true; 127 return true;
123 } 128 }
124 129
125 void TestAXNodeWrapper::DoDefaultAction() {} 130 void TestAXNodeWrapper::DoDefaultAction() {}
126 131
127 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node) 132 TestAXNodeWrapper::TestAXNodeWrapper(AXTree* tree, AXNode* node)
128 : tree_(tree), 133 : tree_(tree),
129 node_(node), 134 node_(node),
130 platform_node_(AXPlatformNode::Create(this)) { 135 platform_node_(AXPlatformNode::Create(this)) {
131 } 136 }
132 137
133 } // namespace ui 138 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698