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

Side by Side Diff: content/browser/accessibility/accessibility_tree_formatter.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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 base::DictionaryValue* tree_node); 106 base::DictionaryValue* tree_node);
107 void RecursiveFormatAccessibilityTree(const base::DictionaryValue& tree_node, 107 void RecursiveFormatAccessibilityTree(const base::DictionaryValue& tree_node,
108 string16* contents, 108 string16* contents,
109 int depth = 0); 109 int depth = 0);
110 110
111 // Overridden by each platform to add the required attributes for each node 111 // Overridden by each platform to add the required attributes for each node
112 // into the given dict. 112 // into the given dict.
113 void AddProperties(const BrowserAccessibility& node, 113 void AddProperties(const BrowserAccessibility& node,
114 base::DictionaryValue* dict); 114 base::DictionaryValue* dict);
115 115
116 // Returns true by default; can be overridden by the platform to
117 // prune some children from the tree when they wouldn't be exposed
118 // natively on that platform.
119 virtual bool IncludeChildren(const BrowserAccessibility& node);
120
121 string16 FormatCoordinates(const char* name, 116 string16 FormatCoordinates(const char* name,
122 const char* x_name, 117 const char* x_name,
123 const char* y_name, 118 const char* y_name,
124 const base::DictionaryValue& value); 119 const base::DictionaryValue& value);
125 120
126 // Returns a platform specific representation of a BrowserAccessibility. 121 // Returns a platform specific representation of a BrowserAccessibility.
127 // Should be zero or more complete lines, each with |prefix| prepended 122 // Should be zero or more complete lines, each with |prefix| prepended
128 // (to indent each line). 123 // (to indent each line).
129 string16 ToString(const base::DictionaryValue& node, const string16& indent); 124 string16 ToString(const base::DictionaryValue& node, const string16& indent);
130 125
(...skipping 13 matching lines...) Expand all
144 139
145 // Filters used when formatting the accessibility tree as text. 140 // Filters used when formatting the accessibility tree as text.
146 std::vector<Filter> filters_; 141 std::vector<Filter> filters_;
147 142
148 DISALLOW_COPY_AND_ASSIGN(AccessibilityTreeFormatter); 143 DISALLOW_COPY_AND_ASSIGN(AccessibilityTreeFormatter);
149 }; 144 };
150 145
151 } // namespace content 146 } // namespace content
152 147
153 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ 148 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698