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

Side by Side Diff: content/browser/accessibility/accessibility_tree_formatter.h

Issue 407493002: Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "content/browser/accessibility/browser_accessibility.h" 14 #include "content/browser/accessibility/browser_accessibility.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 class WebContents; 19 class RenderViewHost;
20 20
21 // A utility class for formatting platform-specific accessibility information, 21 // A utility class for formatting platform-specific accessibility information,
22 // for use in testing, debugging, and developer tools. 22 // for use in testing, debugging, and developer tools.
23 // This is extended by a subclass for each platform where accessibility is 23 // This is extended by a subclass for each platform where accessibility is
24 // implemented. 24 // implemented.
25 class CONTENT_EXPORT AccessibilityTreeFormatter { 25 class CONTENT_EXPORT AccessibilityTreeFormatter {
26 public: 26 public:
27 explicit AccessibilityTreeFormatter(BrowserAccessibility* root); 27 explicit AccessibilityTreeFormatter(BrowserAccessibility* root);
28 virtual ~AccessibilityTreeFormatter(); 28 virtual ~AccessibilityTreeFormatter();
29 29
30 static AccessibilityTreeFormatter* Create(WebContents* wc); 30 static AccessibilityTreeFormatter* Create(RenderViewHost* rvh);
31 31
32 // Populates the given DictionaryValue with the accessibility tree. 32 // Populates the given DictionaryValue with the accessibility tree.
33 // The dictionary contains a key/value pair for each attribute of the node, 33 // The dictionary contains a key/value pair for each attribute of the node,
34 // plus a "children" attribute containing a list of all child nodes. 34 // plus a "children" attribute containing a list of all child nodes.
35 // { 35 // {
36 // "AXName": "node", /* actual attributes will vary by platform */ 36 // "AXName": "node", /* actual attributes will vary by platform */
37 // "position": { /* some attributes may be dictionaries */ 37 // "position": { /* some attributes may be dictionaries */
38 // "x": 0, 38 // "x": 0,
39 // "y": 0 39 // "y": 0
40 // }, 40 // },
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // Filters used when formatting the accessibility tree as text. 141 // Filters used when formatting the accessibility tree as text.
142 std::vector<Filter> filters_; 142 std::vector<Filter> filters_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(AccessibilityTreeFormatter); 144 DISALLOW_COPY_AND_ASSIGN(AccessibilityTreeFormatter);
145 }; 145 };
146 146
147 } // namespace content 147 } // namespace content
148 148
149 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_ 149 #endif // CONTENT_BROWSER_ACCESSIBILITY_ACCESSIBILITY_TREE_FORMATTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698