| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // Sets the work area insets of the display that contains |window|, | 263 // Sets the work area insets of the display that contains |window|, |
| 264 // this notifies observers too. | 264 // this notifies observers too. |
| 265 // TODO(sky): this no longer really replicates what happens and is unreliable. | 265 // TODO(sky): this no longer really replicates what happens and is unreliable. |
| 266 // Remove this. | 266 // Remove this. |
| 267 void SetDisplayWorkAreaInsets(aura::Window* window, | 267 void SetDisplayWorkAreaInsets(aura::Window* window, |
| 268 const gfx::Insets& insets); | 268 const gfx::Insets& insets); |
| 269 | 269 |
| 270 // Called when the user logs in. | 270 // Called when the user logs in. |
| 271 void OnLoginStateChanged(user::LoginStatus status); | 271 void OnLoginStateChanged(user::LoginStatus status); |
| 272 | 272 |
| 273 // Called after the logged-in user's profile is ready. |
| 274 void OnLoginUserProfilePrepared(); |
| 275 |
| 273 // Called when the login status changes. | 276 // Called when the login status changes. |
| 274 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. | 277 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. |
| 275 void UpdateAfterLoginStatusChange(user::LoginStatus status); | 278 void UpdateAfterLoginStatusChange(user::LoginStatus status); |
| 276 | 279 |
| 277 // Called when the application is exiting. | 280 // Called when the application is exiting. |
| 278 void OnAppTerminating(); | 281 void OnAppTerminating(); |
| 279 | 282 |
| 280 // Called when the screen is locked (after the lock window is visible) or | 283 // Called when the screen is locked (after the lock window is visible) or |
| 281 // unlocked. | 284 // unlocked. |
| 282 void OnLockStateChanged(bool locked); | 285 void OnLockStateChanged(bool locked); |
| 283 | 286 |
| 284 // Initializes |launcher_|. Does nothing if it's already initialized. | 287 // Initializes |launcher_|. Does nothing if it's already initialized. |
| 285 void CreateLauncher(); | 288 void CreateLauncher(); |
| 286 | 289 |
| 290 // Creates virtual keyboard. Deletes the old virtual keyboard if it's already |
| 291 // exist. |
| 292 void CreateKeyboard(); |
| 293 |
| 287 // Show shelf view if it was created hidden (before session has started). | 294 // Show shelf view if it was created hidden (before session has started). |
| 288 void ShowLauncher(); | 295 void ShowLauncher(); |
| 289 | 296 |
| 290 // Adds/removes observer. | 297 // Adds/removes observer. |
| 291 void AddShellObserver(ShellObserver* observer); | 298 void AddShellObserver(ShellObserver* observer); |
| 292 void RemoveShellObserver(ShellObserver* observer); | 299 void RemoveShellObserver(ShellObserver* observer); |
| 293 | 300 |
| 294 keyboard::KeyboardController* keyboard_controller() { | 301 keyboard::KeyboardController* keyboard_controller() { |
| 295 return keyboard_controller_.get(); | 302 return keyboard_controller_.get(); |
| 296 } | 303 } |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 bool simulate_modal_window_open_for_testing_; | 692 bool simulate_modal_window_open_for_testing_; |
| 686 | 693 |
| 687 bool is_touch_hud_projection_enabled_; | 694 bool is_touch_hud_projection_enabled_; |
| 688 | 695 |
| 689 DISALLOW_COPY_AND_ASSIGN(Shell); | 696 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 690 }; | 697 }; |
| 691 | 698 |
| 692 } // namespace ash | 699 } // namespace ash |
| 693 | 700 |
| 694 #endif // ASH_SHELL_H_ | 701 #endif // ASH_SHELL_H_ |
| OLD | NEW |