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

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

Issue 15741009: Native Android accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 7 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 d70124a4bd7c218a070616e839e172db0e69e18b..8fda68fc07908b80322804ff4215a29a89f7a652 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -88,13 +88,13 @@ class CONTENT_EXPORT BrowserAccessibility {
bool IsDescendantOf(BrowserAccessibility* ancestor);
// Returns the parent of this object, or NULL if it's the root.
- BrowserAccessibility* parent() { return parent_; }
+ BrowserAccessibility* parent() const { return parent_; }
// Returns the number of children of this object.
uint32 child_count() const { return children_.size(); }
// Return a pointer to the child with the given index.
- BrowserAccessibility* GetChild(uint32 child_index);
+ BrowserAccessibility* GetChild(uint32 child_index) const;
// Return the previous sibling of this object, or NULL if it's the first
// child of its parent.
@@ -106,10 +106,10 @@ class CONTENT_EXPORT BrowserAccessibility {
// Returns the bounds of this object in coordinates relative to the
// top-left corner of the overall web area.
- gfx::Rect GetLocalBoundsRect();
+ gfx::Rect GetLocalBoundsRect() const;
// Returns the bounds of this object in screen coordinates.
- gfx::Rect GetGlobalBoundsRect();
+ gfx::Rect GetGlobalBoundsRect() const;
// Returns the deepest descendant that contains the specified point
// (in global screen coordinates).

Powered by Google App Engine
This is Rietveld 408576698