| 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 <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Returns true if the ash shell has been instantiated. | 156 // Returns true if the ash shell has been instantiated. |
| 157 static bool HasInstance(); | 157 static bool HasInstance(); |
| 158 | 158 |
| 159 static void DeleteInstance(); | 159 static void DeleteInstance(); |
| 160 | 160 |
| 161 // Returns the root window controller for the primary root window. | 161 // Returns the root window controller for the primary root window. |
| 162 // TODO(oshima): move this to |RootWindowController| | 162 // TODO(oshima): move this to |RootWindowController| |
| 163 static RootWindowController* GetPrimaryRootWindowController(); | 163 static RootWindowController* GetPrimaryRootWindowController(); |
| 164 | 164 |
| 165 // Returns the RootWindowController for the given display id. If there |
| 166 // is no display for |display_id|, null is returned. |
| 167 static RootWindowController* GetRootWindowControllerWithDisplayId( |
| 168 int64_t display_id); |
| 169 |
| 165 // Returns all root window controllers. | 170 // Returns all root window controllers. |
| 166 // TODO(oshima): move this to |RootWindowController| | 171 // TODO(oshima): move this to |RootWindowController| |
| 167 static RootWindowControllerList GetAllRootWindowControllers(); | 172 static RootWindowControllerList GetAllRootWindowControllers(); |
| 168 | 173 |
| 169 // Returns the primary root Window. The primary root Window is the one that | 174 // Returns the primary root Window. The primary root Window is the one that |
| 170 // has a launcher. | 175 // has a launcher. |
| 171 static aura::Window* GetPrimaryRootWindow(); | 176 static aura::Window* GetPrimaryRootWindow(); |
| 172 | 177 |
| 173 // Returns a root Window when used as a target when creating a new window. | 178 // Returns a root Window when used as a target when creating a new window. |
| 174 // The root window of the active window is used in most cases, but can | 179 // The root window of the active window is used in most cases, but can |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_; | 570 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_; |
| 566 | 571 |
| 567 std::unique_ptr<AppListDelegateImpl> app_list_delegate_impl_; | 572 std::unique_ptr<AppListDelegateImpl> app_list_delegate_impl_; |
| 568 | 573 |
| 569 DISALLOW_COPY_AND_ASSIGN(Shell); | 574 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 570 }; | 575 }; |
| 571 | 576 |
| 572 } // namespace ash | 577 } // namespace ash |
| 573 | 578 |
| 574 #endif // ASH_SHELL_H_ | 579 #endif // ASH_SHELL_H_ |
| OLD | NEW |