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

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: Created 4 years, 6 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..f3e9a434eecfe3fe63f0f137b516a532418b2792 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -2133,6 +2133,11 @@ bool PepperPluginInstanceImpl::PrepareTextureMailbox(
void PepperPluginInstanceImpl::OnDestruct() { render_frame_ = NULL; }
+void PepperPluginInstanceImpl::AccessibilityModeChanged() {
raymes 2016/06/28 00:02:12 nit: this should go before OnDestruct
dmazzoni 2016/06/28 17:14:06 Done.
+ if (render_frame_->render_accessibility() && LoadPdfInterface())
+ plugin_pdf_interface_->EnableAccessibility(pp_instance());
+}
+
void PepperPluginInstanceImpl::OnThrottleStateChange() {
SendDidChangeView();

Powered by Google App Engine
This is Rietveld 408576698