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

Issue 10919135: Move ash specific cursor code to CursorManager. (Closed)

Created:
8 years, 3 months ago by mazda
Modified:
8 years, 3 months ago
Reviewers:
oshima, brettw, Daniel Erat, sky
CC:
chromium-reviews, darin-cc_chromium.org, sadrul, dcheng, ben+watch_chromium.org
Visibility:
Public.

Description

Move ash specific cursor code to CursorManager. Main changes are as follows. - Move the responsibility of managing cursors to ash::CursorManager from aura::RootWindowHostLinux. - Set the same cursor to all root windows with CursorManager so that cursor is updated properly while dragging across displays - Introduce CursorLoader class, which implements platform specific cursor loading. - Add SetDeviceScaleFactor to CursorClient, which sets the device scale factor used for the cursor. BUG=132862, 144756 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156109

Patch Set 1 #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : rebase #

Patch Set 4 : address comment #

Total comments: 28

Patch Set 5 : Move HideHostCursor to x11_util.{cc,h} #

Total comments: 2

Patch Set 6 : address comments #

Total comments: 4

Patch Set 7 : address comments #

Patch Set 8 : fix tests and rebase #

Total comments: 20

Patch Set 9 : address comments #

Patch Set 10 : Add changes to cursor_loader_x11.cc which I forget to include in the patch #

