Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: content/public/renderer/render_accessibility.h

Issue 2371483002: Update PDF accessibility when zoom level changes (Closed)
Patch Set: Renamed PDF -> Plugin in content/renderer/ Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « components/pdf/renderer/pdf_accessibility_tree.cc ('k') | content/renderer/accessibility/render_accessibility_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698