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

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)

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

Description

CrOS Tablet Window management - Split Screen part I Implement the split view. The behavior is similar to what we have on Android today. See PRD: go/cros-splitview-prd. Changes in this CL: 1. Introduce a command switch (--enable-tablet-splitview) to enable split view in tablet mode (maximized mode). 2. The split view mode can be initiated by dragging the window in overview mode to the side of the screen 3. 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. 4. 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

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Fix failed tests. #

Total comments: 71

Patch Set 4 : Rebase. #

Patch Set 5 : Address oshima@'s comments. #

Patch Set 6 : Fix failed unittest. #

Total comments: 2

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

Total comments: 4

Patch Set 8 : Address oshima@'s comments #

Total comments: 73

Patch Set 9 : Rebase. #

Patch Set 10 : Address varkha@'s comments. #

Total comments: 12

Patch Set 11 : Address varkha@'s comments. #

Patch Set 12 : Add unittests. Will split the CL into two CLs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1535 lines, -41 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -0 lines 0 comments Download
M ash/ash_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ash/ash_switches.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +18 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +20 lines, -1 line 0 comments Download
M ash/shell_observer.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_state.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_state.cc View 1 2 3 4 5 6 6 chunks +58 lines, -3 lines 0 comments Download
M ash/wm/overview/overview_animation_type.h View 1 2 3 4 5 6 7 8 9 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 9 1 chunk +68 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 +157 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 1 2 3 4 5 6 7 8 9 10 5 chunks +12 lines, -1 line 0 comments Download
M ash/wm/overview/window_grid.cc View 1 2 3 4 5 6 7 8 9 5 chunks +26 lines, -6 lines 0 comments Download
M ash/wm/overview/window_selector.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +30 lines, -4 lines 0 comments Download
M ash/wm/overview/window_selector.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +123 lines, -11 lines 0 comments Download
M ash/wm/overview/window_selector_controller.h View 1 2 3 4 5 6 7 8 9 10 11 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 10 11 3 chunks +36 lines, -3 lines 0 comments Download
M ash/wm/overview/window_selector_item.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +23 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_item.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +147 lines, -6 lines 0 comments Download
A ash/wm/splitview/split_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +134 lines, -0 lines 0 comments Download
A ash/wm/splitview/split_view_controller.cc View 1 2 3 4 5 6 1 chunk +356 lines, -0 lines 0 comments Download
A ash/wm/splitview/split_view_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +219 lines, -0 lines 0 comments Download
M ash/wm/workspace/backdrop_controller.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/workspace/backdrop_controller.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (23 generated)
xdai1
oshima@, could you help review this CL please? Thanks!
3 years, 6 months ago (2017-06-07 23:03:48 UTC) #5
oshima
On 2017/06/07 23:03:48, xdai1 wrote: > oshima@, could you help review this CL please? Thanks! ...
3 years, 6 months ago (2017-06-12 21:32:31 UTC) #6
oshima
will send the rest a bit later. https://codereview.chromium.org/2918403006/diff/40001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2918403006/diff/40001/ash/shell.cc#newcode731 ash/shell.cc:731: split_view_controller_.reset(); can ...
3 years, 6 months ago (2017-06-14 00:19:28 UTC) #7
oshima
https://codereview.chromium.org/2918403006/diff/40001/ash/wm/overview/window_selector_controller.cc File ash/wm/overview/window_selector_controller.cc (right): https://codereview.chromium.org/2918403006/diff/40001/ash/wm/overview/window_selector_controller.cc#newcode70 ash/wm/overview/window_selector_controller.cc:70: // occupy the other side of the screen in ...
3 years, 6 months ago (2017-06-14 05:45:47 UTC) #8
xdai1
oshima@, I've addressed your comments. Please take another look, thanks for the review! https://codereview.chromium.org/2918403006/diff/40001/ash/shell.cc File ...
3 years, 6 months ago (2017-06-15 22:11:42 UTC) #9
oshima
https://codereview.chromium.org/2918403006/diff/40001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/2918403006/diff/40001/ash/shell.cc#newcode731 ash/shell.cc:731: split_view_controller_.reset(); On 2017/06/15 22:11:40, xdai1 wrote: > On 2017/06/14 ...
3 years, 6 months ago (2017-06-16 01:20:57 UTC) #19
xdai1
oshima@, I've addressed your comments. Please take another look, thanks for your review! https://codereview.chromium.org/2918403006/diff/40001/ash/shell.cc File ...
3 years, 6 months ago (2017-06-16 18:49:52 UTC) #21
oshima
lgtm https://codereview.chromium.org/2918403006/diff/140001/ash/wm/overview/window_selector.cc File ash/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2918403006/diff/140001/ash/wm/overview/window_selector.cc#newcode145 ash/wm/overview/window_selector.cc:145: // opposite side of the default snap window. ...
3 years, 6 months ago (2017-06-16 19:39:15 UTC) #22
xdai1
oshima@, I've addressed your comments. Thanks for the review! https://codereview.chromium.org/2918403006/diff/140001/ash/wm/overview/window_selector.cc File ash/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2918403006/diff/140001/ash/wm/overview/window_selector.cc#newcode145 ash/wm/overview/window_selector.cc:145: ...
3 years, 6 months ago (2017-06-16 20:01:46 UTC) #23
xdai1
varkha@, could you help answer the following question? Thanks! https://codereview.chromium.org/2918403006/diff/40001/ash/wm/overview/window_grid.cc File ash/wm/overview/window_grid.cc (right): https://codereview.chromium.org/2918403006/diff/40001/ash/wm/overview/window_grid.cc#newcode529 ash/wm/overview/window_grid.cc:529: ...
3 years, 6 months ago (2017-06-20 22:10:00 UTC) #28
varkha
I've only looks at the overview mode files so far. Looks really interesting! https://codereview.chromium.org/2918403006/diff/40001/ash/wm/overview/window_grid.cc File ...
3 years, 6 months ago (2017-06-21 01:51:54 UTC) #29
xdai1
varkha@, I've addressed your comments. Please take another look, thanks for the review! https://codereview.chromium.org/2918403006/diff/160001/ash/wm/overview/overview_animation_type.h File ...
3 years, 6 months ago (2017-06-22 21:46:34 UTC) #30
xdai1
varkha@, kindly ping?
3 years, 6 months ago (2017-06-23 23:35:26 UTC) #35
sadrul
Hi! A couple of drive by comments: . This CL seems to do a fair ...
3 years, 6 months ago (2017-06-23 23:58:49 UTC) #37
xdai1
Thanks for the drive by comments! On 2017/06/23 23:58:49, sadrul wrote: > Hi! A couple ...
3 years, 5 months ago (2017-06-26 15:49:26 UTC) #38
varkha
> If I split it into small CLs, the smaller CLs won't be functional. Perhaps ...
3 years, 5 months ago (2017-06-26 16:40:08 UTC) #39
xdai1
varkha@, I've addressed your comments. Please take another look at this CL, thanks! > Perhaps ...
3 years, 5 months ago (2017-06-26 21:44:00 UTC) #40
xdai1
3 years, 5 months ago (2017-06-27 23:47:17 UTC) #41
This CL has split into two sub-CLs as suggested:
https://codereview.chromium.org/2960843004/ and
https://codereview.chromium.org/2955203002/.

I'll close this CL as a result.

Powered by Google App Engine
This is Rietveld 408576698