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

Issue 9808010: Keep the mouse cursor within desktop (Closed)

Created:
8 years, 9 months ago by oshima
Modified:
8 years, 9 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, mazda+watch_chromium.org, sadrul, derat+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

* Keep the mouse in the desktop in multi monitor environment. I ended up using XFIXES to make launcher autohide works smoothlyl. * Made dtor of ML::Dispatcher publiic and Eliminated aura::Dispatcher * Refactored DispatcherLinux so that it re-dispatch event per window. * Removed ConfineToWindow in RHWVA::LockMouse because a) it's not necessary on device (mouse is always confined to root window), b) it should confine to the RWHVA's window but not root window, so this is not exactly right. I'll work on this in separate CL after m19. BUG=115510 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128739

Patch Set 1 #

Patch Set 2 : 128281 #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 14

Patch Set 5 : addressed comments #

Patch Set 6 : dcheck, added really this time #

Patch Set 7 : moved monitor observer back to ui/aura #

Patch Set 8 : fix issue on device #

Patch Set 9 : sync #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -109 lines) Patch
M ash/monitor/multi_monitor_manager.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -7 lines 0 comments Download
M base/message_pump_x.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ui/aura/dispatcher_linux.h View 1 2 1 chunk +7 lines, -11 lines 0 comments Download
M ui/aura/dispatcher_linux.cc View 1 2 3 chunks +12 lines, -18 lines 0 comments Download
M ui/aura/dispatcher_win.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M ui/aura/env.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -15 lines 0 comments Download
M ui/aura/env.cc View 1 2 3 4 5 6 7 4 chunks +19 lines, -11 lines 1 comment Download
D ui/aura/monitor_change_observer_x11.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -6 lines 0 comments Download
D ui/aura/monitor_change_observer_x11.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -5 lines 0 comments Download
M ui/aura/monitor_manager.cc View 1 2 8 2 chunks +6 lines, -1 line 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M ui/aura/root_window_host_linux.h View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 4 5 8 chunks +42 lines, -21 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
oshima
derat -> xfixes (root_window_host_linux), dispatcher linux refactoring. ben -> everything. willchan -> /base varunjain -> ...
8 years, 9 months ago (2012-03-23 16:24:20 UTC) #1
oshima
On 2012/03/23 16:24:20, oshima wrote: > derat -> xfixes (root_window_host_linux), dispatcher linux refactoring. > ben ...
8 years, 9 months ago (2012-03-23 16:27:56 UTC) #2
Daniel Erat
http://codereview.chromium.org/9808010/diff/7018/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/9808010/diff/7018/ui/aura/root_window_host_linux.cc#newcode373 ui/aura/root_window_host_linux.cc:373: if (pointer_barriers_.get()) { It looks like you only update ...
8 years, 9 months ago (2012-03-23 16:49:16 UTC) #3
varunjain
RWHVA lgtm http://codereview.chromium.org/9808010/diff/7018/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/9808010/diff/7018/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode623 content/browser/renderer_host/render_widget_host_view_aura.cc:623: // TODO(oshima): Support Window::ConfineCursorToWindow. Please also make ...
8 years, 9 months ago (2012-03-23 16:56:01 UTC) #4
oshima
http://codereview.chromium.org/9808010/diff/7018/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/9808010/diff/7018/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode623 content/browser/renderer_host/render_widget_host_view_aura.cc:623: // TODO(oshima): Support Window::ConfineCursorToWindow. On 2012/03/23 16:56:01, varunjain wrote: ...
8 years, 9 months ago (2012-03-23 18:25:09 UTC) #5
Daniel Erat
LGTM for X if Ben's happy with the dispatcher changes.
8 years, 9 months ago (2012-03-23 18:31:11 UTC) #6
Ben Goodger (Google)
So... ash shouldn't know anything about X11. Why did you need to move the monitor ...
8 years, 9 months ago (2012-03-23 19:40:02 UTC) #7
oshima
On 2012/03/23 19:40:02, Ben Goodger (Google) wrote: > So... ash shouldn't know anything about X11. ...
8 years, 9 months ago (2012-03-23 19:56:06 UTC) #8
Ben Goodger (Google)
Thanks let me know when to look again. -Ben On Fri, Mar 23, 2012 at ...
8 years, 9 months ago (2012-03-23 20:02:48 UTC) #9
oshima
uploaded new patch. PTAL.
8 years, 9 months ago (2012-03-23 20:46:13 UTC) #10
Ben Goodger (Google)
lgtm
8 years, 9 months ago (2012-03-23 21:58:09 UTC) #11
oshima
brett, can you review /base?
8 years, 9 months ago (2012-03-23 22:44:41 UTC) #12
brettw
base LGTM
8 years, 9 months ago (2012-03-23 23:14:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/9808010/7058
8 years, 9 months ago (2012-03-24 10:32:57 UTC) #14
commit-bot: I haz the power
Change committed as 128739
8 years, 9 months ago (2012-03-24 14:16:53 UTC) #15
oshima
8 years, 9 months ago (2012-03-24 18:19:39 UTC) #16
http://codereview.chromium.org/9808010/diff/7058/ui/aura/env.cc
File ui/aura/env.cc (right):

http://codereview.chromium.org/9808010/diff/7058/ui/aura/env.cc#newcode37
ui/aura/env.cc:37: instance_->Init();
Ben, I had to move init code out of constructor to avoid infinite loop. Let me
know if you have concern or comment. I'll address them in separate CL.

Powered by Google App Engine
This is Rietveld 408576698