Cros splitscreen: Support screen rotation

Desktop / Chromium - xdai [chromium.org] - 11 October 2017 13:38 EDT

In this CL, if the split view mode is active, the snapped windows and split divider's bounds will be adjusted accordingly when the display screen rotates.

Not covered: "Block screen rotation while dragging the divider" case is not supported in this CL.

Bug: 725683 Change-Id: I5fdd0930444b9880a817dc1e5d70ec5a1f5bcc69 Reviewed-on: https://chromium-review.googlesource.com/651571 Commit-Queue: Xiaoqian Dai

cffcf2e Cros splitscreen: Support screen rotation.
.../screen_orientation_controller_chromeos.cc | 10 +-
.../screen_orientation_controller_chromeos.h | 5 +-
.../screen_orientation_controller_test_api.cc | 2 +-
ash/wm/overview/overview_window_drag_controller.cc | 66 ++-
ash/wm/overview/overview_window_drag_controller.h | 2 +-
ash/wm/overview/window_selector.cc | 5 +-
ash/wm/overview/window_selector.h | 3 +-
ash/wm/overview/window_selector_item.cc | 2 +-
ash/wm/overview/window_selector_unittest.cc | 182 +++++++-
ash/wm/splitview/DEPS | 5 +
ash/wm/splitview/split_view_controller.cc | 488 +++++++++++++--------
ash/wm/splitview/split_view_controller.h | 83 +++-
ash/wm/splitview/split_view_controller_unittest.cc | 109 +++++
ash/wm/splitview/split_view_divider.cc | 113 +++--
ash/wm/splitview/split_view_divider.h | 26 +-
ash/wm/tablet_mode/tablet_mode_window_manager.cc | 36 +-
ash/wm/tablet_mode/tablet_mode_window_manager.h | 25 +-
ash/wm/tablet_mode/tablet_mode_window_state.cc | 8 -
18 files changed, 883 insertions(+), 287 deletions(-)

Upstream: git.chromium.org


  • Share