chromeos: makes cursor configuration apply in mus/mash

Desktop / Chromium - Scott Violet [chromium.org] - 17 July 2017 14:22 EDT

The cursor config controls the scale (additional factor influencing how fast the cursor moves) and rotation of the cursor in ozone. Ash was applying this, but in mus/mash we need the window-server to apply it. This patch makes mus automatically apply the scale.

BUG=701068 TEST=covered by test

Change-Id: Ibb4fb3d4584bc23bd17e9f1b527857e27f0b6564 Reviewed-on: https://chromium-review.googlesource.com/572326

a657075 chromeos: makes cursor configuration apply in mus/mash
ash/DEPS | 1 +
ash/display/window_tree_host_manager.cc | 24 +------
ash/host/DEPS | 3 +
ash/host/ash_window_tree_host.h | 7 ++
ash/host/ash_window_tree_host_platform.cc | 22 ++++++
ash/host/ash_window_tree_host_platform.h | 7 ++
ash/mus/ash_window_tree_host_mus.cc | 10 +++
ash/mus/ash_window_tree_host_mus.h | 5 ++
.../interfaces/window_manager_constants.mojom | 4 ++
services/ui/ws/BUILD.gn | 5 +-
services/ui/ws/display.cc | 13 ++++
services/ui/ws/display.h | 6 +-
services/ui/ws/platform_display.h | 4 ++
services/ui/ws/platform_display_default.cc | 16 +++++
services/ui/ws/platform_display_default.h | 2 +
services/ui/ws/test_utils.cc | 83 +++++++++++-----------
services/ui/ws/test_utils.h | 41 +++++++++++
services/ui/ws/window_tree_unittest.cc | 15 +++-
18 files changed, 202 insertions(+), 66 deletions(-)

Upstream: git.chromium.org


  • Share