| 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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
| 6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Returns the primary RootWindow. The primary RootWindow is the one | 160 // Returns the primary RootWindow. The primary RootWindow is the one |
| 161 // that has a launcher. | 161 // that has a launcher. |
| 162 static aura::RootWindow* GetPrimaryRootWindow(); | 162 static aura::RootWindow* GetPrimaryRootWindow(); |
| 163 | 163 |
| 164 // Returns the active RootWindow. The active RootWindow is the one that | 164 // Returns the active RootWindow. The active RootWindow is the one that |
| 165 // contains the current active window as a decendant child. The active | 165 // contains the current active window as a decendant child. The active |
| 166 // RootWindow remains the same even when the active window becomes NULL, | 166 // RootWindow remains the same even when the active window becomes NULL, |
| 167 // until the another window who has a different root window becomes active. | 167 // until the another window who has a different root window becomes active. |
| 168 static aura::RootWindow* GetActiveRootWindow(); | 168 static aura::RootWindow* GetActiveRootWindow(); |
| 169 | 169 |
| 170 // Returns the active RootWindow as a NativeView. |
| 171 static gfx::NativeView GetRootNativeView(); |
| 172 |
| 170 // Returns all root windows. | 173 // Returns all root windows. |
| 171 static RootWindowList GetAllRootWindows(); | 174 static RootWindowList GetAllRootWindows(); |
| 172 | 175 |
| 173 static aura::Window* GetContainer(aura::RootWindow* root_window, | 176 static aura::Window* GetContainer(aura::RootWindow* root_window, |
| 174 int container_id); | 177 int container_id); |
| 175 | 178 |
| 176 // Returns the list of containers that match |container_id| in | 179 // Returns the list of containers that match |container_id| in |
| 177 // all root windows. | 180 // all root windows. |
| 178 static std::vector<aura::Window*> GetAllContainers(int container_id); | 181 static std::vector<aura::Window*> GetAllContainers(int container_id); |
| 179 | 182 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 491 |
| 489 // Used by ash/shell. | 492 // Used by ash/shell. |
| 490 content::BrowserContext* browser_context_; | 493 content::BrowserContext* browser_context_; |
| 491 | 494 |
| 492 DISALLOW_COPY_AND_ASSIGN(Shell); | 495 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 493 }; | 496 }; |
| 494 | 497 |
| 495 } // namespace ash | 498 } // namespace ash |
| 496 | 499 |
| 497 #endif // ASH_SHELL_H_ | 500 #endif // ASH_SHELL_H_ |
| OLD | NEW |