Chromium Code Reviews| 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..b629463a5a66a79aac7ba2f33b27a91394519898 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 is PlatformIsLeaf() returns true. |
|
David Tseng
2013/10/31 19:44:48
s/is/if
|
| + BrowserAccessibility* PlatformGetChild(uint32 child_index) const; |
| // Return the previous sibling of this object, or NULL if it's the first |
| // child of its parent. |