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/common/workspace/workspace_layout_manager.h" | 5 #include "ash/common/wm/workspace/workspace_layout_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/wm/common/always_on_top_controller.h" | 9 #include "ash/common/wm/always_on_top_controller.h" |
10 #include "ash/wm/common/fullscreen_window_finder.h" | 10 #include "ash/common/wm/fullscreen_window_finder.h" |
11 #include "ash/wm/common/window_positioner.h" | 11 #include "ash/common/wm/window_positioner.h" |
12 #include "ash/wm/common/window_state.h" | 12 #include "ash/common/wm/window_state.h" |
13 #include "ash/wm/common/wm_event.h" | 13 #include "ash/common/wm/wm_event.h" |
14 #include "ash/wm/common/wm_globals.h" | 14 #include "ash/common/wm/wm_globals.h" |
15 #include "ash/wm/common/wm_root_window_controller.h" | 15 #include "ash/common/wm/wm_root_window_controller.h" |
16 #include "ash/wm/common/wm_screen_util.h" | 16 #include "ash/common/wm/wm_screen_util.h" |
17 #include "ash/wm/common/wm_window.h" | 17 #include "ash/common/wm/wm_window.h" |
18 #include "ash/wm/common/wm_window_property.h" | 18 #include "ash/common/wm/wm_window_property.h" |
19 #include "ash/wm/common/workspace/workspace_layout_manager_backdrop_delegate.h" | 19 #include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h" |
20 #include "ash/wm/common/workspace/workspace_layout_manager_delegate.h" | 20 #include "ash/common/wm/workspace/workspace_layout_manager_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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 if (!delegate_) | 322 if (!delegate_) |
323 return; | 323 return; |
324 bool is_fullscreen = GetWindowForFullscreenMode(window_) != nullptr; | 324 bool is_fullscreen = GetWindowForFullscreenMode(window_) != nullptr; |
325 if (is_fullscreen != is_fullscreen_) { | 325 if (is_fullscreen != is_fullscreen_) { |
326 delegate_->OnFullscreenStateChanged(is_fullscreen); | 326 delegate_->OnFullscreenStateChanged(is_fullscreen); |
327 is_fullscreen_ = is_fullscreen; | 327 is_fullscreen_ = is_fullscreen; |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 } // namespace ash | 331 } // namespace ash |
OLD | NEW |