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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 // Gets the singleton RootWindow used by the Shell. | 123 // Gets the singleton RootWindow used by the Shell. |
| 124 static aura::RootWindow* GetRootWindow(); | 124 static aura::RootWindow* GetRootWindow(); |
| 125 | 125 |
| 126 internal::RootWindowLayoutManager* root_window_layout() const { | 126 internal::RootWindowLayoutManager* root_window_layout() const { |
| 127 return root_window_layout_; | 127 return root_window_layout_; |
| 128 } | 128 } |
| 129 | 129 |
| 130 aura::Window* GetContainer(int container_id); | 130 aura::Window* GetContainer(int container_id); |
| 131 const aura::Window* GetContainer(int container_id) const; | 131 const aura::Window* GetContainer(int container_id) const; |
| 132 | 132 |
| 133 // Close all ash windows, such as launcher, status area and background, | |
| 134 // and remove all event filters. | |
| 135 void Shutdown(); | |
| 136 | |
| 133 // Adds or removes |filter| from the RootWindowEventFilter. | 137 // Adds or removes |filter| from the RootWindowEventFilter. |
| 134 void AddRootWindowEventFilter(aura::EventFilter* filter); | 138 void AddRootWindowEventFilter(aura::EventFilter* filter); |
| 135 void RemoveRootWindowEventFilter(aura::EventFilter* filter); | 139 void RemoveRootWindowEventFilter(aura::EventFilter* filter); |
| 136 size_t GetRootWindowEventFilterCount() const; | 140 size_t GetRootWindowEventFilterCount() const; |
| 137 | 141 |
| 138 // Shows the background menu over |widget|. | 142 // Shows the background menu over |widget|. |
| 139 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); | 143 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); |
| 140 | 144 |
| 141 // Toggles app list. | 145 // Toggles app list. |
| 142 void ToggleAppList(); | 146 void ToggleAppList(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 336 // Owned by aura::RootWindow, cached here for type safety. | 340 // Owned by aura::RootWindow, cached here for type safety. |
| 337 internal::RootWindowLayoutManager* root_window_layout_; | 341 internal::RootWindowLayoutManager* root_window_layout_; |
| 338 | 342 |
| 339 // Status area with clock, Wi-Fi signal, etc. | 343 // Status area with clock, Wi-Fi signal, etc. |
| 340 views::Widget* status_widget_; | 344 views::Widget* status_widget_; |
| 341 | 345 |
| 342 // System tray with clock, Wi-Fi signal, etc. (a replacement in progress for | 346 // System tray with clock, Wi-Fi signal, etc. (a replacement in progress for |
| 343 // |status_widget_|). | 347 // |status_widget_|). |
| 344 scoped_ptr<SystemTray> tray_; | 348 scoped_ptr<SystemTray> tray_; |
| 345 | 349 |
| 350 // If the shell has been shutdown. | |
|
Ben Goodger (Google)
2012/04/10 22:35:02
shut down
| |
| 351 bool shutdown_; | |
| 352 | |
| 346 DISALLOW_COPY_AND_ASSIGN(Shell); | 353 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 347 }; | 354 }; |
| 348 | 355 |
| 349 } // namespace ash | 356 } // namespace ash |
| 350 | 357 |
| 351 #endif // ASH_SHELL_H_ | 358 #endif // ASH_SHELL_H_ |
| OLD | NEW |