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

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

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate 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 side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/ax_platform_node_win.cc
diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc
index bcfc909fc374a8bc85fd2b8f9ed9db2b4c05de58..c35356135374000f9e009cf637f1b8c4e12bb47f 100644
--- a/ui/accessibility/platform/ax_platform_node_win.cc
+++ b/ui/accessibility/platform/ax_platform_node_win.cc
@@ -263,10 +263,9 @@ HRESULT AXPlatformNodeWin::accDoDefaultAction(VARIANT var_id) {
STDMETHODIMP AXPlatformNodeWin::accLocation(
LONG* x_left, LONG* y_top, LONG* width, LONG* height, VARIANT var_id) {
COM_OBJECT_VALIDATE_VAR_ID_4_ARGS(var_id, x_left, y_top, width, height);
- gfx::Rect bounds = gfx::ToEnclosingRect(GetData().location);
- bounds += delegate_->GetGlobalCoordinateOffset();
+ gfx::Rect bounds = delegate_->GetScreenBoundsRect();
*x_left = bounds.x();
- *y_top = bounds.y();
+ *y_top = bounds.y();
*width = bounds.width();
*height = bounds.height();

Powered by Google App Engine
This is Rietveld 408576698