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

Issue 10458008: Support mouse lock in Flash fullscreen mode. (Closed)

Created:
8 years, 6 months ago by yzshen1
Modified:
8 years, 6 months ago
Reviewers:
scheib, jschuh, brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Support mouse lock in Flash fullscreen mode. In this mode, we won't show a bubble to ask for user permission. Mouse lock content settings are not considered, either. BUG=129241 TEST=1) run ppapi/examples/mouse_lock; 2) when one of the plugins is focused, press 'f' to enter Flash fullscreen; 3) left click to enter mouse lock. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140231

Patch Set 1 #

Total comments: 7

Patch Set 2 : Move RenderViewMouseLockDispatcher into separate files, etc. #

Patch Set 3 : Only allow privileged mouse lock on fullscreen render widget. #

Patch Set 4 : On the browser side, only allow privileged mouse lock on fullscreen render widget. #

Patch Set 5 : . #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -90 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 3 chunks +8 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 4 chunks +11 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/mouse_lock_dispatcher.h View 1 2 3 4 5 2 chunks +12 lines, -20 lines 0 comments Download
M content/renderer/mouse_lock_dispatcher.cc View 1 2 3 4 5 5 chunks +9 lines, -40 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 2 chunks +12 lines, -5 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
A content/renderer/render_view_mouse_lock_dispatcher.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A content/renderer/render_view_mouse_lock_dispatcher.cc View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.h View 3 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 2 3 4 5 3 chunks +56 lines, -1 line 0 comments Download
M ppapi/examples/mouse_lock/mouse_lock.cc View 5 chunks +12 lines, -3 lines 0 comments Download
M ppapi/examples/mouse_lock/mouse_lock.html View 1 2 chunks +13 lines, -13 lines 0 comments Download
M webkit/plugins/ppapi/fullscreen_container.h View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
yzshen1
Hi, Brett and Vincent. Would you please take a look? Thanks!
8 years, 6 months ago (2012-05-29 08:06:05 UTC) #1
yzshen1
Hi, Brett and Vincent. Would you please take a look? Thanks!
8 years, 6 months ago (2012-05-29 08:06:06 UTC) #2
brettw
http://codereview.chromium.org/10458008/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): http://codereview.chromium.org/10458008/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode1500 content/browser/renderer_host/render_widget_host_impl.cc:1500: if (privileged) { Are there security considerations here? I'm ...
8 years, 6 months ago (2012-05-29 20:20:09 UTC) #3
yzshen1
On 2012/05/29 20:20:09, brettw wrote: > http://codereview.chromium.org/10458008/diff/1/content/browser/renderer_host/render_widget_host_impl.cc > File content/browser/renderer_host/render_widget_host_impl.cc (right): > > http://codereview.chromium.org/10458008/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode1500 > ...
8 years, 6 months ago (2012-05-29 20:45:19 UTC) #4
brettw
lgtm except for this code move. http://codereview.chromium.org/10458008/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): http://codereview.chromium.org/10458008/diff/1/content/renderer/render_view_impl.cc#newcode452 content/renderer/render_view_impl.cc:452: class RenderViewMouseLockDispatcher : ...
8 years, 6 months ago (2012-05-29 21:27:10 UTC) #5
scheib
Will any other content be able to request Mouse Lock while flash is fullscreen? I'm ...
8 years, 6 months ago (2012-05-29 21:47:14 UTC) #6
yzshen1
> Will any other content be able to request Mouse Lock while flash is fullscreen? ...
8 years, 6 months ago (2012-05-30 06:41:30 UTC) #7
brettw
lgtm
8 years, 6 months ago (2012-05-30 14:32:46 UTC) #8
scheib
lgtm
8 years, 6 months ago (2012-05-30 14:56:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/10458008/12021
8 years, 6 months ago (2012-05-31 20:59:18 UTC) #10
yzshen1
[in order to make this thread complete] Justin and I have talked and we agreed ...
8 years, 6 months ago (2012-05-31 21:00:55 UTC) #11
commit-bot: I haz the power
Try job failure for 10458008-12021 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-05-31 21:24:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/10458008/15001
8 years, 6 months ago (2012-06-03 07:15:32 UTC) #13
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_impl.cc: While running patch -p1 --forward --force; patching file content/browser/renderer_host/render_widget_host_impl.cc ...
8 years, 6 months ago (2012-06-03 07:15:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/10458008/19002
8 years, 6 months ago (2012-06-03 08:48:21 UTC) #15
commit-bot: I haz the power
8 years, 6 months ago (2012-06-03 10:29:27 UTC) #16
Change committed as 140231

Powered by Google App Engine
This is Rietveld 408576698