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

Unified Diff: ui/views/accessibility/native_view_accessibility_unittest.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/views/accessibility/native_view_accessibility_unittest.cc
diff --git a/ui/views/accessibility/native_view_accessibility_unittest.cc b/ui/views/accessibility/native_view_accessibility_unittest.cc
index 92eb0035e57b2067f1415f0c2799fa9a4bc4b843..95b9ec8d7d7b37de342305c46ac2b8004589e75a 100644
--- a/ui/views/accessibility/native_view_accessibility_unittest.cc
+++ b/ui/views/accessibility/native_view_accessibility_unittest.cc
@@ -86,7 +86,9 @@ TEST_F(NativeViewAccessibilityTest, RoleShouldMatch) {
TEST_F(NativeViewAccessibilityTest, BoundsShouldMatch) {
gfx::Rect bounds =
gfx::ToEnclosingRect(button_accessibility()->GetData().location);
- bounds.Offset(button_accessibility()->GetGlobalCoordinateOffset());
+ gfx::Rect screen_bounds = button_accessibility()->GetScreenBoundsRect();
+ bounds.Offset(screen_bounds.x(), screen_bounds.y());
+
EXPECT_EQ(button_->GetBoundsInScreen(), bounds);
}

Powered by Google App Engine
This is Rietveld 408576698