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

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: Created 7 years, 2 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.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index fec4d292dea30b329bc81cac8fc7400fb6603862..d09a95695374f6818f9174eec6de15d80ec7ce00 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -112,6 +112,14 @@ 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
David Tseng 2013/10/17 21:32:02 Are you thinking about supporting this for non-sta
dmazzoni 2013/10/21 17:25:38 Sounds good - but for now, this is strictly only s
+ // role is WebAXRoleStaticText.
aboxhall 2013/10/04 18:53:07 There's no chance this could be called on an inlin
dmazzoni 2013/10/21 17:25:38 No. The inline text boxes are not exposed to the p
+ gfx::Rect GetLocalBoundsForRange(int start, int len) const;
David Tseng 2013/10/17 21:32:02 If the above were true, then perhaps this should b
dmazzoni 2013/10/21 17:25:38 I think we'd want a higher-level function that tak
+
+ // Same as GetLocalBoundsForRange, in screen coordinates.
+ gfx::Rect GetGlobalBoundsForRange(int start, int len) const;
David Tseng 2013/10/17 21:32:02 Is this also only available for static text?
dmazzoni 2013/10/21 17:25:38 Yes. Updated the comment.
+
// Returns the deepest descendant that contains the specified point
// (in global screen coordinates).
BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point);

Powered by Google App Engine
This is Rietveld 408576698