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

Unified Diff: components/pdf/renderer/pdf_accessibility_tree.h

Issue 2100753003: Enable PDF accessibility when RenderFrame's accessibility mode changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work around cross-platform whitespace difference in print preview test Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/pdf/test-iframe.html ('k') | components/pdf/renderer/pdf_accessibility_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf/renderer/pdf_accessibility_tree.h
diff --git a/components/pdf/renderer/pdf_accessibility_tree.h b/components/pdf/renderer/pdf_accessibility_tree.h
index c0673dcaf3accf602e22366cc7ff2f267f9ae2c8..16066605632ae2ea77b6487c2278c7f90311d1c5 100644
--- a/components/pdf/renderer/pdf_accessibility_tree.h
+++ b/components/pdf/renderer/pdf_accessibility_tree.h
@@ -18,7 +18,8 @@
namespace content {
class RenderAccessibility;
-class RenderView;
+class RenderFrame;
+class RendererPpapiHost;
}
namespace pdf {
@@ -28,7 +29,8 @@ class PdfAccessibilityTree
ui::AXNodeData,
ui::AXTreeData> {
public:
- explicit PdfAccessibilityTree(content::RenderView* render_view);
+ PdfAccessibilityTree(content::RendererPpapiHost* host,
+ PP_Instance instance);
~PdfAccessibilityTree() override;
void SetAccessibilityViewportInfo(
@@ -73,10 +75,11 @@ class PdfAccessibilityTree
gfx::RectF ToRectF(const PP_Rect& r);
ui::AXNodeData* CreateNode(ui::AXRole role);
float GetDeviceScaleFactor() const;
+ content::RenderAccessibility* GetRenderAccessibility();
ui::AXTree tree_;
- content::RenderView* render_view_;
- content::RenderAccessibility* render_accessibility_;
+ content::RendererPpapiHost* host_;
+ PP_Instance instance_;
double zoom_;
gfx::Vector2dF scroll_;
gfx::Vector2dF offset_;
« no previous file with comments | « chrome/test/data/pdf/test-iframe.html ('k') | components/pdf/renderer/pdf_accessibility_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698