Patch Set 11 : #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+773 lines, -370 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ash/display/mouse_cursor_event_filter.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M ash/drag_drop/drag_drop_controller.cc View 1 2 3 5 chunks +0 lines, -8 lines 0 comments Download
M ash/extended_desktop_unittest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/cursor_manager.h View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M ash/wm/cursor_manager.cc View 1 2 3 4 4 chunks +22 lines, -2 lines 0 comments Download
A ash/wm/image_cursors.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A ash/wm/image_cursors.cc View 1 2 3 4 5 6 7 8 1 chunk +123 lines, -0 lines 0 comments Download
M ash/wm/toplevel_window_event_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M ui/aura/client/cursor_client.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/client/drag_drop_client.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M ui/aura/desktop/desktop_cursor_client.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/desktop/desktop_cursor_client.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -12 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -10 lines 0 comments Download
M ui/aura/root_window_host_linux.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +9 lines, -306 lines 0 comments Download
M ui/aura/root_window_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/shared/compound_event_filter.cc View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -5 lines 0 comments Download
M ui/aura/shared/compound_event_filter_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/cursor/cursor.h View 2 chunks +13 lines, -2 lines 0 comments Download
M ui/base/cursor/cursor.cc View 2 chunks +12 lines, -8 lines 0 comments Download
A ui/base/cursor/cursor_loader.h View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A ui/base/cursor/cursor_loader_win.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A ui/base/cursor/cursor_loader_win.cc View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A ui/base/cursor/cursor_loader_x11.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
A ui/base/cursor/cursor_loader_x11.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +203 lines, -0 lines 0 comments Download
M ui/base/x/events_x.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +24 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +41 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M webkit/glue/webcursor_aura.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
mazda
Hi, could you review this change?
8 years, 3 months ago (2012-09-06 23:09:52 UTC) #1
Daniel Erat
https://chromiumcodereview.appspot.com/10919135/diff/2001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://chromiumcodereview.appspot.com/10919135/diff/2001/ash/drag_drop/drag_drop_controller.cc#newcode178 ash/drag_drop/drag_drop_controller.cc:178: SetDragCursor(ui::kCursorPointer); Can SetDragCursor() just call ash::Shell::GetInstance()->cursor_manager()->SetCursor()? The only place ...
8 years, 3 months ago (2012-09-06 23:47:15 UTC) #2
mazda
Thank you for the quick review. Please take another look. http://codereview.chromium.org/10919135/diff/2001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): http://codereview.chromium.org/10919135/diff/2001/ash/drag_drop/drag_drop_controller.cc#newcode178 ...
8 years, 3 months ago (2012-09-07 02:20:57 UTC) #3
Daniel Erat
This basically looks good to me now, apart from the HideHostCursor() question. http://codereview.chromium.org/10919135/diff/10002/ui/aura/shared/compound_event_filter.cc File ui/aura/shared/compound_event_filter.cc ...
8 years, 3 months ago (2012-09-07 04:55:39 UTC) #4
mazda
Thank you for the review. Please take another look. http://codereview.chromium.org/10919135/diff/10002/ui/aura/shared/compound_event_filter.cc File ui/aura/shared/compound_event_filter.cc (right): http://codereview.chromium.org/10919135/diff/10002/ui/aura/shared/compound_event_filter.cc#newcode91 ui/aura/shared/compound_event_filter.cc:91: ...
8 years, 3 months ago (2012-09-07 19:42:24 UTC) #5
oshima
http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc#newcode156 ash/display/mouse_cursor_event_filter.cc:156: dst_root->AsRootWindowHostDelegate()->GetDeviceScaleFactor()); relative position to the root window can change ...
8 years, 3 months ago (2012-09-07 19:52:01 UTC) #6
Daniel Erat
http://codereview.chromium.org/10919135/diff/10002/ui/base/cursor/cursor_loader.h File ui/base/cursor/cursor_loader.h (right): http://codereview.chromium.org/10919135/diff/10002/ui/base/cursor/cursor_loader.h#newcode48 ui/base/cursor/cursor_loader.h:48: virtual void HideHostCursor() = 0; On 2012/09/07 19:42:24, mazda ...
8 years, 3 months ago (2012-09-07 20:26:07 UTC) #7
mazda
Thank you for the review. Please take another look. http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc#newcode156 ash/display/mouse_cursor_event_filter.cc:156: ...
8 years, 3 months ago (2012-09-07 22:38:14 UTC) #8
oshima
http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc#newcode156 ash/display/mouse_cursor_event_filter.cc:156: dst_root->AsRootWindowHostDelegate()->GetDeviceScaleFactor()); On 2012/09/07 22:38:14, mazda wrote: > On 2012/09/07 ...
8 years, 3 months ago (2012-09-07 23:08:20 UTC) #9
mazda
Please take another look. http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10919135/diff/10002/ash/display/mouse_cursor_event_filter.cc#newcode156 ash/display/mouse_cursor_event_filter.cc:156: dst_root->AsRootWindowHostDelegate()->GetDeviceScaleFactor()); On 2012/09/07 23:08:20, oshima ...
8 years, 3 months ago (2012-09-08 00:27:02 UTC) #10
oshima
lgtm. please check trybot failure. http://codereview.chromium.org/10919135/diff/10002/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10919135/diff/10002/ui/aura/root_window_host_linux.cc#newcode326 ui/aura/root_window_host_linux.cc:326: switch (xev->type) { On ...
8 years, 3 months ago (2012-09-08 01:26:53 UTC) #11
mazda
+sky and brettw: Could you do OWNERS reviews for the following directories? sky: ui/ brettw: ...
8 years, 3 months ago (2012-09-10 22:02:41 UTC) #12
sky
LGTM Dan, can you review the x11 changes in ui too? http://codereview.chromium.org/10919135/diff/3038/ui/base/cursor/cursor.cc File ui/base/cursor/cursor.cc (left): ...
8 years, 3 months ago (2012-09-10 22:49:06 UTC) #13
Daniel Erat
LGTM for the X changes http://codereview.chromium.org/10919135/diff/3038/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/10919135/diff/3038/ash/shell.cc#newcode103 ash/shell.cc:103: #include "base/chromeos/chromeos_version.h" nit: are ...
8 years, 3 months ago (2012-09-10 23:16:44 UTC) #14
mazda
http://codereview.chromium.org/10919135/diff/3038/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/10919135/diff/3038/ash/shell.cc#newcode103 ash/shell.cc:103: #include "base/chromeos/chromeos_version.h" On 2012/09/10 23:16:45, Daniel Erat wrote: > ...
8 years, 3 months ago (2012-09-11 00:45:09 UTC) #15
mazda
Brett, Could you rubberstamp the CL for webkit/? The change in webkit/ is one line.
8 years, 3 months ago (2012-09-11 17:18:01 UTC) #16
brettw
lgtm
8 years, 3 months ago (2012-09-11 18:12:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/10919135/2015
8 years, 3 months ago (2012-09-11 18:21:25 UTC) #18
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 20:18:37 UTC) #19
Change committed as 156109

Powered by Google App Engine
This is Rietveld 408576698