| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |