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

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

Issue 10837117: Add the screen offset to the location of the flash context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index c4d8891516f00b2b48d2c049e4dde92f9ac3c0ce..e690fb4e8e65eb9146748b80ecea1019125af30c 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -1279,9 +1279,10 @@ int32_t PepperPluginDelegateImpl::ShowContextMenu(
// Transform the position to be in render view's coordinates.
if (instance->view_data().is_fullscreen || instance->flash_fullscreen()) {
- WebKit::WebRect rect = render_view_->windowRect();
- params.x -= rect.x;
- params.y -= rect.y;
+ WebKit::WebRect window_rect = render_view_->windowRect();
viettrungluu 2012/08/05 05:55:16 Are you sure this doesn't break multi-monitor full
raymes 2012/08/05 06:19:57 AFAICT this isn't currently used by anything other
+ WebKit::WebRect screen_rect = render_view_->screenInfo().rect;
+ params.x = params.x - window_rect.x + screen_rect.x;
+ params.y = params.y - window_rect.y + screen_rect.y;
} else {
params.x += instance->view_data().rect.point.x;
params.y += instance->view_data().rect.point.y;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698