| 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/common/workspace/workspace_layout_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/wm/always_on_top_controller.h" | 9 #include "ash/wm/common/always_on_top_controller.h" |
| 10 #include "ash/wm/common/fullscreen_window_finder.h" | 10 #include "ash/wm/common/fullscreen_window_finder.h" |
| 11 #include "ash/wm/common/window_positioner.h" |
| 11 #include "ash/wm/common/window_state.h" | 12 #include "ash/wm/common/window_state.h" |
| 12 #include "ash/wm/common/wm_event.h" | 13 #include "ash/wm/common/wm_event.h" |
| 13 #include "ash/wm/common/wm_globals.h" | 14 #include "ash/wm/common/wm_globals.h" |
| 14 #include "ash/wm/common/wm_root_window_controller.h" | 15 #include "ash/wm/common/wm_root_window_controller.h" |
| 15 #include "ash/wm/common/wm_screen_util.h" | 16 #include "ash/wm/common/wm_screen_util.h" |
| 16 #include "ash/wm/common/wm_window.h" | 17 #include "ash/wm/common/wm_window.h" |
| 17 #include "ash/wm/common/wm_window_property.h" | 18 #include "ash/wm/common/wm_window_property.h" |
| 19 #include "ash/wm/common/workspace/workspace_layout_manager_backdrop_delegate.h" |
| 18 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h" | 20 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h" |
| 19 #include "ash/wm/window_positioner.h" | |
| 20 #include "ash/wm/workspace/workspace_layout_manager_backdrop_delegate.h" | |
| 21 #include "ui/compositor/layer.h" | 21 #include "ui/compositor/layer.h" |
| 22 #include "ui/keyboard/keyboard_controller_observer.h" | 22 #include "ui/keyboard/keyboard_controller_observer.h" |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 | 25 |
| 26 WorkspaceLayoutManager::WorkspaceLayoutManager( | 26 WorkspaceLayoutManager::WorkspaceLayoutManager( |
| 27 wm::WmWindow* window, | 27 wm::WmWindow* window, |
| 28 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate) | 28 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate) |
| 29 : window_(window), | 29 : window_(window), |
| 30 root_window_(window->GetRootWindow()), | 30 root_window_(window->GetRootWindow()), |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 if (!delegate_) | 323 if (!delegate_) |
| 324 return; | 324 return; |
| 325 bool is_fullscreen = GetWindowForFullscreenMode(window_) != nullptr; | 325 bool is_fullscreen = GetWindowForFullscreenMode(window_) != nullptr; |
| 326 if (is_fullscreen != is_fullscreen_) { | 326 if (is_fullscreen != is_fullscreen_) { |
| 327 delegate_->OnFullscreenStateChanged(is_fullscreen); | 327 delegate_->OnFullscreenStateChanged(is_fullscreen); |
| 328 is_fullscreen_ = is_fullscreen; | 328 is_fullscreen_ = is_fullscreen; |
| 329 } | 329 } |
| 330 } | 330 } |
| 331 | 331 |
| 332 } // namespace ash | 332 } // namespace ash |
| OLD | NEW |