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

Issue 2764963003: aura-mus: add a drag representation image. (Closed)

Created:
3 years, 9 months ago by Elliot Glaysher
Modified:
3 years, 9 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, dcheng, kalyank, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

aura-mus: Add a visual drag representation. This lets the client send an image representation of what's currently being dragged. The server proxies this to the window manager, which manages a window toplevel window which displays the representation at an offset. This offset differs between mouse drags and touch drags, so also send that data too. BUG=548443 Review-Url: https://codereview.chromium.org/2764963003 Cr-Commit-Position: refs/heads/master@{#459466} Committed: https://chromium.googlesource.com/chromium/src/+/b9401c4956d563f88072f370bf033695fb4bbfac

Patch Set 1 #

Patch Set 2 : Fix compile of aura_unittests #

Patch Set 3 : Fix ws tests #

Patch Set 4 : Deal with nullness in the bitmap. #

Patch Set 5 : Queue up further drag image window moves so as to not spam the window manager. #

Patch Set 6 : Patch cleanup. #

Total comments: 21

Patch Set 7 : sky comments #

Patch Set 8 : Also move the state in WindowTree into a struct. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -17 lines) Patch
M ash/mus/window_manager.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 3 chunks +54 lines, -0 lines 0 comments Download
M mash/simple_wm/simple_wm.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M mash/simple_wm/simple_wm.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M services/ui/demo/mus_demo_internal.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/demo/mus_demo_internal.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 2 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 5 6 2 chunks +15 lines, -3 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/drag_controller.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/drag_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/drag_source.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/window_server_test_base.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 6 7 5 chunks +21 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 7 7 chunks +58 lines, -5 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M ui/aura/mus/drag_drop_controller_mus.cc View 1 2 3 4 5 6 2 chunks +11 lines, -6 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.h View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M ui/aura/test/mus/test_window_tree.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 45 (35 generated)
Elliot Glaysher
3 years, 9 months ago (2017-03-22 23:40:14 UTC) #22
sky
https://codereview.chromium.org/2764963003/diff/100001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2764963003/diff/100001/ash/mus/window_manager.cc#newcode391 ash/mus/window_manager.cc:391: drag_image_.reset(new DragImageView(root_window, ui_source)); MakeUnique. https://codereview.chromium.org/2764963003/diff/100001/ash/mus/window_manager.h File ash/mus/window_manager.h (right): https://codereview.chromium.org/2764963003/diff/100001/ash/mus/window_manager.h#newcode213 ...
3 years, 9 months ago (2017-03-23 00:05:36 UTC) #23
Elliot Glaysher
+tsepez for mojom https://codereview.chromium.org/2764963003/diff/100001/ash/mus/window_manager.cc File ash/mus/window_manager.cc (right): https://codereview.chromium.org/2764963003/diff/100001/ash/mus/window_manager.cc#newcode391 ash/mus/window_manager.cc:391: drag_image_.reset(new DragImageView(root_window, ui_source)); On 2017/03/23 00:05:35, ...
3 years, 9 months ago (2017-03-23 19:58:44 UTC) #33
Tom Sepez
https://codereview.chromium.org/2764963003/diff/140001/services/ui/public/interfaces/window_manager.mojom File services/ui/public/interfaces/window_manager.mojom (right): https://codereview.chromium.org/2764963003/diff/140001/services/ui/public/interfaces/window_manager.mojom#newcode200 services/ui/public/interfaces/window_manager.mojom:200: skia.mojom.Bitmap? drag_image, So .. we're passing a skia bitmap ...
3 years, 9 months ago (2017-03-23 20:05:14 UTC) #34
Elliot Glaysher
https://codereview.chromium.org/2764963003/diff/140001/services/ui/public/interfaces/window_manager.mojom File services/ui/public/interfaces/window_manager.mojom (right): https://codereview.chromium.org/2764963003/diff/140001/services/ui/public/interfaces/window_manager.mojom#newcode200 services/ui/public/interfaces/window_manager.mojom:200: skia.mojom.Bitmap? drag_image, On 2017/03/23 20:05:13, Tom Sepez wrote: > ...
3 years, 9 months ago (2017-03-23 20:24:21 UTC) #35
Tom Sepez
lgtm
3 years, 9 months ago (2017-03-23 20:41:34 UTC) #36
Elliot Glaysher
ping sky
3 years, 9 months ago (2017-03-23 22:58:32 UTC) #39
sky
LGTM
3 years, 9 months ago (2017-03-24 02:30:31 UTC) #40
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/2764963003/140001
3 years, 9 months ago (2017-03-24 17:06:48 UTC) #42
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 17:15:09 UTC) #45
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/b9401c4956d563f88072f370bf03...

Powered by Google App Engine
This is Rietveld 408576698