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

Issue 2949353003: Implement large cursors in Mushrome. (Closed)

Created:
3 years, 6 months ago by Elliot Glaysher
Modified:
3 years, 6 months ago
Reviewers:
Tom Sepez, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, hidehiko+watch_chromium.org, yzshen+watch_chromium.org, dougt+watch_chromium.org, lhchavez+watch_chromium.org, dmazzoni+watch_chromium.org, qsr+mojo_chromium.org, extensions-reviews_chromium.org, aboxhall+watch_chromium.org, abarth-chromium, je_julie, chromium-apps-reviews_chromium.org, rjkroege, victorhsieh+watch_chromium.org, yuzo+watch_chromium.org, aleventhal+watch_chromium.org, oshima+watch_chromium.org, kalyank, elijahtaylor+arcwatch_chromium.org, tfarina, nektar+watch_chromium.org, Aaron Boodman, dtseng+watch_chromium.org, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement large cursors in Mushrome. This transitions a ui enum to an enum class, and adds support for sending it across mojo pipes. The window manager now has an API to change which cursor set is used on the window server. BUG=729798 Review-Url: https://codereview.chromium.org/2949353003 Cr-Commit-Position: refs/heads/master@{#482038} Committed: https://chromium.googlesource.com/chromium/src/+/c5323f29ddb3f7fa2f1752c2d9edca50dfd3bde8

Patch Set 1 #

Patch Set 2 : Move enum classes into separate file since mac can't cursor.h #

Patch Set 3 : Fix test interfaces. #

Patch Set 4 : Remove old cursor.h includes. #

Total comments: 6

Patch Set 5 : rename everything to CursorSize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+414 lines, -279 lines) Patch
M ash/aura/shell_port_classic.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/aura/shell_port_classic.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/display/cursor_window_controller.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ash/display/cursor_window_controller.cc View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download
M ash/mus/bridge/shell_port_mash.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/mus/bridge/shell_port_mash.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell_port.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ash/test/cursor_manager_test_api.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/test/cursor_manager_test_api.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ash/utility/screenshot_controller_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/native_cursor_manager_ash_classic.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/native_cursor_manager_ash_classic.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M ash/wm/native_cursor_manager_ash_mus.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/native_cursor_manager_ash_mus.cc View 1 2 3 4 1 chunk +10 lines, -5 lines 0 comments Download
M ash/wm/native_cursor_manager_ash_unittest.cc View 1 2 3 4 3 chunks +16 lines, -16 lines 0 comments Download
M ash/wm/window_manager_unittest.cc View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/exo/pointer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/exo/pointer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/exo/wm_helper.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M components/exo/wm_helper.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/exo/wm_helper_ash.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/exo/wm_helper_ash.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M components/exo/wm_helper_mus.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/exo/wm_helper_mus.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_desktop_controller_aura.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M services/ui/public/interfaces/cursor/cursor.mojom View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/cursor/cursor.typemap View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M services/ui/public/interfaces/cursor/cursor_struct_traits.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/cursor/cursor_struct_traits.cc View 1 2 3 4 2 chunks +32 lines, -1 line 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/cursor_state.h View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M services/ui/ws/cursor_state.cc View 1 2 3 4 4 chunks +29 lines, -5 lines 0 comments Download
M services/ui/ws/display.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/display.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display_default.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M testing/buildbot/filters/ash_unittests_mash.filter View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M testing/buildbot/filters/ash_unittests_mus.filter View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/aura/client/cursor_client.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/client/cursor_client_observer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_manager_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_manager_client.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/test_cursor_client.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/test/test_cursor_client.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M ui/base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/cursor/cursor.h View 1 2 chunks +1 line, -63 lines 0 comments Download
M ui/base/cursor/cursor_loader_x11.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A ui/base/cursor/cursor_type.h View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
M ui/base/cursor/cursors_aura.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/cursor/cursors_aura.cc View 1 2 3 4 6 chunks +21 lines, -29 lines 0 comments Download
M ui/base/cursor/image_cursors.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/cursor/image_cursors.cc View 1 2 3 4 3 chunks +10 lines, -15 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_cursor_manager.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_cursor_manager.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/wm/core/cursor_manager.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/wm/core/cursor_manager.cc View 1 2 3 4 5 chunks +14 lines, -14 lines 0 comments Download
M ui/wm/core/cursor_manager_unittest.cc View 1 2 3 4 5 chunks +26 lines, -26 lines 0 comments Download
M ui/wm/core/native_cursor_manager.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M ui/wm/core/native_cursor_manager_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/test/testing_cursor_client_observer.h View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M ui/wm/test/testing_cursor_client_observer.cc View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
Elliot Glaysher
sky: review tsepez: mojom. one more method from the window manager to the window server, ...
3 years, 6 months ago (2017-06-22 23:27:17 UTC) #14
Tom Sepez
https://codereview.chromium.org/2949353003/diff/60001/services/ui/public/interfaces/window_manager.mojom File services/ui/public/interfaces/window_manager.mojom (right): https://codereview.chromium.org/2949353003/diff/60001/services/ui/public/interfaces/window_manager.mojom#newcode323 services/ui/public/interfaces/window_manager.mojom:323: WmSetCursorSet(CursorSet cursor_set); What happens if a bad renderer changes ...
3 years, 6 months ago (2017-06-23 01:10:48 UTC) #15
sky
LGTM - one comment though. As you went with a rename did you consider CursorSize? ...
3 years, 6 months ago (2017-06-23 13:24:26 UTC) #18
Elliot Glaysher
https://codereview.chromium.org/2949353003/diff/60001/services/ui/public/interfaces/window_manager.mojom File services/ui/public/interfaces/window_manager.mojom (right): https://codereview.chromium.org/2949353003/diff/60001/services/ui/public/interfaces/window_manager.mojom#newcode323 services/ui/public/interfaces/window_manager.mojom:323: WmSetCursorSet(CursorSet cursor_set); On 2017/06/23 01:10:48, Tom Sepez wrote: > ...
3 years, 6 months ago (2017-06-23 19:30:39 UTC) #19
Tom Sepez
lgtm
3 years, 6 months ago (2017-06-23 19:34:07 UTC) #20
Elliot Glaysher
renamed everything to CursorSize / cursor_size. https://codereview.chromium.org/2949353003/diff/60001/ash/display/cursor_window_controller.h File ash/display/cursor_window_controller.h (right): https://codereview.chromium.org/2949353003/diff/60001/ash/display/cursor_window_controller.h#newcode53 ash/display/cursor_window_controller.h:53: void SetCursorSet(ui::CursorSet); On ...
3 years, 6 months ago (2017-06-23 20:44:44 UTC) #23
sky
Awesome! Thanks for the rename. SLGTM
3 years, 6 months ago (2017-06-23 20:49:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2949353003/80001
3 years, 6 months ago (2017-06-23 21:04:46 UTC) #29
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 21:38:08 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c5323f29ddb3f7fa2f1752c2d9ed...

Powered by Google App Engine
This is Rietveld 408576698