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

Issue 9113045: Reworks the workspace code. Here's the new heuristics: (Closed)

Created:
8 years, 11 months ago by sky
Modified:
8 years, 11 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Reworks the workspace code. Here's the new heuristics: . All normal windows end up in a single workspace. . Each maximized window ends up in its own workspace. . There is an additional workspace for split windows, but the heuristics of this aren't implemented yet. I've left some bits of the old code, in particular overview but there isn't really a way to get into it yet and it'll need some reworking if we decide to keep it. BUG=111285 TEST=none R=ben@chromium.org,oshima@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=119282

Patch Set 1 #

Patch Set 2 : Tweaks #

Patch Set 3 : More changes #

Total comments: 11

Patch Set 4 : Incorporated feedback and fixed bugs #

Total comments: 10

Patch Set 5 : Incorporate feedback #

Total comments: 1

Patch Set 6 : Merged and all that good stuff. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -1594 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 3 chunks +0 lines, -4 lines 0 comments Download
M ash/shell/shell_main.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
D ash/wm/show_state_controller.h View 1 chunk +0 lines, -44 lines 0 comments Download
D ash/wm/show_state_controller.cc View 1 chunk +0 lines, -47 lines 0 comments Download
M ash/wm/window_util.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ash/wm/window_util.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace.h View 1 2 4 chunks +33 lines, -56 lines 0 comments Download
M ash/wm/workspace/workspace.cc View 1 2 3 5 chunks +39 lines, -205 lines 0 comments Download
M ash/wm/workspace/workspace_event_filter.h View 3 chunks +6 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_event_filter.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 3 chunks +3 lines, -6 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 4 chunks +22 lines, -99 lines 0 comments Download
D ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 chunk +0 lines, -341 lines 0 comments Download
M ash/wm/workspace/workspace_manager.h View 1 2 3 4 5 6 chunks +43 lines, -42 lines 0 comments Download
M ash/wm/workspace/workspace_manager.cc View 1 2 3 4 5 6 chunks +217 lines, -149 lines 0 comments Download
M ash/wm/workspace/workspace_manager_unittest.cc View 1 2 3 4 4 chunks +193 lines, -472 lines 0 comments Download
D ash/wm/workspace/workspace_observer.h View 1 chunk +0 lines, -40 lines 0 comments Download
M ash/wm/workspace_controller.h View 3 chunks +0 lines, -9 lines 0 comments Download
M ash/wm/workspace_controller.cc View 3 chunks +2 lines, -29 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 1 2 3 4 5 2 chunks +1 line, -49 lines 0 comments Download
M chrome/browser/ui/views/aura/launcher_icon_updater.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sky
There's a lot of bits TODO here, but this is a good starting point.
8 years, 11 months ago (2012-01-25 01:03:57 UTC) #1
sky
Since no one has looked at this yet I changed it around rather substantially. In ...
8 years, 11 months ago (2012-01-25 15:58:57 UTC) #2
Ben Goodger (Google)
I am going to let oshima have first swing at this since he knows the ...
8 years, 11 months ago (2012-01-25 18:34:58 UTC) #3
oshima
first round. need to go over a few more times. http://codereview.chromium.org/9113045/diff/4001/ash/wm/workspace/workspace.cc File ash/wm/workspace/workspace.cc (right): http://codereview.chromium.org/9113045/diff/4001/ash/wm/workspace/workspace.cc#newcode43 ...
8 years, 11 months ago (2012-01-25 23:21:12 UTC) #4
sky
Incorporated your feedback and fixed a couple of bugs around setting maximized state and removing ...
8 years, 11 months ago (2012-01-26 00:34:09 UTC) #5
sky
And I added tests for the cases I missed.
8 years, 11 months ago (2012-01-26 00:34:19 UTC) #6
oshima
http://codereview.chromium.org/9113045/diff/5024/ash/wm/window_util.cc File ash/wm/window_util.cc (right): http://codereview.chromium.org/9113045/diff/5024/ash/wm/window_util.cc#newcode17 ash/wm/window_util.cc:17: static const char kOpenWindowSplitKey[] = "OpenWindowSplit"; move this to ...
8 years, 11 months ago (2012-01-26 16:37:25 UTC) #7
sky
I've incorporated all your feedback and uploaded new patch. Thanks, -Scott http://codereview.chromium.org/9113045/diff/5024/ash/wm/workspace/workspace_manager.cc File ash/wm/workspace/workspace_manager.cc (right): ...
8 years, 11 months ago (2012-01-26 16:51:22 UTC) #8
oshima_google
LGTM
8 years, 11 months ago (2012-01-26 16:58:04 UTC) #9
oshima
LGTM, from right account.
8 years, 11 months ago (2012-01-26 16:59:44 UTC) #10
Ben Goodger (Google)
8 years, 11 months ago (2012-01-26 17:03:53 UTC) #11
lgtm

http://codereview.chromium.org/9113045/diff/4008/ash/wm/workspace/workspace_m...
File ash/wm/workspace/workspace_manager.h (right):

http://codereview.chromium.org/9113045/diff/4008/ash/wm/workspace/workspace_m...
ash/wm/workspace/workspace_manager.h:32: class ASH_EXPORT WorkspaceManager :
public aura::WindowObserver{
nit: space between r and {

Powered by Google App Engine
This is Rietveld 408576698