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

Issue 183973027: Fix Flash fullscreen context menu target and position. (Closed)

Created:
6 years, 9 months ago by miu
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, tfarina, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Fix Flash fullscreen context menu target and position. This resolves two problems regarding the right-click context menu for Flash fullscreen widgets. First, the WebContentsViewDelegate implementations (for Views and Cocoa) were assuming the event target for the context menu click is always the widget provided by WebContentsView. Flash fullscreen is actually a separate widget. Second, the renderer was trying to be "too smart" by computing the screen coordinates of the context menu itself. This is fixed by removing the offset calculation, which allows the coordinates to be cleanly translated by the windowing toolkit, browser-side. BUG=348965 TEST=Repro steps in bug 348965 result in expected behavior. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255321

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Addressed Avi's comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -23 lines) Patch
M chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm View 1 1 chunk +9 lines, -5 lines 2 comments Download
M chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc View 1 2 chunks +11 lines, -7 lines 0 comments Download
M content/renderer/pepper/renderer_ppapi_host_impl.cc View 1 chunk +3 lines, -11 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
miu
imcheng: PTAL. avi: OWNERS approval, please.
6 years, 9 months ago (2014-03-05 07:12:52 UTC) #1
Avi (use Gerrit)
I don't know Views much; is imcheng an expert? https://codereview.chromium.org/183973027/diff/20001/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm File chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm (right): https://codereview.chromium.org/183973027/diff/20001/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm#newcode56 chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm:56: ...
6 years, 9 months ago (2014-03-05 16:28:00 UTC) #2
miu
jam: Would appreciate if you could take a look at this change too. > Avi ...
6 years, 9 months ago (2014-03-05 20:26:54 UTC) #3
imcheng
I am not an expert. Perhaps you should find someone who is to the reviewer ...
6 years, 9 months ago (2014-03-05 20:28:04 UTC) #4
miu
https://codereview.chromium.org/183973027/diff/30001/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm File chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm (right): https://codereview.chromium.org/183973027/diff/30001/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm#newcode51 chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm:51: render_frame_host, params, widget_view->GetNativeView())); On 2014/03/05 20:28:05, imcheng1 wrote: > ...
6 years, 9 months ago (2014-03-05 20:34:11 UTC) #5
Avi (use Gerrit)
Mac stuff LGTM; I don't know about the Views stuff.
6 years, 9 months ago (2014-03-05 20:44:12 UTC) #6
jam
i defer to sky
6 years, 9 months ago (2014-03-05 22:32:29 UTC) #7
sky
LGTM
6 years, 9 months ago (2014-03-05 23:58:33 UTC) #8
miu
The CQ bit was checked by miu@chromium.org
6 years, 9 months ago (2014-03-06 00:58:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/183973027/30001
6 years, 9 months ago (2014-03-06 01:00:04 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 02:19:31 UTC) #11
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=156219
6 years, 9 months ago (2014-03-06 02:19:32 UTC) #12
miu
The CQ bit was checked by miu@chromium.org
6 years, 9 months ago (2014-03-06 02:22:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/183973027/30001
6 years, 9 months ago (2014-03-06 02:25:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/183973027/30001
6 years, 9 months ago (2014-03-06 03:09:58 UTC) #15
miu
The CQ bit was unchecked by miu@chromium.org
6 years, 9 months ago (2014-03-06 07:28:08 UTC) #16
miu
The CQ bit was checked by miu@chromium.org
6 years, 9 months ago (2014-03-06 07:29:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/183973027/30001
6 years, 9 months ago (2014-03-06 07:29:12 UTC) #18
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 13:02:11 UTC) #19
Message was sent while issue was closed.
Change committed as 255321

Powered by Google App Engine
This is Rietveld 408576698