OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/wm/container_finder.h" | 5 #include "ash/common/wm/container_finder.h" |
6 | 6 |
7 #include "ash/common/session/session_state_delegate.h" | 7 #include "ash/common/session/session_state_delegate.h" |
8 #include "ash/common/shell_window_ids.h" | |
9 #include "ash/common/wm/always_on_top_controller.h" | 8 #include "ash/common/wm/always_on_top_controller.h" |
10 #include "ash/common/wm/root_window_finder.h" | 9 #include "ash/common/wm/root_window_finder.h" |
11 #include "ash/common/wm/window_state.h" | 10 #include "ash/common/wm/window_state.h" |
12 #include "ash/common/wm_root_window_controller.h" | 11 #include "ash/common/wm_root_window_controller.h" |
13 #include "ash/common/wm_shell.h" | 12 #include "ash/common/wm_shell.h" |
14 #include "ash/common/wm_window.h" | 13 #include "ash/common/wm_window.h" |
| 14 #include "ash/public/cpp/shell_window_ids.h" |
15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 namespace wm { | 18 namespace wm { |
19 namespace { | 19 namespace { |
20 | 20 |
21 WmWindow* FindContainerRoot(WmShell* shell, const gfx::Rect& bounds) { | 21 WmWindow* FindContainerRoot(WmShell* shell, const gfx::Rect& bounds) { |
22 if (bounds == gfx::Rect()) | 22 if (bounds == gfx::Rect()) |
23 return shell->GetRootWindowForNewWindows(); | 23 return shell->GetRootWindowForNewWindows(); |
24 return GetRootWindowMatching(bounds); | 24 return GetRootWindowMatching(bounds); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 if (priority_root && priority_root->Contains(container)) | 120 if (priority_root && priority_root->Contains(container)) |
121 containers.insert(containers.begin(), container); | 121 containers.insert(containers.begin(), container); |
122 else | 122 else |
123 containers.push_back(container); | 123 containers.push_back(container); |
124 } | 124 } |
125 return containers; | 125 return containers; |
126 } | 126 } |
127 | 127 |
128 } // namespace wm | 128 } // namespace wm |
129 } // namespace ash | 129 } // namespace ash |
OLD | NEW |