OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "ui/accessibility/ax_node.h" | 9 #include "ui/accessibility/ax_node.h" |
10 #include "ui/accessibility/ax_tree_data.h" | 10 #include "ui/accessibility/ax_tree_data.h" |
11 #include "ui/accessibility/ax_tree_source.h" | 11 #include "ui/accessibility/ax_tree_source.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // This interface exposes the accessibility tree for one RenderFrame. | 15 // This interface exposes the accessibility tree for one RenderFrame. |
16 class CONTENT_EXPORT RenderAccessibility { | 16 class CONTENT_EXPORT RenderAccessibility { |
17 public: | 17 public: |
18 virtual int GenerateAXID() = 0; | 18 virtual int GenerateAXID() = 0; |
19 | 19 |
20 using PdfAXTreeSource = | 20 using PdfAXTreeSource = |
21 ui::AXTreeSource<const ui::AXNode*, ui::AXNodeData, ui::AXTreeData>; | 21 ui::AXTreeSource<const ui::AXNode*, ui::AXNodeData, ui::AXTreeData>; |
22 virtual void SetPdfTreeSource(PdfAXTreeSource* source) = 0; | 22 virtual void SetPdfTreeSource(PdfAXTreeSource* source) = 0; |
| 23 virtual void OnPdfRootNodeUpdated() = 0; |
23 | 24 |
24 protected: | 25 protected: |
25 ~RenderAccessibility() {} | 26 ~RenderAccessibility() {} |
26 | 27 |
27 private: | 28 private: |
28 // This interface should only be implemented inside content. | 29 // This interface should only be implemented inside content. |
29 friend class RenderAccessibilityImpl; | 30 friend class RenderAccessibilityImpl; |
30 RenderAccessibility() {} | 31 RenderAccessibility() {} |
31 }; | 32 }; |
32 | 33 |
33 } // namespace content | 34 } // namespace content |
34 | 35 |
35 #endif // CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ | 36 #endif // CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ |
OLD | NEW |