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

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

Issue 25943003: Support accessible inline text boxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo 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 a52075128a519077ae5ef2a2e1e7a81bc1261e58..4b36bc7818a79b9058f117f8b35018a47bb1d97e 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -89,8 +89,21 @@ class CONTENT_EXPORT BrowserAccessibility {
// 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) const;
+ // Returns true if this is a leaf node on this platform, meaning any
+ // children should not be exposed to this platform's native accessibility
+ // layer. Each platform subclass should implement this itself.
+ // The definition of a leaf may vary depending on the platform,
+ // but a leaf node should never have children that are focusable or
+ // that might send notifications.
+ virtual bool PlatformIsLeaf() const;
+
+ // Returns the number of children of this object, or 0 if PlatformIsLeaf()
+ // returns true.
+ uint32 PlatformChildCount() const;
+
+ // Return a pointer to the child at the given index, or NULL for an
+ // invalid index. Returns NULL if PlatformIsLeaf() returns true.
+ BrowserAccessibility* PlatformGetChild(uint32 child_index) const;
// Return the previous sibling of this object, or NULL if it's the first
// child of its parent.

Powered by Google App Engine
This is Rietveld 408576698