diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-14 14:53:38 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-14 14:53:38 +0000 |
commit | 0ae7b196b8320d08b82cfdc70ca71a4c554edb6a (patch) | |
tree | a64a0be0022a7c40a297c575aa6c29f7a47dfdb0 /ash/wm | |
parent | d3581cabc3eea73fdb4ef381158f61ec303208a9 (diff) | |
download | chromium_src-0ae7b196b8320d08b82cfdc70ca71a4c554edb6a.zip chromium_src-0ae7b196b8320d08b82cfdc70ca71a4c554edb6a.tar.gz chromium_src-0ae7b196b8320d08b82cfdc70ca71a4c554edb6a.tar.bz2 |
Put the logic to maximize/fullscreen window back in OnWindowAddedToLayout
I'll look into if we can eliminate this.
BUG=343696
Review URL: https://codereview.chromium.org/165273002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm')
-rw-r--r-- | ash/wm/workspace/workspace_layout_manager.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc index bb25f35..41fae51 100644 --- a/ash/wm/workspace/workspace_layout_manager.cc +++ b/ash/wm/workspace/workspace_layout_manager.cc @@ -77,6 +77,11 @@ void WorkspaceLayoutManager::OnWindowAddedToLayout(Window* child) { windows_.insert(child); child->AddObserver(this); window_state->AddObserver(this); + // TODO(oshima): This is necessary as the call in + // AdjustWindowBoundsWhenAdded is skipped when the bounds is + // empty. Investigate if we can eliminate this dup. + if (!window_state->is_dragged()) + SetMaximizedOrFullscreenBounds(window_state); UpdateShelfVisibility(); UpdateFullscreenState(); WindowPositioner::RearrangeVisibleWindowOnShow(child); |