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

Unified Diff: content/browser/accessibility/browser_accessibility.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: content/browser/accessibility/browser_accessibility.cc
diff --git a/content/browser/accessibility/browser_accessibility.cc b/content/browser/accessibility/browser_accessibility.cc
index 8583ed1ca6c15ac0aa676037ab5ab2a77315d762..4f59593f59166c5d6003a3ee713afad08aebb3fb 100644
--- a/content/browser/accessibility/browser_accessibility.cc
+++ b/content/browser/accessibility/browser_accessibility.cc
@@ -374,16 +374,6 @@ gfx::Rect BrowserAccessibility::GetPageBoundsRect() const {
return RelativeToAbsoluteBounds(bounds, false);
}
-gfx::Rect BrowserAccessibility::GetScreenBoundsRect() const {
- gfx::Rect bounds = GetPageBoundsRect();
-
- // Adjust the bounds by the top left corner of the containing view's bounds
- // in screen coordinates.
- bounds.Offset(manager_->GetViewBounds().OffsetFromOrigin());
-
- return bounds;
-}
-
gfx::Rect BrowserAccessibility::GetPageBoundsForRange(int start, int len)
const {
DCHECK_GE(start, 0);
@@ -1254,9 +1244,14 @@ gfx::NativeViewAccessible BrowserAccessibility::ChildAtIndex(int index) {
return nullptr;
}
-gfx::Vector2d BrowserAccessibility::GetGlobalCoordinateOffset() {
- NOTREACHED();
- return gfx::Vector2d();
+gfx::Rect BrowserAccessibility::GetScreenBoundsRect() const {
+ gfx::Rect bounds = GetPageBoundsRect();
+
+ // Adjust the bounds by the top left corner of the containing view's bounds
+ // in screen coordinates.
+ bounds.Offset(manager_->GetViewBounds().OffsetFromOrigin());
+
+ return bounds;
}
gfx::NativeViewAccessible BrowserAccessibility::HitTestSync(int x, int y) {

Powered by Google App Engine
This is Rietveld 408576698