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

Unified Diff: content/renderer/accessibility/render_accessibility_impl.h

Issue 2371483002: Update PDF accessibility when zoom level changes (Closed)
Patch Set: Renamed PDF -> Plugin in content/renderer/ Created 4 years, 3 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
Index: content/renderer/accessibility/render_accessibility_impl.h
diff --git a/content/renderer/accessibility/render_accessibility_impl.h b/content/renderer/accessibility/render_accessibility_impl.h
index 281305996b1435322690f71a0ef257d1d5b164f2..77e0b1b88bb54ced8a02379a0f0ffdae70ff3598 100644
--- a/content/renderer/accessibility/render_accessibility_impl.h
+++ b/content/renderer/accessibility/render_accessibility_impl.h
@@ -66,7 +66,8 @@ class CONTENT_EXPORT RenderAccessibilityImpl
// RenderAccessibility implementation.
int GenerateAXID() override;
- void SetPdfTreeSource(PdfAXTreeSource* source) override;
+ void SetPluginTreeSource(PluginAXTreeSource* source) override;
+ void OnPluginRootNodeUpdated() override;
// RenderFrameObserver implementation.
bool OnMessageReceived(const IPC::Message& message) override;
@@ -131,8 +132,8 @@ class CONTENT_EXPORT RenderAccessibilityImpl
void OnSetValue(int acc_obj_id, base::string16 value);
void OnShowContextMenu(int acc_obj_id);
- void AddPdfTreeToUpdate(AXContentTreeUpdate* update);
- void ScrollPdf(int id_to_make_visible);
+ void AddPluginTreeToUpdate(AXContentTreeUpdate* update);
+ void ScrollPlugin(int id_to_make_visible);
// Events from Blink are collected until they are ready to be
// sent to the browser.
@@ -148,11 +149,11 @@ class CONTENT_EXPORT RenderAccessibilityImpl
AXContentTreeData>;
BlinkAXTreeSerializer serializer_;
- using PdfAXTreeSerializer = ui::AXTreeSerializer<const ui::AXNode*,
- ui::AXNodeData,
- ui::AXTreeData>;
- std::unique_ptr<PdfAXTreeSerializer> pdf_serializer_;
- PdfAXTreeSource* pdf_tree_source_;
+ using PluginAXTreeSerializer = ui::AXTreeSerializer<const ui::AXNode*,
+ ui::AXNodeData,
+ ui::AXTreeData>;
+ std::unique_ptr<PluginAXTreeSerializer> plugin_serializer_;
+ PluginAXTreeSource* plugin_tree_source_;
// Current location of every object, so we can detect when it moves.
base::hash_map<int, ui::AXRelativeBounds> locations_;
« no previous file with comments | « content/public/renderer/render_accessibility.h ('k') | content/renderer/accessibility/render_accessibility_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698