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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

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 | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 452a35ba8f3c3f8592bb0b34829ce5a343abbc99..3c43190dbc5577ba6b01cc452fb8e59c9f3dd4cc 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2132,6 +2132,11 @@ bool PepperPluginInstanceImpl::PrepareTextureMailbox(
release_callback);
}
+void PepperPluginInstanceImpl::AccessibilityModeChanged() {
+ if (render_frame_->render_accessibility() && LoadPdfInterface())
+ plugin_pdf_interface_->EnableAccessibility(pp_instance());
+}
+
void PepperPluginInstanceImpl::OnDestruct() { render_frame_ = NULL; }
void PepperPluginInstanceImpl::OnThrottleStateChange() {
@@ -3009,6 +3014,10 @@ bool PepperPluginInstanceImpl::IsValidInstanceOf(PluginModule* module) {
return module == module_.get() || module == original_module_.get();
}
+RenderFrame* PepperPluginInstanceImpl::GetRenderFrame() {
+ return render_frame_;
+}
+
RenderView* PepperPluginInstanceImpl::GetRenderView() {
return render_frame_ ? render_frame_->render_view() : NULL;
}
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698