aura-mus: Add a visual drag representation

Desktop / Chromium - erg [chromium.org] - 24 March 2017 13:14 EDT

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}

b9401c4 aura-mus: Add a visual drag representation.
ash/mus/window_manager.cc | 54 +++++++++++++++++++
ash/mus/window_manager.h | 10 ++++
mash/simple_wm/simple_wm.cc | 9 ++++
mash/simple_wm/simple_wm.h | 6 +++
services/ui/demo/mus_demo_internal.cc | 9 ++++
services/ui/demo/mus_demo_internal.h | 6 +++
services/ui/public/interfaces/BUILD.gn | 1 +
services/ui/public/interfaces/window_manager.mojom | 19 +++++++
services/ui/public/interfaces/window_tree.mojom | 18 +++++--
services/ui/test_wm/test_wm.cc | 6 +++
services/ui/ws/drag_controller.cc | 2 +
services/ui/ws/drag_controller_unittest.cc | 2 +
services/ui/ws/drag_source.h | 3 ++
services/ui/ws/test_utils.cc | 13 +++++
services/ui/ws/test_utils.h | 7 +++
services/ui/ws/window_manager_client_unittest.cc | 6 +++
services/ui/ws/window_server_test_base.h | 6 +++
services/ui/ws/window_tree.cc | 63 ++++++++++++++++++++--
services/ui/ws/window_tree.h | 22 +++++++-
services/ui/ws/window_tree_client_unittest.cc | 9 ++++
ui/aura/mus/drag_drop_controller_mus.cc | 17 +++---
ui/aura/mus/window_manager_delegate.h | 15 ++++++
ui/aura/mus/window_tree_client.cc | 30 +++++++++++
ui/aura/mus/window_tree_client.h | 7 +++
ui/aura/test/aura_test_base.h | 6 +++
ui/aura/test/mus/test_window_tree.cc | 6 ++-
ui/aura/test/mus/test_window_tree.h | 6 ++-
27 files changed, 341 insertions(+), 17 deletions(-)

Upstream: git.chromium.org


  • Share