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

Issue 10837117: Add the screen offset to the location of the flash context menu. (Closed)

Created:
8 years, 4 months ago by raymes
Modified:
8 years, 4 months ago
Reviewers:
brettw, viettrungluu
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add the screen offset to the location of the flash context menu. This fixes a bug where the context menu would display on the wrong monitor if the plugin was in full screen and not on the primary monitor. The coordinates to |ShowContextMenu| are expected to be relative to the window position. However, the coordinates given by |windowRect| includes the screen offset so we need to correct for that. BUG=139641 TEST=Tested context menu on win flapper on both the primary and secondary monitors. Mac context menus use the mouse coordinates. Linux fullscreen for multiple monitors is currently broken. TBR=brettw NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150155

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 chunk +4 lines, -3 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
raymes
8 years, 4 months ago (2012-08-05 05:21:25 UTC) #1
viettrungluu
https://chromiumcodereview.appspot.com/10837117/diff/1/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): https://chromiumcodereview.appspot.com/10837117/diff/1/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode1282 content/renderer/pepper/pepper_plugin_delegate_impl.cc:1282: WebKit::WebRect window_rect = render_view_->windowRect(); Are you sure this doesn't ...
8 years, 4 months ago (2012-08-05 05:55:16 UTC) #2
raymes
https://chromiumcodereview.appspot.com/10837117/diff/1/content/renderer/pepper/pepper_plugin_delegate_impl.cc File content/renderer/pepper/pepper_plugin_delegate_impl.cc (right): https://chromiumcodereview.appspot.com/10837117/diff/1/content/renderer/pepper/pepper_plugin_delegate_impl.cc#newcode1282 content/renderer/pepper/pepper_plugin_delegate_impl.cc:1282: WebKit::WebRect window_rect = render_view_->windowRect(); On 2012/08/05 05:55:16, viettrungluu wrote: ...
8 years, 4 months ago (2012-08-05 06:19:57 UTC) #3
viettrungluu
lgtm
8 years, 4 months ago (2012-08-06 17:33:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/10837117/1
8 years, 4 months ago (2012-08-06 17:46:52 UTC) #5
commit-bot: I haz the power
Presubmit check for 10837117-1 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-06 17:46:55 UTC) #6
raymes
+brettw for OWNERS
8 years, 4 months ago (2012-08-06 17:55:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/10837117/1
8 years, 4 months ago (2012-08-06 19:15:02 UTC) #8
commit-bot: I haz the power
Try job failure for 10837117-1 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 19:44:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/10837117/1
8 years, 4 months ago (2012-08-06 19:49:23 UTC) #10
commit-bot: I haz the power
Try job failure for 10837117-1 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 20:24:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/10837117/1
8 years, 4 months ago (2012-08-06 20:42:58 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 21:50:08 UTC) #13
Change committed as 150155

Powered by Google App Engine
This is Rietveld 408576698