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_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ | 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ |
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ | 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "content/public/renderer/render_view_observer.h" | 13 #include "content/public/renderer/render_view_observer.h" |
14 #include "content/renderer/accessibility/blink_ax_tree_source.h" | 14 #include "content/renderer/accessibility/blink_ax_tree_source.h" |
15 #include "content/renderer/accessibility/renderer_accessibility.h" | 15 #include "content/renderer/accessibility/renderer_accessibility.h" |
16 #include "third_party/WebKit/public/web/WebAXEnums.h" | 16 #include "third_party/WebKit/public/web/WebAXEnums.h" |
17 #include "third_party/WebKit/public/web/WebAXObject.h" | 17 #include "third_party/WebKit/public/web/WebAXObject.h" |
18 #include "ui/accessibility/ax_node_data.h" | 18 #include "ui/accessibility/ax_node_data.h" |
19 #include "ui/accessibility/ax_tree_serializer.h" | 19 #include "ui/accessibility/ax_tree_serializer.h" |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 class WebDocument; | 22 class WebDocument; |
23 class WebNode; | 23 class WebNode; |
24 }; | 24 }; |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 class RenderViewImpl; | 27 class RenderViewImpl; |
28 | 28 |
29 // This is the subclass of RendererAccessibility that implements | 29 // This is the subclass of RendererAccessibility that implements |
30 // complete accessibility support for assistive technology (as opposed to | 30 // complete accessibility support for assistive technology. |
31 // partial support - see RendererAccessibilityFocusOnly). | |
32 // | 31 // |
33 // This version turns on Blink's accessibility code and sends | 32 // This version turns on Blink's accessibility code and sends |
34 // a serialized representation of that tree whenever it changes. It also | 33 // a serialized representation of that tree whenever it changes. It also |
35 // handles requests from the browser to perform accessibility actions on | 34 // handles requests from the browser to perform accessibility actions on |
36 // nodes in the tree (e.g., change focus, or click on a button). | 35 // nodes in the tree (e.g., change focus, or click on a button). |
37 class CONTENT_EXPORT RendererAccessibilityComplete | 36 class CONTENT_EXPORT RendererAccessibilityComplete |
38 : public RendererAccessibility { | 37 : public RendererAccessibility { |
39 public: | 38 public: |
40 explicit RendererAccessibilityComplete(RenderFrameImpl* render_frame); | 39 explicit RendererAccessibilityComplete(RenderFrameImpl* render_frame); |
41 virtual ~RendererAccessibilityComplete(); | 40 virtual ~RendererAccessibilityComplete(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 94 |
96 // So we can queue up tasks to be executed later. | 95 // So we can queue up tasks to be executed later. |
97 base::WeakPtrFactory<RendererAccessibilityComplete> weak_factory_; | 96 base::WeakPtrFactory<RendererAccessibilityComplete> weak_factory_; |
98 | 97 |
99 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete); | 98 DISALLOW_COPY_AND_ASSIGN(RendererAccessibilityComplete); |
100 }; | 99 }; |
101 | 100 |
102 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ | 101 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_COMPLETE_H_ |
103 | 102 |
104 } // namespace content | 103 } // namespace content |
OLD | NEW |