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

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

Issue 895233002: Accessibility BoundsForRange needs to take scroll offsets into account. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« 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 e8a7d387d31407d42f3304e4591caa2f4b98c383..7db0a2b3c82088fc70102e753f1cbb239908809c 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -273,6 +273,11 @@ class CONTENT_EXPORT BrowserAccessibility {
// bounds offsets.
BrowserAccessibility* GetParentForBoundsCalculation() const;
+ // Convert the bounding rectangle of an element (which is relative to
+ // its nearest scrollable ancestor) to local bounds (which are relative
+ // to the top of the web accessibility tree).
+ gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const;
+
DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
};
« 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