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

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

Issue 2443353003: The Android ViewStructure font size should be in physical pixels (Closed)
Patch Set: Reword Android pixels to physical pixels Created 4 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_android.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 09c80746072500b38aafd9deeb201ebd0e946291..675aa24eaab51fece9fb9aff6b153f4113cd2251 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -162,6 +162,12 @@ class CONTENT_EXPORT BrowserAccessibility {
// the role is WebAXRoleStaticText.
gfx::Rect GetScreenBoundsForRange(int start, int len) const;
+ // Convert a bounding rectangle from this node's coordinate system
+ // (which is relative to its nearest scrollable ancestor) to
+ // absolute bounds, either in page coordinates (when |frameOnly| is
+ // false), or in frame coordinates (when |frameOnly| is true).
+ gfx::Rect RelativeToAbsoluteBounds(gfx::RectF bounds, bool frame_only) const;
+
// This is to handle the cases such as ARIA textbox, where the value should
// be calculated from the object's inner text.
virtual base::string16 GetValue() const;
@@ -376,12 +382,6 @@ class CONTENT_EXPORT BrowserAccessibility {
// correspond to a layed-out element sometimes don't have bounds.
void FixEmptyBounds(gfx::RectF* bounds) const;
- // Convert the bounding rectangle of an element (which is relative to
- // its nearest scrollable ancestor) to absolute bounds, either in
- // page coordinates (when |frameOnly| is false), or in frame coordinates
- // (when |frameOnly| is true).
- gfx::Rect RelativeToAbsoluteBounds(gfx::RectF bounds, bool frame_only) const;
-
DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
};
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698