OLD | NEW |
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_RENDERER_RENDERER_ACCESSIBILITY_COMPLETE_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_ACCESSIBILITY_COMPLETE_H_ |
6 #define CONTENT_RENDERER_RENDERER_ACCESSIBILITY_COMPLETE_H_ | 6 #define CONTENT_RENDERER_RENDERER_ACCESSIBILITY_COMPLETE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "content/common/accessibility_node_data.h" | 12 #include "content/common/accessibility_node_data.h" |
13 #include "content/public/renderer/render_view_observer.h" | 13 #include "content/public/renderer/render_view_observer.h" |
14 #include "content/renderer/renderer_accessibility.h" | 14 #include "content/renderer/renderer_accessibility.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif
ication.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif
ication.h" |
16 | 16 |
17 class RenderViewImpl; | |
18 | |
19 namespace WebKit { | 17 namespace WebKit { |
20 class WebAccessibilityObject; | 18 class WebAccessibilityObject; |
21 class WebDocument; | 19 class WebDocument; |
22 class WebNode; | 20 class WebNode; |
23 }; | 21 }; |
24 | 22 |
25 namespace content { | 23 namespace content { |
| 24 class RenderViewImpl; |
26 | 25 |
27 // This is the subclass of RendererAccessibility that implements | 26 // This is the subclass of RendererAccessibility that implements |
28 // complete accessibility support for assistive technology (as opposed to | 27 // complete accessibility support for assistive technology (as opposed to |
29 // partial support - see RendererAccessibilityFocusOnly). | 28 // partial support - see RendererAccessibilityFocusOnly). |
30 // | 29 // |
31 // This version turns on WebKit's accessibility code and sends | 30 // This version turns on WebKit's accessibility code and sends |
32 // a serialized representation of that tree whenever it changes. It also | 31 // a serialized representation of that tree whenever it changes. It also |
33 // handles requests from the browser to perform accessibility actions on | 32 // handles requests from the browser to perform accessibility actions on |
34 // nodes in the tree (e.g., change focus, or click on a button). | 33 // nodes in the tree (e.g., change focus, or click on a button). |
35 class RendererAccessibilityComplete : public RendererAccessibility { | 34 class RendererAccessibilityComplete : public RendererAccessibility { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 131 |
133 // True if verbose logging of accessibility events is on. | 132 // True if verbose logging of accessibility events is on. |
134 bool logging_; | 133 bool logging_; |
135 | 134 |
136 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete); | 135 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete); |
137 }; | 136 }; |
138 | 137 |
139 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_COMPLETE_H_ | 138 #endif // CONTENT_RENDERER_RENDERER_ACCESSIBILITY_COMPLETE_H_ |
140 | 139 |
141 } // namespace content | 140 } // namespace content |
OLD | NEW |