| 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 #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 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // its property (RootWindowSettings) and can be obtained using | 78 // its property (RootWindowSettings) and can be obtained using |
| 79 // |GetRootWindowController(aura::WindowEventDispatcher*)| function. | 79 // |GetRootWindowController(aura::WindowEventDispatcher*)| function. |
| 80 class ASH_EXPORT RootWindowController : public ShellObserver { | 80 class ASH_EXPORT RootWindowController : public ShellObserver { |
| 81 public: | 81 public: |
| 82 // Creates and Initialize the RootWindowController for primary display. | 82 // Creates and Initialize the RootWindowController for primary display. |
| 83 static void CreateForPrimaryDisplay(AshWindowTreeHost* host); | 83 static void CreateForPrimaryDisplay(AshWindowTreeHost* host); |
| 84 | 84 |
| 85 // Creates and Initialize the RootWindowController for secondary displays. | 85 // Creates and Initialize the RootWindowController for secondary displays. |
| 86 static void CreateForSecondaryDisplay(AshWindowTreeHost* host); | 86 static void CreateForSecondaryDisplay(AshWindowTreeHost* host); |
| 87 | 87 |
| 88 // Returns a RootWindowController that has a shelf for given | |
| 89 // |window|. This returns the RootWindowController for the |window|'s | |
| 90 // root window when multiple shelf mode is enabled, or the primary | |
| 91 // RootWindowController otherwise. | |
| 92 static RootWindowController* ForShelf(const aura::Window* window); | |
| 93 | |
| 94 // Returns a RootWindowController of the window's root window. | 88 // Returns a RootWindowController of the window's root window. |
| 95 static RootWindowController* ForWindow(const aura::Window* window); | 89 static RootWindowController* ForWindow(const aura::Window* window); |
| 96 | 90 |
| 97 // Returns the RootWindowController of the target root window. | 91 // Returns the RootWindowController of the target root window. |
| 98 static RootWindowController* ForTargetRootWindow(); | 92 static RootWindowController* ForTargetRootWindow(); |
| 99 | 93 |
| 100 // Returns container which contains a given |window|. | 94 // Returns container which contains a given |window|. |
| 101 static aura::Window* GetContainerForWindow(aura::Window* window); | 95 static aura::Window* GetContainerForWindow(aura::Window* window); |
| 102 | 96 |
| 103 ~RootWindowController() override; | 97 ~RootWindowController() override; |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 }; | 306 }; |
| 313 | 307 |
| 314 | 308 |
| 315 // Gets the RootWindowController for |root_window|. | 309 // Gets the RootWindowController for |root_window|. |
| 316 ASH_EXPORT RootWindowController* GetRootWindowController( | 310 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 317 const aura::Window* root_window); | 311 const aura::Window* root_window); |
| 318 | 312 |
| 319 } // namespace ash | 313 } // namespace ash |
| 320 | 314 |
| 321 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 315 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |