| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/workspace/workspace_layout_manager.h" | 5 #include "ash/wm/workspace/workspace_layout_manager.h" |
| 6 | 6 |
| 7 #include "ash/screen_ash.h" | 7 #include "ash/screen_ash.h" |
| 8 #include "ash/wm/window_properties.h" |
| 8 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
| 9 #include "ash/wm/window_properties.h" | |
| 10 #include "ash/wm/workspace/workspace.h" | 10 #include "ash/wm/workspace/workspace.h" |
| 11 #include "ash/wm/workspace/workspace_manager.h" | 11 #include "ash/wm/workspace/workspace_manager.h" |
| 12 #include "ui/aura/client/aura_constants.h" | 12 #include "ui/aura/client/aura_constants.h" |
| 13 #include "ui/aura/root_window.h" | 13 #include "ui/aura/root_window.h" |
| 14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
| 15 #include "ui/aura/window_observer.h" | 15 #include "ui/aura/window_observer.h" |
| 16 #include "ui/base/event.h" | 16 #include "ui/base/events/event.h" |
| 17 #include "ui/base/ui_base_types.h" | 17 #include "ui/base/ui_base_types.h" |
| 18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 namespace internal { | 21 namespace internal { |
| 22 | 22 |
| 23 WorkspaceLayoutManager::WorkspaceLayoutManager( | 23 WorkspaceLayoutManager::WorkspaceLayoutManager( |
| 24 aura::RootWindow* root_window, | 24 aura::RootWindow* root_window, |
| 25 WorkspaceManager* workspace_manager) | 25 WorkspaceManager* workspace_manager) |
| 26 : BaseLayoutManager(root_window), | 26 : BaseLayoutManager(root_window), |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 } | 107 } |
| 108 BaseLayoutManager::ShowStateChanged(window, last_show_state); | 108 BaseLayoutManager::ShowStateChanged(window, last_show_state); |
| 109 workspace_manager_->ShowStateChanged(window); | 109 workspace_manager_->ShowStateChanged(window); |
| 110 // As BaseLayoutManager::ShowStateChanged() may change the visibility of the | 110 // As BaseLayoutManager::ShowStateChanged() may change the visibility of the |
| 111 // window we need to invoke UpdateShelfVisibility() after ShowStateChanged(). | 111 // window we need to invoke UpdateShelfVisibility() after ShowStateChanged(). |
| 112 workspace_manager_->UpdateShelfVisibility(); | 112 workspace_manager_->UpdateShelfVisibility(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace internal | 115 } // namespace internal |
| 116 } // namespace ash | 116 } // namespace ash |
| OLD | NEW |