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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_manager.cc

Issue 844763006: Change overview mode to so that docked panel windows are not grouped together. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed stale pointer in ScopedTransformOverviewWindow. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" 5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
6 6
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell_window_ids.h" 9 #include "ash/shell_window_ids.h"
10 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" 10 #include "ash/wm/maximize_mode/maximize_mode_window_state.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 void MaximizeModeWindowManager::OnOverviewModeStarting() { 79 void MaximizeModeWindowManager::OnOverviewModeStarting() {
80 if (backdrops_hidden_) 80 if (backdrops_hidden_)
81 return; 81 return;
82 82
83 EnableBackdropBehindTopWindowOnEachDisplay(false); 83 EnableBackdropBehindTopWindowOnEachDisplay(false);
84 SetDeferBoundsUpdates(true); 84 SetDeferBoundsUpdates(true);
85 backdrops_hidden_ = true; 85 backdrops_hidden_ = true;
86 } 86 }
87 87
88 void MaximizeModeWindowManager::OnOverviewModeEnding() { 88 void MaximizeModeWindowManager::OnOverviewModeEnded() {
89 if (!backdrops_hidden_) 89 if (!backdrops_hidden_)
90 return; 90 return;
91 91
92 backdrops_hidden_ = false; 92 backdrops_hidden_ = false;
93 EnableBackdropBehindTopWindowOnEachDisplay(true); 93 EnableBackdropBehindTopWindowOnEachDisplay(true);
94 SetDeferBoundsUpdates(false); 94 SetDeferBoundsUpdates(false);
95 } 95 }
96 96
97 void MaximizeModeWindowManager::OnWindowDestroying(aura::Window* window) { 97 void MaximizeModeWindowManager::OnWindowDestroying(aura::Window* window) {
98 // If a known window gets destroyed we need to remove all knowledge about it. 98 // If a known window gets destroyed we need to remove all knowledge about it.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 RootWindowController* controller = *iter; 287 RootWindowController* controller = *iter;
288 aura::Window* container = Shell::GetContainer( 288 aura::Window* container = Shell::GetContainer(
289 controller->GetRootWindow(), kShellWindowId_DefaultContainer); 289 controller->GetRootWindow(), kShellWindowId_DefaultContainer);
290 controller->workspace_controller()->SetMaximizeBackdropDelegate( 290 controller->workspace_controller()->SetMaximizeBackdropDelegate(
291 scoped_ptr<WorkspaceLayoutManagerDelegate>( 291 scoped_ptr<WorkspaceLayoutManagerDelegate>(
292 enable ? new WorkspaceBackdropDelegate(container) : NULL)); 292 enable ? new WorkspaceBackdropDelegate(container) : NULL));
293 } 293 }
294 } 294 }
295 295
296 } // namespace ash 296 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager.h ('k') | ash/wm/overview/scoped_transform_overview_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698