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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/keyboard/keyboard_observer_register.h" | 9 #include "ash/keyboard/keyboard_observer_register.h" |
10 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
11 #include "ash/root_window_controller.h" | 11 #include "ash/root_window_controller.h" |
12 #include "ash/screen_util.h" | 12 #include "ash/screen_util.h" |
13 #include "ash/session/session_controller.h" | 13 #include "ash/session/session_controller.h" |
14 #include "ash/shelf/wm_shelf.h" | 14 #include "ash/shelf/wm_shelf.h" |
15 #include "ash/shell.h" | 15 #include "ash/shell.h" |
16 #include "ash/wm/always_on_top_controller.h" | 16 #include "ash/wm/always_on_top_controller.h" |
17 #include "ash/wm/fullscreen_window_finder.h" | 17 #include "ash/wm/fullscreen_window_finder.h" |
18 #include "ash/wm/screen_pinning_controller.h" | 18 #include "ash/wm/screen_pinning_controller.h" |
19 #include "ash/wm/window_positioner.h" | 19 #include "ash/wm/window_positioner.h" |
20 #include "ash/wm/window_properties.h" | 20 #include "ash/wm/window_properties.h" |
21 #include "ash/wm/window_state.h" | 21 #include "ash/wm/window_state.h" |
22 #include "ash/wm/window_state_aura.h" | |
23 #include "ash/wm/window_util.h" | 22 #include "ash/wm/window_util.h" |
24 #include "ash/wm/wm_event.h" | 23 #include "ash/wm/wm_event.h" |
25 #include "ash/wm/workspace/backdrop_controller.h" | 24 #include "ash/wm/workspace/backdrop_controller.h" |
26 #include "ash/wm/workspace/backdrop_delegate.h" | 25 #include "ash/wm/workspace/backdrop_delegate.h" |
27 #include "ash/wm_window.h" | 26 #include "ash/wm_window.h" |
28 #include "base/command_line.h" | 27 #include "base/command_line.h" |
29 #include "ui/aura/client/aura_constants.h" | 28 #include "ui/aura/client/aura_constants.h" |
30 #include "ui/base/ui_base_switches.h" | 29 #include "ui/base/ui_base_switches.h" |
31 #include "ui/compositor/layer.h" | 30 #include "ui/compositor/layer.h" |
32 #include "ui/display/display.h" | 31 #include "ui/display/display.h" |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 for (aura::Window* window : windows) { | 401 for (aura::Window* window : windows) { |
403 wm::WindowState* window_state = wm::GetWindowState(window); | 402 wm::WindowState* window_state = wm::GetWindowState(window); |
404 if (window_on_top) | 403 if (window_on_top) |
405 window_state->DisableAlwaysOnTop(WmWindow::Get(window_on_top)); | 404 window_state->DisableAlwaysOnTop(WmWindow::Get(window_on_top)); |
406 else | 405 else |
407 window_state->RestoreAlwaysOnTop(); | 406 window_state->RestoreAlwaysOnTop(); |
408 } | 407 } |
409 } | 408 } |
410 | 409 |
411 } // namespace ash | 410 } // namespace ash |
OLD | NEW |