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

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: Fix win assertion 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
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 29625e4a049ad9d5f3e9ebfd89b88307133d92e3..ff56128bbbc683a8948f31a6356d11208ffc528f 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2131,6 +2131,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() {
@@ -3007,6 +3012,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;
}

Powered by Google App Engine
This is Rietveld 408576698