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

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

Issue 2094843002: Scale menu position back to viewport in pepper plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
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
« no previous file with comments | « no previous file | content/renderer/pepper/renderer_ppapi_host_impl.h » ('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 cfc04b25a68cf781d264bd2dd9d6527e13b41477..8810686bb43f9abedeb73a2a74f6005af2c81141 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1641,6 +1641,9 @@ void PepperPluginInstanceImpl::SendDidChangeView() {
bound_graphics_2d_platform_->set_viewport_to_dip_scale(
viewport_to_dip_scale_);
+ module_->renderer_ppapi_host()->set_viewport_to_dip_scale(
+ viewport_to_dip_scale_);
+
// During the first view update, initialize the throttler.
if (!sent_initial_did_change_view_) {
if (is_flash_plugin_ && RenderThread::Get()) {
« no previous file with comments | « no previous file | content/renderer/pepper/renderer_ppapi_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698