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

Issue 2955203002: Cros Tablet Window management - Split Screen part II (Closed)

Created:
3 years, 5 months ago by xdai1
Modified:
3 years, 5 months ago
Reviewers:
varkha, oshima
CC:
chromium-reviews, kalyank, sadrul, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cros Tablet Window management - Split Screen part II Wire up the SplitViewController with the overview mode. It's a following up CL of https://codereview.chromium.org/2960843004/. Changes in this CL: 1. The split view mode can be initiated by dragging the window in overview mode to the side of the screen 2. After one window is snapped to one side of the screen, all the other overview windows will display in the other side of the screen, allowing the user to select another window to snap. When two windows are snapped to both sides of the screen, the overview mode will be ended. 3. The first snapped window will remain snapped until the user explicitly exit the split view mode. All the other windows (incluing newly created window) will be open in the other side of the screen. Clicking/Tapping on the overview button also open the overview windows in the other side of the screen. Not covered in this CL: 1. The highlighted region showing where split will occur is not implemented in this CL. 2. The split divider is not implemented in this CL. BUG=725683 Review-Url: https://codereview.chromium.org/2955203002 Cr-Commit-Position: refs/heads/master@{#487542} Committed: https://chromium.googlesource.com/chromium/src/+/0c6d79c9a3a2bf404ef94220c389924541c92f0b

Patch Set 1 #

Patch Set 2 : more tests. #

Patch Set 3 : Rebase. #

Patch Set 4 : Rebase. #

Total comments: 34

Patch Set 5 : Rebase against part I. #

Patch Set 6 : Rebase against part I. Use SplitViewController::SnapPosition instead of OverviewWindowDragControlle… #

Patch Set 7 : Address oshima@ and varkha@'s comments. #

Patch Set 8 : Rebase. #

Total comments: 6

Patch Set 9 : Address varkha@ and oshima's comments. Rebase. #

Patch Set 10 : Fix the failed ash_unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+844 lines, -58 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_state.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/overview/overview_animation_type.h View 1 chunk +4 lines, -1 line 0 comments Download
A ash/wm/overview/overview_window_drag_controller.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A ash/wm/overview/overview_window_drag_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +155 lines, -0 lines 0 comments Download
M ash/wm/overview/scoped_overview_animation_settings.cc View 3 chunks +4 lines, -0 lines 0 comments Download
M ash/wm/overview/scoped_transform_overview_window.h View 3 chunks +6 lines, -1 line 0 comments Download
M ash/wm/overview/scoped_transform_overview_window.cc View 1 2 3 4 4 chunks +42 lines, -3 lines 0 comments Download
M ash/wm/overview/window_grid.h View 5 chunks +12 lines, -1 line 0 comments Download
M ash/wm/overview/window_grid.cc View 1 5 chunks +26 lines, -6 lines 0 comments Download
M ash/wm/overview/window_selector.h View 1 2 3 4 5 6 7 chunks +35 lines, -4 lines 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 3 4 5 6 7 8 9 chunks +121 lines, -11 lines 0 comments Download
M ash/wm/overview/window_selector_controller.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/wm/overview/window_selector_controller.cc View 1 2 3 4 5 6 7 8 9 3 chunks +41 lines, -4 lines 0 comments Download
M ash/wm/overview/window_selector_item.h View 1 2 3 4 5 6 5 chunks +22 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_item.cc View 1 2 3 4 5 6 8 chunks +146 lines, -6 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +76 lines, -0 lines 0 comments Download
M ash/wm/splitview/split_view_controller.h View 1 2 3 4 5 6 7 4 chunks +5 lines, -4 lines 0 comments Download
M ash/wm/splitview/split_view_controller.cc View 1 2 3 4 5 6 7 6 chunks +10 lines, -10 lines 0 comments Download
M ash/wm/splitview/split_view_controller_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +62 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
xdai1
+cc sadrul@ FYI oshima@, varkha@, this is the second part of the original CL. In ...
3 years, 5 months ago (2017-06-27 23:45:33 UTC) #4
xdai1
oshima@, varkha@, kindly ping? Could you take a look at this CL please? Thanks!
3 years, 5 months ago (2017-06-29 16:57:15 UTC) #5
oshima
what happens if I rotate the device while dragging? https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/window_selector.cc File ash/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/window_selector.cc#newcode153 ash/wm/overview/window_selector.cc:153: ...
3 years, 5 months ago (2017-06-29 17:46:23 UTC) #6
varkha
https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/overview_window_drag_controller.cc File ash/wm/overview/overview_window_drag_controller.cc (right): https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/overview_window_drag_controller.cc#newcode57 ash/wm/overview/overview_window_drag_controller.cc:57: // Updates the dragged |item_|'s bounds accordingly. nit: not ...
3 years, 5 months ago (2017-06-30 16:32:27 UTC) #7
xdai1
oshima@, varkha@, I've addressed your comments. Please take another look, thanks for the review! https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/overview_window_drag_controller.cc ...
3 years, 5 months ago (2017-07-06 00:35:50 UTC) #8
xdai1
kindly ping?
3 years, 5 months ago (2017-07-13 18:38:52 UTC) #17
varkha
https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/window_selector.cc File ash/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/window_selector.cc#newcode153 ash/wm/overview/window_selector.cc:153: return split_view_controller->GetSnappedWindowBoundsInScreen(root_window, On 2017/07/06 00:35:49, xdai OOO till Jul ...
3 years, 5 months ago (2017-07-13 20:21:25 UTC) #18
varkha
Thanks, lgtm, but please see my comment about not being able to drag widgets with ...
3 years, 5 months ago (2017-07-13 22:43:01 UTC) #19
oshima
lgtm https://codereview.chromium.org/2955203002/diff/140001/ash/wm/overview/overview_window_drag_controller.cc File ash/wm/overview/overview_window_drag_controller.cc (right): https://codereview.chromium.org/2955203002/diff/140001/ash/wm/overview/overview_window_drag_controller.cc#newcode24 ash/wm/overview/overview_window_drag_controller.cc:24: const int kMinimiumDragOffset = 5; nit: constexpr https://codereview.chromium.org/2955203002/diff/140001/ash/wm/overview/overview_window_drag_controller.cc#newcode28 ...
3 years, 5 months ago (2017-07-14 18:43:12 UTC) #20
xdai1
oshima@, varkha@, thanks for the review! https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/window_selector.cc File ash/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2955203002/diff/60001/ash/wm/overview/window_selector.cc#newcode153 ash/wm/overview/window_selector.cc:153: return split_view_controller->GetSnappedWindowBoundsInScreen(root_window, On ...
3 years, 5 months ago (2017-07-18 17:36:45 UTC) #21
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/2955203002/160001
3 years, 5 months ago (2017-07-18 17:37:25 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/0c6d79c9a3a2bf404ef94220c389924541c92f0b
3 years, 5 months ago (2017-07-18 18:58:13 UTC) #27
alph
3 years, 5 months ago (2017-07-18 21:45:59 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/2978273002/ by alph@chromium.org.

The reason for reverting is: Broke ash_unittests
https://uberchromegw.corp.google.com/i/chromium.chromiumos/builders/Linux%20C....

Powered by Google App Engine
This is Rietveld 408576698