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

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

Issue 2371483002: Update PDF accessibility when zoom level changes (Closed)
Patch Set: Cleaned up, ready for review 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698