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

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)

Created:
3 years, 7 months ago by Elliot Glaysher
Modified:
3 years, 7 months ago
Reviewers:
Tom Sepez, sky
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add apis for the window manager to control the cursor in mus. This adds {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom, which all have analogs in the current CursorClient. It also adds the ability for the window manager to set a global override cursor, which is used instead of the per-window cursor. This converts usage of CursorClient to a ShellPort wrapper. BUG=637853 Review-Url: https://codereview.chromium.org/2857963003 Cr-Commit-Position: refs/heads/master@{#471881} Committed: https://chromium.googlesource.com/chromium/src/+/1b91d7d3fd76ab7ceb954c05982e6253360c63cf

Patch Set 1 #

Patch Set 2 : Now without ShellPort usage. #

Patch Set 3 : Remove modifications to AshNativeCursorManager; let's try this the shell port way... #

Patch Set 4 : Implement global override cursor interface. #

Patch Set 5 : General cleanup. #

Total comments: 4

Patch Set 6 : Redo patch as a CursorState class. #

Patch Set 7 : early return -> braces and comment #

Total comments: 3

Patch Set 8 : sky comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -45 lines) Patch
M ash/aura/shell_port_classic.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ash/aura/shell_port_classic.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M ash/mus/bridge/shell_port_mash.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ash/mus/bridge/shell_port_mash.cc View 1 2 3 4 5 1 chunk +16 lines, -4 lines 0 comments Download
M ash/shell_port.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ash/utility/screenshot_controller.cc View 1 2 3 4 5 6 3 chunks +46 lines, -8 lines 0 comments Download
M ash/wm/lock_state_controller.cc View 1 2 3 4 1 chunk +3 lines, -7 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M services/ui/ws/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A services/ui/ws/cursor_state.h View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A services/ui/ws/cursor_state.cc View 1 2 3 4 5 1 chunk +115 lines, -0 lines 0 comments Download
A services/ui/ws/cursor_state_unittest.cc View 1 2 3 4 5 6 7 1 chunk +133 lines, -0 lines 0 comments Download
M services/ui/ws/display.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M services/ui/ws/display.cc View 1 2 3 4 5 2 chunks +3 lines, -8 lines 0 comments Download
M services/ui/ws/display_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 2 chunks +1 line, -3 lines 0 comments Download
M services/ui/ws/window_manager_state.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M services/ui/ws/window_manager_state_unittest.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -6 lines 0 comments Download
M services/ui/ws/window_server.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_manager_client.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_manager_client.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (36 generated)
Elliot Glaysher
tsepez: mojom review. just adds one way communication from window manager to the mus server. ...
3 years, 7 months ago (2017-05-11 18:59:54 UTC) #25
Tom Sepez
LGTM.
3 years, 7 months ago (2017-05-11 19:06:50 UTC) #26
sky
https://codereview.chromium.org/2857963003/diff/80001/ash/utility/screenshot_controller.cc File ash/utility/screenshot_controller.cc (right): https://codereview.chromium.org/2857963003/diff/80001/ash/utility/screenshot_controller.cc#newcode214 ash/utility/screenshot_controller.cc:214: else no else afte return. https://codereview.chromium.org/2857963003/diff/80001/services/ui/ws/display.cc File services/ui/ws/display.cc (right): ...
3 years, 7 months ago (2017-05-12 13:40:01 UTC) #29
Elliot Glaysher
https://codereview.chromium.org/2857963003/diff/80001/ash/utility/screenshot_controller.cc File ash/utility/screenshot_controller.cc (right): https://codereview.chromium.org/2857963003/diff/80001/ash/utility/screenshot_controller.cc#newcode214 ash/utility/screenshot_controller.cc:214: else On 2017/05/12 13:40:01, sky wrote: > no else ...
3 years, 7 months ago (2017-05-12 23:02:44 UTC) #34
sky
LGTM https://codereview.chromium.org/2857963003/diff/120001/services/ui/ws/cursor_state.h File services/ui/ws/cursor_state.h (right): https://codereview.chromium.org/2857963003/diff/120001/services/ui/ws/cursor_state.h#newcode21 services/ui/ws/cursor_state.h:21: CursorState(DisplayManager* display_manager); explicit https://codereview.chromium.org/2857963003/diff/120001/services/ui/ws/cursor_state.h#newcode51 services/ui/ws/cursor_state.h:51: int cursor_lock_count_ = ...
3 years, 7 months ago (2017-05-14 16:12:31 UTC) #37
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/2857963003/140001
3 years, 7 months ago (2017-05-15 18:13:11 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 20:17:23 UTC) #43
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/1b91d7d3fd76ab7ceb954c05982e...

Powered by Google App Engine
This is Rietveld 408576698