diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-04 21:32:20 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-04 21:32:20 +0000 |
commit | 516c16a8149b71454570ab3651cd0bfb6a86576e (patch) | |
tree | 7bdfe4b9c113140b07263c96e8fddecdc5ff2f44 /content/browser/accessibility/browser_accessibility.h | |
parent | cda6bc46700f84e2f1e0440b9ab4d32b6b824bc0 (diff) | |
download | chromium_src-516c16a8149b71454570ab3651cd0bfb6a86576e.zip chromium_src-516c16a8149b71454570ab3651cd0bfb6a86576e.tar.gz chromium_src-516c16a8149b71454570ab3651cd0bfb6a86576e.tar.bz2 |
This adds an implementation of boundsForRange to BrowserAccessibility,
based on the new InlineTextBox role. This can be leveraged to implement
various native APIs on each platform.
Depends on:
1. https://codereview.chromium.org/23983002/
2. https://codereview.chromium.org/25943003/
BUG=98977
Review URL: https://codereview.chromium.org/25987002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility/browser_accessibility.h')
-rw-r--r-- | content/browser/accessibility/browser_accessibility.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h index 4b36bc7..1644d66 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); |