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

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

Issue 15741009: Native Android accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address most reviewer feedback Created 7 years, 6 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/accessibility_tree_formatter.h
diff --git a/content/browser/accessibility/accessibility_tree_formatter.h b/content/browser/accessibility/accessibility_tree_formatter.h
index 17beff70033b5f207ad3d7116ee2cee98c466698..78bc665fc6551b0e1b082a2af458155cc0ec5441 100644
--- a/content/browser/accessibility/accessibility_tree_formatter.h
+++ b/content/browser/accessibility/accessibility_tree_formatter.h
@@ -112,6 +112,11 @@ class CONTENT_EXPORT AccessibilityTreeFormatter {
// into the given dict.
void AddProperties(const BrowserAccessibility& node, DictionaryValue* dict);
+ // Returns true by default; can be overridden by the platform to
+ // prune some children from the tree when they wouldn't be exposed
+ // natively on that platform.
+ virtual bool IncludeChildren(const BrowserAccessibility& node);
+
string16 FormatCoordinates(const char* name,
const char* x_name,
const char* y_name,

Powered by Google App Engine
This is Rietveld 408576698