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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years 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_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
index 40e3f1b6d4a6a7b8fea0a4b695f7ce2bb1bf8e7c..7f16bda56bf5d96aadc2c1cd9192dc75ea1c8b83 100644
--- a/content/renderer/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper_plugin_delegate_impl.cc
@@ -1813,14 +1813,14 @@ int32_t PepperPluginDelegateImpl::ShowContextMenu(
params.custom_items = menu->menu_data();
// Transform the position to be in render view's coordinates.
- if (instance->IsFullscreen(instance->pp_instance()) ||
+ if (instance->view_data().is_fullscreen ||
instance->FlashIsFullscreen(instance->pp_instance())) {
WebKit::WebRect rect = render_view_->windowRect();
params.x -= rect.x;
params.y -= rect.y;
} else {
- params.x += instance->position().x();
- params.y += instance->position().y();
+ params.x += instance->view_data().rect.point.x;
+ params.y += instance->view_data().rect.point.y;
}
IPC::Message* msg = new ViewHostMsg_ContextMenu(render_view_->routing_id(),

Powered by Google App Engine
This is Rietveld 408576698