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

Unified Diff: ui/accessibility/platform/test_ax_node_wrapper.cc

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Remove GetGlobalCoordinateOffset Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/test_ax_node_wrapper.cc
diff --git a/ui/accessibility/platform/test_ax_node_wrapper.cc b/ui/accessibility/platform/test_ax_node_wrapper.cc
index 9561733ee30af96376bec43e1232439e9912fd81..9c249b98d607deb8d051f74faf2356c32ea01040 100644
--- a/ui/accessibility/platform/test_ax_node_wrapper.cc
+++ b/ui/accessibility/platform/test_ax_node_wrapper.cc
@@ -100,8 +100,9 @@ gfx::NativeViewAccessible TestAXNodeWrapper::ChildAtIndex(int index) {
nullptr;
}
-gfx::Vector2d TestAXNodeWrapper::GetGlobalCoordinateOffset() {
- return g_offset;
+gfx::Rect TestAXNodeWrapper::GetScreenBoundsRect() const {
+ // The tests using this wrapper just care about the screen offset.
+ return gfx::Rect(g_offset.x(), g_offset.y(), 0, 0);
}
gfx::NativeViewAccessible TestAXNodeWrapper::HitTestSync(int x, int y) {

Powered by Google App Engine
This is Rietveld 408576698