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

Issue 10443045: Silent mouse lock after unlock by target (Closed)

Created:
8 years, 7 months ago by dmurph
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

- Added test for silent mouse lock after unlocked by target, added argument to mouse lock request in tests for after_target_unlock_request. - mouse lock dispatcher keeps track of voluntary unlocks by the target, and adds this as a parameter for the lock request. Fullscreen controller will silently lock the mouse when the mouse was previously voluntarily unlocked by the target. Contributed by dmurph@chromium.com BUG=113460 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139934

Patch Set 1 #

Total comments: 12

Patch Set 2 : Update for silent mouse relock #

Total comments: 8

Patch Set 3 : Changed back to booleans #

Total comments: 2

Patch Set 4 : argument renamings #

Patch Set 5 : forgot to fix some syntax #

Total comments: 16

Patch Set 6 : nit changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -35 lines) Patch
M chrome/browser/ui/browser.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 chunks +77 lines, -6 lines 0 comments Download
M chrome/browser/ui/fullscreen_controller.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/fullscreen_controller.cc View 1 2 3 4 5 3 chunks +19 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/mouse_lock_dispatcher.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/mouse_lock_dispatcher.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
dmurph
8 years, 7 months ago (2012-05-25 21:40:55 UTC) #1
jochen (gone - plz use gerrit)
drive-by content review https://chromiumcodereview.appspot.com/10443045/diff/1/content/browser/renderer_host/render_view_host_delegate.h File content/browser/renderer_host/render_view_host_delegate.h (right): https://chromiumcodereview.appspot.com/10443045/diff/1/content/browser/renderer_host/render_view_host_delegate.h#newcode331 content/browser/renderer_host/render_view_host_delegate.h:331: bool after_unlocked_by_target) { align arguments, here ...
8 years, 7 months ago (2012-05-25 21:53:46 UTC) #2
scheib
jochen, a reply for you included. https://chromiumcodereview.appspot.com/10443045/diff/1/chrome/browser/ui/fullscreen_controller.cc File chrome/browser/ui/fullscreen_controller.cc (right): https://chromiumcodereview.appspot.com/10443045/diff/1/chrome/browser/ui/fullscreen_controller.cc#newcode75 chrome/browser/ui/fullscreen_controller.cc:75: // Must have ...
8 years, 7 months ago (2012-05-26 01:12:34 UTC) #3
dmurph
I changed to booleans to enums, and added them in the mouse_lock.h file in content/common. ...
8 years, 6 months ago (2012-05-30 00:17:50 UTC) #4
dmurph
Also, I could move the serialization definitions to a .cc file, that might be cleaner
8 years, 6 months ago (2012-05-30 00:36:44 UTC) #5
scheib
Comments below, but at a high level I'm getting a bad sense that the amount ...
8 years, 6 months ago (2012-05-30 16:41:21 UTC) #6
dmurph
On 2012/05/30 16:41:21, scheib wrote: > Comments below, but at a high level I'm getting ...
8 years, 6 months ago (2012-05-30 17:44:37 UTC) #7
scheib
lgtm, time to find OWNER(s) to add to this review. You alternate between after_unlocked_by_target vs ...
8 years, 6 months ago (2012-05-30 20:10:05 UTC) #8
dmurph
8 years, 6 months ago (2012-05-30 20:10:25 UTC) #9
dmurph
Naming and syntax all fixed. Test passes. https://chromiumcodereview.appspot.com/10443045/diff/16001/content/renderer/mouse_lock_dispatcher.cc File content/renderer/mouse_lock_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10443045/diff/16001/content/renderer/mouse_lock_dispatcher.cc#newcode37 content/renderer/mouse_lock_dispatcher.cc:37: Send( On ...
8 years, 6 months ago (2012-05-30 20:54:30 UTC) #10
sky
LGTM https://chromiumcodereview.appspot.com/10443045/diff/7038/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://chromiumcodereview.appspot.com/10443045/diff/7038/chrome/browser/ui/browser_browsertest.cc#newcode267 chrome/browser/ui/browser_browsertest.cc:267: void RequestToLockMouse(content::WebContents* tab, bool user_gesture, nit: when you ...
8 years, 6 months ago (2012-05-30 22:48:26 UTC) #11
jam
lgtm http://codereview.chromium.org/10443045/diff/7038/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10443045/diff/7038/chrome/browser/ui/browser.cc#newcode3651 chrome/browser/ui/browser.cc:3651: fullscreen_controller_->RequestToLockMouse(tab, user_gesture, nit: this tabbing of parameters is ...
8 years, 6 months ago (2012-05-31 06:05:23 UTC) #12
dmurph
Fixed nit changes. Ready for submit. https://chromiumcodereview.appspot.com/10443045/diff/7038/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://chromiumcodereview.appspot.com/10443045/diff/7038/chrome/browser/ui/browser.cc#newcode3651 chrome/browser/ui/browser.cc:3651: fullscreen_controller_->RequestToLockMouse(tab, user_gesture, On ...
8 years, 6 months ago (2012-05-31 21:13:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmurph@chromium.org/10443045/6005
8 years, 6 months ago (2012-05-31 21:35:41 UTC) #14
commit-bot: I haz the power
Change committed as 139934
8 years, 6 months ago (2012-06-01 00:15:52 UTC) #15
yzshen1
On 2012/06/01 00:15:52, I haz the power (commit-bot) wrote: > Change committed as 139934 I ...
8 years, 6 months ago (2012-06-03 08:44:47 UTC) #16
scheib
This is a problem, I've got a patch in progress to fix it. Note, this ...
8 years, 6 months ago (2012-06-04 17:09:24 UTC) #17
dmurph1
On 2012/06/03 08:44:47, yzshen1 wrote: > On 2012/06/01 00:15:52, I haz the power (commit-bot) wrote: ...
8 years, 6 months ago (2012-06-04 17:19:03 UTC) #18
dmurph1
On 2012/06/03 08:44:47, yzshen1 wrote: > On 2012/06/01 00:15:52, I haz the power (commit-bot) wrote: ...
8 years, 6 months ago (2012-06-04 17:19:09 UTC) #19
scheib
8 years, 6 months ago (2012-06-04 17:36:28 UTC) #20
On 2012/06/04 17:09:24, scheib wrote:
> This is a problem, I've got a patch in progress to fix it. Note, this isn't
> exposed to all web sites, only sites that have previously been approved by the
> user and saved to content settings. Then, those sites must send a lock and
> unlock request before the browser process can permit the lock.

http://codereview.chromium.org/10512011/

Powered by Google App Engine
This is Rietveld 408576698