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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // has a launcher. | 202 // has a launcher. |
203 static aura::Window* GetPrimaryRootWindow(); | 203 static aura::Window* GetPrimaryRootWindow(); |
204 | 204 |
205 // Returns a root Window when used as a target when creating a new window. | 205 // Returns a root Window when used as a target when creating a new window. |
206 // The root window of the active window is used in most cases, but can | 206 // The root window of the active window is used in most cases, but can |
207 // be overridden by using ScopedTargetRootWindow(). | 207 // be overridden by using ScopedTargetRootWindow(). |
208 // If you want to get the root Window of the active window, just use | 208 // If you want to get the root Window of the active window, just use |
209 // |wm::GetActiveWindow()->GetRootWindow()|. | 209 // |wm::GetActiveWindow()->GetRootWindow()|. |
210 static aura::Window* GetTargetRootWindow(); | 210 static aura::Window* GetTargetRootWindow(); |
211 | 211 |
212 // Returns the global Screen object that's always active in ash. | |
213 static gfx::Screen* GetScreen(); | |
214 | |
215 // Returns all root windows. | 212 // Returns all root windows. |
216 static aura::Window::Windows GetAllRootWindows(); | 213 static aura::Window::Windows GetAllRootWindows(); |
217 | 214 |
218 static aura::Window* GetContainer(aura::Window* root_window, | 215 static aura::Window* GetContainer(aura::Window* root_window, |
219 int container_id); | 216 int container_id); |
220 static const aura::Window* GetContainer(const aura::Window* root_window, | 217 static const aura::Window* GetContainer(const aura::Window* root_window, |
221 int container_id); | 218 int container_id); |
222 | 219 |
223 // Returns the list of containers that match |container_id| in | 220 // Returns the list of containers that match |container_id| in |
224 // all root windows. If |priority_root| is given, the container | 221 // all root windows. If |priority_root| is given, the container |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 scoped_ptr<GPUSupport> gpu_support_; | 762 scoped_ptr<GPUSupport> gpu_support_; |
766 | 763 |
767 base::SequencedWorkerPool* blocking_pool_; | 764 base::SequencedWorkerPool* blocking_pool_; |
768 | 765 |
769 DISALLOW_COPY_AND_ASSIGN(Shell); | 766 DISALLOW_COPY_AND_ASSIGN(Shell); |
770 }; | 767 }; |
771 | 768 |
772 } // namespace ash | 769 } // namespace ash |
773 | 770 |
774 #endif // ASH_SHELL_H_ | 771 #endif // ASH_SHELL_H_ |
OLD | NEW |