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

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: More nacl fixes 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
« no previous file with comments | « no previous file | ppapi/api/ppb_view.idl » ('j') | ppapi/api/ppb_view.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bd5b7f59c49956c98412d7a6e075f20e2be90187..0a152786015f87bf4bd34ad0fb333287683a401e 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(),
« no previous file with comments | « no previous file | ppapi/api/ppb_view.idl » ('j') | ppapi/api/ppb_view.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698