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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)

Created:
3 years, 6 months ago by Elliot Glaysher
Modified:
3 years, 6 months ago
Reviewers:
Tom Sepez, sky, riajiang
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

Implement a MoveCursorToScreenLocation for just the window manager. While we don't want to expose this to any mus app (which could be hostile), we still need a way for window management tasks to move the cursor to specific locations. BUG=693340 Review-Url: https://codereview.chromium.org/2918553003 Cr-Commit-Position: refs/heads/master@{#476768} Committed: https://chromium.googlesource.com/chromium/src/+/29e1c03f3e5d909b2bd2a784a78bf3580bed4ccd

Patch Set 1 #

Total comments: 2

Patch Set 2 : screen location -> dips #

Patch Set 3 : Fix up a few comments. #

Total comments: 3

Patch Set 4 : Change ConvertScreenInPixelsToDIP in WTHMus. #

Total comments: 4

Patch Set 5 : Change variable names across patch. #

Patch Set 6 : Thread to the PlatformWindow. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -4 lines) Patch
M services/ui/public/interfaces/window_manager.mojom 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 5 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/platform_display_default.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/platform_display_default.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_manager_state.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_state.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree_unittest.cc View 1 1 chunk +39 lines, -0 lines 1 comment Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus_delegate.h 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 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_manager_client.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
Elliot Glaysher
Hi Ria, I'm trying to add a new method which deals with changing the cursor ...
3 years, 6 months ago (2017-05-31 23:47:32 UTC) #7
Elliot Glaysher
Hi Ria, I'm trying to add a new method which deals with changing the cursor ...
3 years, 6 months ago (2017-05-31 23:47:32 UTC) #8
riajiang
https://codereview.chromium.org/2918553003/diff/1/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2918553003/diff/1/services/ui/ws/window_manager_state.cc#newcode197 services/ui/ws/window_manager_state.cc:197: event_dispatcher()->SetMousePointerDisplayLocation(screen_pixel_location, -1); On 2017/05/31 23:47:32, Elliot Glaysher wrote: > ...
3 years, 6 months ago (2017-06-01 17:06:07 UTC) #11
Elliot Glaysher
ty, ria, that helped. sky: ptal
3 years, 6 months ago (2017-06-01 21:01:50 UTC) #15
riajiang
https://codereview.chromium.org/2918553003/diff/40001/ui/aura/mus/window_tree_host_mus.cc File ui/aura/mus/window_tree_host_mus.cc (right): https://codereview.chromium.org/2918553003/diff/40001/ui/aura/mus/window_tree_host_mus.cc#newcode204 ui/aura/mus/window_tree_host_mus.cc:204: ConvertScreenInPixelsToDIP(&dip_location); EventDispatcher::SetMousePointerDisplayLocation expects location to be in display-coordinate-pixels, maybe ...
3 years, 6 months ago (2017-06-01 21:27:30 UTC) #18
Elliot Glaysher
https://codereview.chromium.org/2918553003/diff/40001/ui/aura/mus/window_tree_host_mus.cc File ui/aura/mus/window_tree_host_mus.cc (right): https://codereview.chromium.org/2918553003/diff/40001/ui/aura/mus/window_tree_host_mus.cc#newcode204 ui/aura/mus/window_tree_host_mus.cc:204: ConvertScreenInPixelsToDIP(&dip_location); On 2017/06/01 21:27:30, riajiang wrote: > EventDispatcher::SetMousePointerDisplayLocation expects ...
3 years, 6 months ago (2017-06-01 22:05:23 UTC) #21
sky
https://codereview.chromium.org/2918553003/diff/60001/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2918553003/diff/60001/services/ui/ws/window_manager_state.cc#newcode198 services/ui/ws/window_manager_state.cc:198: UpdateNativeCursorFromDispatcher(); Don't you also need to call through to ...
3 years, 6 months ago (2017-06-01 22:13:20 UTC) #22
riajiang
https://codereview.chromium.org/2918553003/diff/40001/ui/aura/mus/window_tree_host_mus.cc File ui/aura/mus/window_tree_host_mus.cc (right): https://codereview.chromium.org/2918553003/diff/40001/ui/aura/mus/window_tree_host_mus.cc#newcode204 ui/aura/mus/window_tree_host_mus.cc:204: ConvertScreenInPixelsToDIP(&dip_location); On 2017/06/01 22:05:23, Elliot Glaysher wrote: > On ...
3 years, 6 months ago (2017-06-01 22:20:18 UTC) #23
Elliot Glaysher
https://codereview.chromium.org/2918553003/diff/60001/services/ui/ws/window_manager_state.cc File services/ui/ws/window_manager_state.cc (right): https://codereview.chromium.org/2918553003/diff/60001/services/ui/ws/window_manager_state.cc#newcode198 services/ui/ws/window_manager_state.cc:198: UpdateNativeCursorFromDispatcher(); On 2017/06/01 22:13:20, sky wrote: > Don't you ...
3 years, 6 months ago (2017-06-01 23:05:42 UTC) #26
sky
LGTM https://codereview.chromium.org/2918553003/diff/100001/services/ui/ws/window_tree_unittest.cc File services/ui/ws/window_tree_unittest.cc (right): https://codereview.chromium.org/2918553003/diff/100001/services/ui/ws/window_tree_unittest.cc#newcode1528 services/ui/ws/window_tree_unittest.cc:1528: // Have the window manager mvoe the cursor ...
3 years, 6 months ago (2017-06-02 13:10:07 UTC) #29
riajiang
lgtm
3 years, 6 months ago (2017-06-02 15:09:44 UTC) #30
Elliot Glaysher
+tsepez: mojom review. interface is just from window manager to window server; this interface shouldn't ...
3 years, 6 months ago (2017-06-02 17:18:45 UTC) #32
Tom Sepez
Ok, so how do we enforce that this isn't available to the other apps?
3 years, 6 months ago (2017-06-02 18:02:32 UTC) #33
Tom Sepez
LGTM otherwise
3 years, 6 months ago (2017-06-02 18:10:49 UTC) #34
Elliot Glaysher
On 2017/06/02 18:02:32, Tom Sepez (ooo after 6-2) wrote: > Ok, so how do we ...
3 years, 6 months ago (2017-06-02 18:15:45 UTC) #35
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/2918553003/100001
3 years, 6 months ago (2017-06-02 18:16:39 UTC) #37
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 20:01:28 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/29e1c03f3e5d909b2bd2a784a78b...

Powered by Google App Engine
This is Rietveld 408576698