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..d5b2a3ca226b09a39cc5c07b399efd1acd49bf0a 100644 |
--- a/content/browser/accessibility/browser_accessibility.h |
+++ b/content/browser/accessibility/browser_accessibility.h |
@@ -62,6 +62,14 @@ class CONTENT_EXPORT BrowserAccessibility { |
// cross-platform generic object. |
virtual bool IsNative() 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 IsLeaf() const; |
+ |
// Initialize the tree structure of this object. |
void InitializeTreeStructure( |
BrowserAccessibilityManager* manager, |