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

Unified Diff: ui/accessibility/platform/ax_platform_node_delegate.h

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/ax_platform_node_delegate.h
diff --git a/ui/accessibility/platform/ax_platform_node_delegate.h b/ui/accessibility/platform/ax_platform_node_delegate.h
index 3dfe1d7f965e3448762fb8e47d5213ae9a4f0b06..0eb0df2da5f402c9d029d4de72feff896906a8c5 100644
--- a/ui/accessibility/platform/ax_platform_node_delegate.h
+++ b/ui/accessibility/platform/ax_platform_node_delegate.h
@@ -49,8 +49,8 @@ class AX_EXPORT AXPlatformNodeDelegate {
// Get the child of a node given a 0-based index.
virtual gfx::NativeViewAccessible ChildAtIndex(int index) = 0;
- // Get the offset to convert local coordinates to screen global coordinates.
- virtual gfx::Vector2d GetGlobalCoordinateOffset() = 0;
+ // Get the bounds of this node in screen coordinates.
+ virtual gfx::Rect GetScreenBoundsRect() const = 0;
// Do a *synchronous* hit test of the given location in global screen
// coordinates, and the node within this node's subtree (inclusive) that's

Powered by Google App Engine
This is Rietveld 408576698