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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 static void SnapshotAccessibilityTree( | 60 static void SnapshotAccessibilityTree( |
61 RenderFrameImpl* render_frame, | 61 RenderFrameImpl* render_frame, |
62 AXContentTreeUpdate* response); | 62 AXContentTreeUpdate* response); |
63 | 63 |
64 explicit RenderAccessibilityImpl(RenderFrameImpl* render_frame); | 64 explicit RenderAccessibilityImpl(RenderFrameImpl* render_frame); |
65 ~RenderAccessibilityImpl() override; | 65 ~RenderAccessibilityImpl() override; |
66 | 66 |
67 // RenderAccessibility implementation. | 67 // RenderAccessibility implementation. |
68 int GenerateAXID() override; | 68 int GenerateAXID() override; |
69 void SetPdfTreeSource(PdfAXTreeSource* source) override; | 69 void SetPdfTreeSource(PdfAXTreeSource* source) override; |
| 70 void OnPdfRootNodeUpdated() override; |
70 | 71 |
71 // RenderFrameObserver implementation. | 72 // RenderFrameObserver implementation. |
72 bool OnMessageReceived(const IPC::Message& message) override; | 73 bool OnMessageReceived(const IPC::Message& message) override; |
73 | 74 |
74 // Called when an accessibility notification occurs in Blink. | 75 // Called when an accessibility notification occurs in Blink. |
75 void HandleWebAccessibilityEvent(const blink::WebAXObject& obj, | 76 void HandleWebAccessibilityEvent(const blink::WebAXObject& obj, |
76 blink::WebAXEvent event); | 77 blink::WebAXEvent event); |
77 | 78 |
78 // Called when a new find in page result is highlighted. | 79 // Called when a new find in page result is highlighted. |
79 void HandleAccessibilityFindInPageResult( | 80 void HandleAccessibilityFindInPageResult( |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 177 |
177 // So we can queue up tasks to be executed later. | 178 // So we can queue up tasks to be executed later. |
178 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; | 179 base::WeakPtrFactory<RenderAccessibilityImpl> weak_factory_; |
179 | 180 |
180 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); | 181 DISALLOW_COPY_AND_ASSIGN(RenderAccessibilityImpl); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace content | 184 } // namespace content |
184 | 185 |
185 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ | 186 #endif // CONTENT_RENDERER_ACCESSIBILITY_RENDERER_ACCESSIBILITY_H_ |
OLD | NEW |