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

Issue 11035050: Enable CursorManager::LockCursor to lock cursor visibility. (Closed)

Created:
8 years, 2 months ago by mazda
Modified:
8 years, 2 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Enable CursorManager::LockCursor to lock cursor visibility. This CL changes mainly three parts: - Add LockCursor and UnlockCursor to CursorClient. - Move the code to change cursor visibility from aura::RootWindow and aura::RootWindowHostLinux to ash::CursorManager. - Remove CursorDelegate, which was too much simple delegation and unnecessary. BUG=153702 TEST=CursorManagerTest.ShowCursor Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161454 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161629

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : define LockCursor/UnlockCursor in CursorClient #

Total comments: 2

Patch Set 5 : add comments to LockCursor/UnlockCursor #

Patch Set 6 : fix win_aura build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -173 lines) Patch
M ash/extended_desktop_unittest.cc View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M ash/magnifier/magnification_controller.cc View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 3 chunks +1 line, -7 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 3 chunks +0 lines, -18 lines 0 comments Download
D ash/wm/cursor_delegate.h View 1 chunk +0 lines, -26 lines 0 comments Download
M ash/wm/cursor_manager.h View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M ash/wm/cursor_manager.cc View 1 2 3 4 chunks +72 lines, -29 lines 0 comments Download
M ash/wm/cursor_manager_unittest.cc View 1 chunk +52 lines, -0 lines 0 comments Download
M ash/wm/window_manager_unittest.cc View 1 4 chunks +10 lines, -0 lines 0 comments Download
M ui/aura/client/cursor_client.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M ui/aura/desktop/desktop_cursor_client.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/desktop/desktop_cursor_client.cc View 1 2 3 2 chunks +26 lines, -5 lines 0 comments Download
M ui/aura/remote_root_window_host_win.h View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M ui/aura/remote_root_window_host_win.cc View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 3 chunks +2 lines, -6 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 3 chunks +12 lines, -15 lines 0 comments Download
M ui/aura/root_window_host.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M ui/aura/root_window_host_linux.h View 1 2 3 4 2 chunks +0 lines, -7 lines 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 4 2 chunks +1 line, -12 lines 0 comments Download
M ui/aura/root_window_host_win.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/root_window_host_win.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/root_window_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/aura/shared/compound_event_filter_unittest.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_root_window_host_linux.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/widget/desktop_root_window_host_linux.cc View 1 2 3 4 3 chunks +17 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_root_window_host_win.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/widget/desktop_root_window_host_win.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mazda
8 years, 2 months ago (2012-10-05 04:28:12 UTC) #1
mazda
ping?
8 years, 2 months ago (2012-10-09 18:03:27 UTC) #2
oshima
On 2012/10/09 18:03:27, mazda wrote: > ping? Sorry I somehow missed it. Will review it ...
8 years, 2 months ago (2012-10-09 18:59:44 UTC) #3
oshima
http://codereview.chromium.org/11035050/diff/9002/ash/wm/cursor_manager.cc File ash/wm/cursor_manager.cc (right): http://codereview.chromium.org/11035050/diff/9002/ash/wm/cursor_manager.cc#newcode15 ash/wm/cursor_manager.cc:15: void SetRootWindowsCursor(gfx::NativeCursor cursor) { SetCursorOnAllRootWindows would be better http://codereview.chromium.org/11035050/diff/9002/ash/wm/cursor_manager.cc#newcode120 ...
8 years, 2 months ago (2012-10-09 23:08:38 UTC) #4
mazda
Please take another look. http://codereview.chromium.org/11035050/diff/9002/ash/wm/cursor_manager.cc File ash/wm/cursor_manager.cc (right): http://codereview.chromium.org/11035050/diff/9002/ash/wm/cursor_manager.cc#newcode15 ash/wm/cursor_manager.cc:15: void SetRootWindowsCursor(gfx::NativeCursor cursor) { On ...
8 years, 2 months ago (2012-10-10 00:59:12 UTC) #5
oshima
lgtm http://codereview.chromium.org/11035050/diff/23002/ui/aura/client/cursor_client.h File ui/aura/client/cursor_client.h (right): http://codereview.chromium.org/11035050/diff/23002/ui/aura/client/cursor_client.h#newcode30 ui/aura/client/cursor_client.h:30: // Locks the cursor change. can you document ...
8 years, 2 months ago (2012-10-10 01:24:41 UTC) #6
mazda
+sky Could you do an OWNERS review for ui/views, ash, and ui/aura? As we talked ...
8 years, 2 months ago (2012-10-11 20:58:50 UTC) #7
sky
LGTM - I tend to think some of this code needs to be refactored for ...
8 years, 2 months ago (2012-10-11 21:42:34 UTC) #8
mazda
On 2012/10/11 21:42:34, sky wrote: > LGTM - I tend to think some of this ...
8 years, 2 months ago (2012-10-11 21:46:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/11035050/10008
8 years, 2 months ago (2012-10-11 21:58:49 UTC) #10
commit-bot: I haz the power
Change committed as 161454
8 years, 2 months ago (2012-10-12 00:08:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/11035050/42001
8 years, 2 months ago (2012-10-12 16:49:18 UTC) #12
commit-bot: I haz the power
8 years, 2 months ago (2012-10-12 18:55:26 UTC) #13
Change committed as 161629

Powered by Google App Engine
This is Rietveld 408576698