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

Unified Diff: content/browser/accessibility/browser_accessibility.h

Issue 25987002: Accessible boundsForRange common impl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 4b36bc7818a79b9058f117f8b35018a47bb1d97e..1644d66f26e05f56d9fccb210a2b9db6cc37f13d 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -120,6 +120,15 @@ class CONTENT_EXPORT BrowserAccessibility {
// Returns the bounds of this object in screen coordinates.
gfx::Rect GetGlobalBoundsRect() const;
+ // Returns the bounds of the given range in coordinates relative to the
+ // top-left corner of the overall web area. Only valid when the
+ // role is WebAXRoleStaticText.
+ gfx::Rect GetLocalBoundsForRange(int start, int len) const;
+
+ // Same as GetLocalBoundsForRange, in screen coordinates. Only valid when
+ // the role is WebAXRoleStaticText.
+ gfx::Rect GetGlobalBoundsForRange(int start, int len) const;
+
// Returns the deepest descendant that contains the specified point
// (in global screen coordinates).
BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point);
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698