UnifiedDesktop: mouse warp support
commitf8b27693580f50fabb51db8fceeff27e292cbff2
authoroshima <oshima@chromium.org>
Thu, 30 Apr 2015 07:23:00 +0000 (30 00:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Apr 2015 07:23:44 +0000 (30 07:23 +0000)
treeba13f150083a470c851d8cf7e02d370c98f501fd
parentde0d3947a6ac6914d9e7da68a8adc7fbb9a999ee
UnifiedDesktop: mouse warp support

* Refactor utility functions in ExtendedMouseWarpController into display_util.h so that they can be used in both extended and unified mode.

* Move enable flag to MouseWarpControoler.
* Add UnifiedMouseWarpController, which uses MirrorDisplays's window and gfx::Display instead.
  - Added support methods in MirrorWindowController.

BUG=365662
TEST=UnifiedMouseWarpControllerTest

Review URL: https://codereview.chromium.org/1114633002

Cr-Commit-Position: refs/heads/master@{#327671}
21 files changed:
ash/ash.gyp
ash/display/display_manager.cc
ash/display/display_manager.h
ash/display/display_util.cc
ash/display/display_util.h
ash/display/extended_mouse_warp_controller.cc
ash/display/extended_mouse_warp_controller.h
ash/display/mirror_window_controller.cc
ash/display/mirror_window_controller.h
ash/display/mouse_cursor_event_filter.cc
ash/display/mouse_cursor_event_filter.h
ash/display/mouse_warp_controller.h
ash/display/null_mouse_warp_controller.cc
ash/display/null_mouse_warp_controller.h
ash/display/screen_position_controller.cc
ash/display/screen_position_controller.h
ash/display/unified_mouse_warp_controller.cc [new file with mode: 0644]
ash/display/unified_mouse_warp_controller.h [new file with mode: 0644]
ash/display/unified_mouse_warp_controller_unittest.cc [new file with mode: 0644]
ash/host/ash_window_tree_host_unified.cc
ash/test/display_manager_test_api.cc