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

Side by Side Diff: ash/root_window_controller.h

Issue 1954523002: Refactors StackingController::GetDefaultParent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update gyp Created 4 years, 7 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 | « no previous file | ash/root_window_controller.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 (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 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Creates and Initialize the RootWindowController for secondary displays. 89 // Creates and Initialize the RootWindowController for secondary displays.
90 static void CreateForSecondaryDisplay(AshWindowTreeHost* host); 90 static void CreateForSecondaryDisplay(AshWindowTreeHost* host);
91 91
92 // Returns a RootWindowController of the window's root window. 92 // Returns a RootWindowController of the window's root window.
93 static RootWindowController* ForWindow(const aura::Window* window); 93 static RootWindowController* ForWindow(const aura::Window* window);
94 94
95 // Returns the RootWindowController of the target root window. 95 // Returns the RootWindowController of the target root window.
96 static RootWindowController* ForTargetRootWindow(); 96 static RootWindowController* ForTargetRootWindow();
97 97
98 // Returns container which contains a given |window|.
99 static aura::Window* GetContainerForWindow(aura::Window* window);
100
101 ~RootWindowController() override; 98 ~RootWindowController() override;
102 99
103 AshWindowTreeHost* ash_host() { return ash_host_.get(); } 100 AshWindowTreeHost* ash_host() { return ash_host_.get(); }
104 const AshWindowTreeHost* ash_host() const { return ash_host_.get(); } 101 const AshWindowTreeHost* ash_host() const { return ash_host_.get(); }
105 102
106 aura::WindowTreeHost* GetHost(); 103 aura::WindowTreeHost* GetHost();
107 const aura::WindowTreeHost* GetHost() const; 104 const aura::WindowTreeHost* GetHost() const;
108 aura::Window* GetRootWindow(); 105 aura::Window* GetRootWindow();
109 const aura::Window* GetRootWindow() const; 106 const aura::Window* GetRootWindow() const;
110 107
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 }; 307 };
311 308
312 309
313 // Gets the RootWindowController for |root_window|. 310 // Gets the RootWindowController for |root_window|.
314 ASH_EXPORT RootWindowController* GetRootWindowController( 311 ASH_EXPORT RootWindowController* GetRootWindowController(
315 const aura::Window* root_window); 312 const aura::Window* root_window);
316 313
317 } // namespace ash 314 } // namespace ash
318 315
319 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 316 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698