Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: ash/common/wm/container_finder.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm/always_on_top_controller.cc ('k') | ash/common/wm/container_finder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/common/wm/always_on_top_controller.cc ('k') | ash/common/wm/container_finder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698