| 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 // These APIs allow a page with a single EMBED element to graft an |
| 21 // accessibility tree for the plugin content, implemented as an AXTreeSource, |
| 22 // into the page's accessibility tree. |
| 23 using PluginAXTreeSource = |
| 21 ui::AXTreeSource<const ui::AXNode*, ui::AXNodeData, ui::AXTreeData>; | 24 ui::AXTreeSource<const ui::AXNode*, ui::AXNodeData, ui::AXTreeData>; |
| 22 virtual void SetPdfTreeSource(PdfAXTreeSource* source) = 0; | 25 virtual void SetPluginTreeSource(PluginAXTreeSource* source) = 0; |
| 26 virtual void OnPluginRootNodeUpdated() = 0; |
| 23 | 27 |
| 24 protected: | 28 protected: |
| 25 ~RenderAccessibility() {} | 29 ~RenderAccessibility() {} |
| 26 | 30 |
| 27 private: | 31 private: |
| 28 // This interface should only be implemented inside content. | 32 // This interface should only be implemented inside content. |
| 29 friend class RenderAccessibilityImpl; | 33 friend class RenderAccessibilityImpl; |
| 30 RenderAccessibility() {} | 34 RenderAccessibility() {} |
| 31 }; | 35 }; |
| 32 | 36 |
| 33 } // namespace content | 37 } // namespace content |
| 34 | 38 |
| 35 #endif // CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ | 39 #endif // CONTENT_PUBLIC_RENDERER_RENDER_ACCESSIBILITY_H_ |
| OLD | NEW |