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_RENDER_ACCESSIBILITY_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ |
6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ | 6 #define CONTENT_RENDERER_ACCESSIBILITY_RENDER_ACCESSIBILITY_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 class CONTENT_EXPORT RenderAccessibilityImpl | 58 class CONTENT_EXPORT RenderAccessibilityImpl |
59 : public RenderAccessibility, | 59 : public RenderAccessibility, |
60 RenderFrameObserver { | 60 RenderFrameObserver { |
61 public: | 61 public: |
62 // Request a one-time snapshot of the accessibility tree without | 62 // Request a one-time snapshot of the accessibility tree without |
63 // enabling accessibility if it wasn't already enabled. | 63 // enabling accessibility if it wasn't already enabled. |
64 static void SnapshotAccessibilityTree( | 64 static void SnapshotAccessibilityTree( |
65 RenderFrameImpl* render_frame, | 65 RenderFrameImpl* render_frame, |
66 AXContentTreeUpdate* response); | 66 AXContentTreeUpdate* response); |
67 | 67 |
68 explicit RenderAccessibilityImpl(RenderFrameImpl* render_frame); | 68 RenderAccessibilityImpl(RenderFrameImpl* render_frame, |
| 69 AccessibilityMode mode); |
69 ~RenderAccessibilityImpl() override; | 70 ~RenderAccessibilityImpl() override; |
70 | 71 |
71 // RenderAccessibility implementation. | 72 // RenderAccessibility implementation. |
72 int GenerateAXID() override; | 73 int GenerateAXID() override; |
73 void SetPluginTreeSource(PluginAXTreeSource* source) override; | 74 void SetPluginTreeSource(PluginAXTreeSource* source) override; |
74 void OnPluginRootNodeUpdated() override; | 75 void OnPluginRootNodeUpdated() override; |
75 | 76 |
76 // RenderFrameObserver implementation. | 77 // RenderFrameObserver implementation. |
77 bool OnMessageReceived(const IPC::Message& message) override; | 78 bool OnMessageReceived(const IPC::Message& message) override; |
78 | 79 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 174 |
174 // So we can queue up tasks to be executed later. | 175 // So we can queue up tasks to be executed later. |
175 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; | 176 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); | 178 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); |
178 }; | 179 }; |
179 | 180 |
180 } // namespace content | 181 } // namespace content |
181 | 182 |
182 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 183 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
OLD | NEW |