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

Issue 2234033002: mash: Remove WorkspaceLayoutManagerDelegate. (Closed)

Created:
4 years, 4 months ago by msw
Modified:
4 years, 4 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, sky
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Remove WorkspaceLayoutManagerDelegate. Call WmShelf::UpdateVisibilityState directly. Move and call WmShell::NotifyFullscreenStateChanged. Check for the default container instead of |delegate|. This should mirror existing always-on-top behavior. See related: https://codereview.chromium.org/1841803002 Nix WmRootWindowControllerObserver::OnFullscreenStateChanged. (use the original ShellObserver observer pattern instead) BUG=615155 TEST=Automated; no cros resgressions. R=jamescook@chromium.org Committed: https://crrev.com/5fabdd65c794131e3abf9093b4a6f9eb256a4615 Cr-Commit-Position: refs/heads/master@{#411222}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments; bail for non-default containers and null shelf_layout_manager. #

Total comments: 2

Patch Set 3 : Remove WmRootWindowControllerObserver::OnFullscreenStateChanged; use ShellObserver. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -240 lines) Patch
M ash/ash.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M ash/aura/wm_root_window_controller_aura.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/aura/wm_root_window_controller_aura.cc View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M ash/aura/wm_shelf_aura.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/common/wm/always_on_top_controller.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 1 2 3 chunks +29 lines, -28 lines 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager.h View 1 2 5 chunks +4 lines, -16 lines 0 comments Download
M ash/common/wm/workspace/workspace_layout_manager.cc View 1 2 8 chunks +24 lines, -29 lines 0 comments Download
D ash/common/wm/workspace/workspace_layout_manager_delegate.h View 1 chunk +0 lines, -28 lines 0 comments Download
M ash/common/wm_root_window_controller_observer.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/wm_shell.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/wm_shell.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_root_window_controller_mus.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/mus/bridge/wm_root_window_controller_mus.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M ash/mus/root_window_controller.cc View 3 chunks +1 line, -32 lines 0 comments Download
M ash/mus/workspace/workspace_layout_manager_unittest.cc View 1 2 4 chunks +9 lines, -14 lines 0 comments Download
M ash/root_window_controller.cc View 5 chunks +2 lines, -39 lines 0 comments Download
M ash/shell.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ash/shell.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M ash/wm/always_on_top_controller_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M ash/wm/workspace_controller.h View 1 chunk +1 line, -7 lines 0 comments Download
M ash/wm/workspace_controller.cc View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 28 (19 generated)
msw
Hey James, please take a look; thanks!
4 years, 4 months ago (2016-08-10 19:07:36 UTC) #3
James Cook
Looks fine to me -- I'm not sure why the bot is unhappy. One question ...
4 years, 4 months ago (2016-08-10 19:55:45 UTC) #8
msw
Please take another look; thanks! https://codereview.chromium.org/2234033002/diff/1/ash/common/wm/workspace/workspace_layout_manager.cc File ash/common/wm/workspace/workspace_layout_manager.cc (right): https://codereview.chromium.org/2234033002/diff/1/ash/common/wm/workspace/workspace_layout_manager.cc#newcode341 ash/common/wm/workspace/workspace_layout_manager.cc:341: if (root_window_controller_->GetShelf()) On 2016/08/10 ...
4 years, 4 months ago (2016-08-10 20:47:41 UTC) #10
James Cook
LGTM. Nice patch. https://codereview.chromium.org/2234033002/diff/20001/ash/common/wm/workspace/workspace_layout_manager.h File ash/common/wm/workspace/workspace_layout_manager.h (right): https://codereview.chromium.org/2234033002/diff/20001/ash/common/wm/workspace/workspace_layout_manager.h#newcode119 ash/common/wm/workspace/workspace_layout_manager.h:119: WmWindow* window_; optional idea: It would ...
4 years, 4 months ago (2016-08-10 21:01:20 UTC) #13
msw
Hey James, please take another look; thanks! +CC Scott FYI for WmRootWindowControllerObserver change. https://codereview.chromium.org/2234033002/diff/20001/ash/common/wm/workspace/workspace_layout_manager.h File ...
4 years, 4 months ago (2016-08-11 00:10:46 UTC) #17
James Cook
LGTM. Nice how you collapsed all the fullscreen notifications into a single place and single ...
4 years, 4 months ago (2016-08-11 00:35:58 UTC) #20
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/2234033002/40001
4 years, 4 months ago (2016-08-11 01:43:21 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-11 01:48:48 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 01:50:22 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5fabdd65c794131e3abf9093b4a6f9eb256a4615
Cr-Commit-Position: refs/heads/master@{#411222}

Powered by Google App Engine
This is Rietveld 408576698