Chromium Code Reviews| 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 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/system/user/login_status.h" | 12 #include "ash/system/user/login_status.h" |
| 13 #include "ash/wm/cursor_delegate.h" | 13 #include "ash/wm/cursor_delegate.h" |
| 14 #include "ash/wm/cursor_manager.h" | 14 #include "ash/wm/cursor_manager.h" |
| 15 #include "ash/wm/shelf_types.h" | 15 #include "ash/wm/shelf_types.h" |
| 16 #include "ash/wm/system_modal_container_event_filter_delegate.h" | 16 #include "ash/wm/system_modal_container_event_filter_delegate.h" |
| 17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
| 20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
| 22 #include "ui/gfx/insets.h" | 22 #include "ui/gfx/insets.h" |
| 23 #include "ui/gfx/screen.h" | |
| 23 #include "ui/gfx/size.h" | 24 #include "ui/gfx/size.h" |
| 24 | 25 |
| 25 class CommandLine; | 26 class CommandLine; |
| 26 | 27 |
| 27 namespace aura { | 28 namespace aura { |
| 28 class EventFilter; | 29 class EventFilter; |
| 29 class FocusManager; | 30 class FocusManager; |
| 30 class RootWindow; | 31 class RootWindow; |
| 31 class Window; | 32 class Window; |
| 32 namespace client { | 33 namespace client { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 // Returns the primary RootWindow. The primary RootWindow is the one | 165 // Returns the primary RootWindow. The primary RootWindow is the one |
| 165 // that has a launcher. | 166 // that has a launcher. |
| 166 static aura::RootWindow* GetPrimaryRootWindow(); | 167 static aura::RootWindow* GetPrimaryRootWindow(); |
| 167 | 168 |
| 168 // Returns the active RootWindow. The active RootWindow is the one that | 169 // Returns the active RootWindow. The active RootWindow is the one that |
| 169 // contains the current active window as a decendant child. The active | 170 // contains the current active window as a decendant child. The active |
| 170 // RootWindow remains the same even when the active window becomes NULL, | 171 // RootWindow remains the same even when the active window becomes NULL, |
| 171 // until the another window who has a different root window becomes active. | 172 // until the another window who has a different root window becomes active. |
| 172 static aura::RootWindow* GetActiveRootWindow(); | 173 static aura::RootWindow* GetActiveRootWindow(); |
| 173 | 174 |
| 175 // Returns the global Screen object that's always active in ash. | |
| 176 static gfx::Screen* GetAshScreen(); | |
|
Ben Goodger (Google)
2012/10/10 22:52:10
imma be that guy that's gonna ask you to call this
scottmg
2012/10/11 00:22:28
imma be the guy crying in the refactoring corner.
| |
| 177 | |
| 174 // Returns all root windows. | 178 // Returns all root windows. |
| 175 static RootWindowList GetAllRootWindows(); | 179 static RootWindowList GetAllRootWindows(); |
| 176 | 180 |
| 177 static aura::Window* GetContainer(aura::RootWindow* root_window, | 181 static aura::Window* GetContainer(aura::RootWindow* root_window, |
| 178 int container_id); | 182 int container_id); |
| 179 static const aura::Window* GetContainer(const aura::RootWindow* root_window, | 183 static const aura::Window* GetContainer(const aura::RootWindow* root_window, |
| 180 int container_id); | 184 int container_id); |
| 181 | 185 |
| 182 // Returns the list of containers that match |container_id| in | 186 // Returns the list of containers that match |container_id| in |
| 183 // all root windows. | 187 // all root windows. |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 508 | 512 |
| 509 // Used by ash/shell. | 513 // Used by ash/shell. |
| 510 content::BrowserContext* browser_context_; | 514 content::BrowserContext* browser_context_; |
| 511 | 515 |
| 512 DISALLOW_COPY_AND_ASSIGN(Shell); | 516 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 513 }; | 517 }; |
| 514 | 518 |
| 515 } // namespace ash | 519 } // namespace ash |
| 516 | 520 |
| 517 #endif // ASH_SHELL_H_ | 521 #endif // ASH_SHELL_H_ |
| OLD | NEW |