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

Side by Side Diff: ash/wm/container_finder.h

Issue 2826453003: Makes functions in container_finder take aura::Window (Closed)
Patch Set: cleanup Created 3 years, 8 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/system/tray/tray_event_filter.cc ('k') | ash/wm/container_finder.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 #ifndef ASH_WM_CONTAINER_FINDER_H_ 5 #ifndef ASH_WM_CONTAINER_FINDER_H_
6 #define ASH_WM_CONTAINER_FINDER_H_ 6 #define ASH_WM_CONTAINER_FINDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 11
12 namespace aura { 12 namespace aura {
13 class Window; 13 class Window;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Rect; 17 class Rect;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21
22 class WmWindow;
23
24 namespace wm { 21 namespace wm {
25 22
26 // Returns the first ancestor of |window| that has a known container ID. 23 // Returns the first ancestor of |window| that has a known container ID.
27 ASH_EXPORT WmWindow* GetContainerForWindow(WmWindow* window); 24 ASH_EXPORT aura::Window* GetContainerForWindow(aura::Window* window);
28 25
29 // Returns the parent to add |window| to. This is generally used when a window 26 // Returns the parent to add |window| to. This is generally used when a window
30 // is moved from one root to another. 27 // is moved from one root to another.
31 ASH_EXPORT WmWindow* GetDefaultParent(WmWindow* window, 28 ASH_EXPORT aura::Window* GetDefaultParent(aura::Window* window,
32 const gfx::Rect& bounds); 29 const gfx::Rect& bounds);
33 30
34 // Returns the list of containers that match |container_id| in all root windows. 31 // Returns the list of containers that match |container_id| in all root windows.
35 // If |priority_root| is non-null, the container in |priority_root| is placed at 32 // If |priority_root| is non-null, the container in |priority_root| is placed at
36 // the front of the list. 33 // the front of the list.
37 ASH_EXPORT std::vector<aura::Window*> GetContainersFromAllRootWindows( 34 ASH_EXPORT std::vector<aura::Window*> GetContainersFromAllRootWindows(
38 int container_id, 35 int container_id,
39 aura::Window* priority_root = nullptr); 36 aura::Window* priority_root = nullptr);
40 37
41 } // namespace wm 38 } // namespace wm
42 } // namespace ash 39 } // namespace ash
43 40
44 #endif // ASH_WM_CONTAINER_FINDER_H_ 41 #endif // ASH_WM_CONTAINER_FINDER_H_
OLDNEW
« no previous file with comments | « ash/system/tray/tray_event_filter.cc ('k') | ash/wm/container_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698