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_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 // Creates the shelf for this root window and notifies observers. | 188 // Creates the shelf for this root window and notifies observers. |
189 void CreateShelf(); | 189 void CreateShelf(); |
190 | 190 |
191 // Returns the shelf controller for this root window. | 191 // Returns the shelf controller for this root window. |
192 // TODO(jamescook): Remove this and use WmRootWindowController::GetShelf(). | 192 // TODO(jamescook): Remove this and use WmRootWindowController::GetShelf(). |
193 Shelf* GetShelf() const; | 193 Shelf* GetShelf() const; |
194 | 194 |
195 // Called when the login status changes after login (such as lock/unlock). | 195 // Called when the login status changes after login (such as lock/unlock). |
196 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. | 196 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. |
197 void UpdateAfterLoginStatusChange(user::LoginStatus status); | 197 void UpdateAfterLoginStatusChange(LoginStatus status); |
198 | 198 |
199 // Called when the brightness/grayscale animation from white to the login | 199 // Called when the brightness/grayscale animation from white to the login |
200 // desktop background image has started. Starts |boot_splash_screen_|'s | 200 // desktop background image has started. Starts |boot_splash_screen_|'s |
201 // hiding animation (if the screen is non-NULL). | 201 // hiding animation (if the screen is non-NULL). |
202 void HandleInitialDesktopBackgroundAnimationStarted(); | 202 void HandleInitialDesktopBackgroundAnimationStarted(); |
203 | 203 |
204 // Called when the wallpaper ainmation is finished. Updates |background_| | 204 // Called when the wallpaper ainmation is finished. Updates |background_| |
205 // to be black and drops |boot_splash_screen_| and moves the wallpaper | 205 // to be black and drops |boot_splash_screen_| and moves the wallpaper |
206 // controller into the root window controller. |widget| holds the wallpaper | 206 // controller into the root window controller. |widget| holds the wallpaper |
207 // image, or NULL if the background is a solid color. | 207 // image, or NULL if the background is a solid color. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 // Enables projection touch HUD. | 263 // Enables projection touch HUD. |
264 void EnableTouchHudProjection(); | 264 void EnableTouchHudProjection(); |
265 | 265 |
266 // Disables projection touch HUD. | 266 // Disables projection touch HUD. |
267 void DisableTouchHudProjection(); | 267 void DisableTouchHudProjection(); |
268 | 268 |
269 // Callback for MenuModelAdapter. | 269 // Callback for MenuModelAdapter. |
270 void OnMenuClosed(); | 270 void OnMenuClosed(); |
271 | 271 |
272 // Overridden from ShellObserver. | 272 // Overridden from ShellObserver. |
273 void OnLoginStateChanged(user::LoginStatus status) override; | 273 void OnLoginStateChanged(LoginStatus status) override; |
274 void OnTouchHudProjectionToggled(bool enabled) override; | 274 void OnTouchHudProjectionToggled(bool enabled) override; |
275 | 275 |
276 std::unique_ptr<AshWindowTreeHost> ash_host_; | 276 std::unique_ptr<AshWindowTreeHost> ash_host_; |
277 | 277 |
278 std::unique_ptr<RootWindowControllerCommon> root_window_controller_common_; | 278 std::unique_ptr<RootWindowControllerCommon> root_window_controller_common_; |
279 | 279 |
280 std::unique_ptr<StackingController> stacking_controller_; | 280 std::unique_ptr<StackingController> stacking_controller_; |
281 | 281 |
282 // The shelf controller for this root window. Exists for the entire lifetime | 282 // The shelf controller for this root window. Exists for the entire lifetime |
283 // of the RootWindowController so that it is safe for observers to be added | 283 // of the RootWindowController so that it is safe for observers to be added |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 // On classic ash, returns the RootWindowController for the given |root_window|. | 335 // On classic ash, returns the RootWindowController for the given |root_window|. |
336 // On mus ash, returns the RootWindowController for the primary display. | 336 // On mus ash, returns the RootWindowController for the primary display. |
337 // See RootWindowController class comment above. | 337 // See RootWindowController class comment above. |
338 ASH_EXPORT RootWindowController* GetRootWindowController( | 338 ASH_EXPORT RootWindowController* GetRootWindowController( |
339 const aura::Window* root_window); | 339 const aura::Window* root_window); |
340 | 340 |
341 } // namespace ash | 341 } // namespace ash |
342 | 342 |
343 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 343 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |