| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Sets the work area insets of the display that contains |window|, | 262 // Sets the work area insets of the display that contains |window|, |
| 263 // this notifies observers too. | 263 // this notifies observers too. |
| 264 // TODO(sky): this no longer really replicates what happens and is unreliable. | 264 // TODO(sky): this no longer really replicates what happens and is unreliable. |
| 265 // Remove this. | 265 // Remove this. |
| 266 void SetDisplayWorkAreaInsets(aura::Window* window, | 266 void SetDisplayWorkAreaInsets(aura::Window* window, |
| 267 const gfx::Insets& insets); | 267 const gfx::Insets& insets); |
| 268 | 268 |
| 269 // Called when the user logs in. | 269 // Called when the user logs in. |
| 270 void OnLoginStateChanged(user::LoginStatus status); | 270 void OnLoginStateChanged(user::LoginStatus status); |
| 271 | 271 |
| 272 // Called after the logged-in user's profile is ready. | |
| 273 void OnLoginUserProfilePrepared(); | |
| 274 | |
| 275 // Called when the login status changes. | 272 // Called when the login status changes. |
| 276 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. | 273 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. |
| 277 void UpdateAfterLoginStatusChange(user::LoginStatus status); | 274 void UpdateAfterLoginStatusChange(user::LoginStatus status); |
| 278 | 275 |
| 279 // Called when the application is exiting. | 276 // Called when the application is exiting. |
| 280 void OnAppTerminating(); | 277 void OnAppTerminating(); |
| 281 | 278 |
| 282 // Called when the screen is locked (after the lock window is visible) or | 279 // Called when the screen is locked (after the lock window is visible) or |
| 283 // unlocked. | 280 // unlocked. |
| 284 void OnLockStateChanged(bool locked); | 281 void OnLockStateChanged(bool locked); |
| 285 | 282 |
| 286 // Initializes |launcher_|. Does nothing if it's already initialized. | 283 // Initializes |launcher_|. Does nothing if it's already initialized. |
| 287 void CreateLauncher(); | 284 void CreateLauncher(); |
| 288 | 285 |
| 289 // Creates virtual keyboard. Deletes the old virtual keyboard if it's already | |
| 290 // exist. | |
| 291 void CreateKeyboard(); | |
| 292 | |
| 293 // Show shelf view if it was created hidden (before session has started). | 286 // Show shelf view if it was created hidden (before session has started). |
| 294 void ShowLauncher(); | 287 void ShowLauncher(); |
| 295 | 288 |
| 296 // Adds/removes observer. | 289 // Adds/removes observer. |
| 297 void AddShellObserver(ShellObserver* observer); | 290 void AddShellObserver(ShellObserver* observer); |
| 298 void RemoveShellObserver(ShellObserver* observer); | 291 void RemoveShellObserver(ShellObserver* observer); |
| 299 | 292 |
| 300 keyboard::KeyboardController* keyboard_controller() { | 293 keyboard::KeyboardController* keyboard_controller() { |
| 301 return keyboard_controller_.get(); | 294 return keyboard_controller_.get(); |
| 302 } | 295 } |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 friend class shell::WindowWatcher; | 532 friend class shell::WindowWatcher; |
| 540 | 533 |
| 541 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; | 534 typedef std::pair<aura::Window*, gfx::Rect> WindowAndBoundsPair; |
| 542 | 535 |
| 543 // Takes ownership of |delegate|. | 536 // Takes ownership of |delegate|. |
| 544 explicit Shell(ShellDelegate* delegate); | 537 explicit Shell(ShellDelegate* delegate); |
| 545 virtual ~Shell(); | 538 virtual ~Shell(); |
| 546 | 539 |
| 547 void Init(); | 540 void Init(); |
| 548 | 541 |
| 549 // Initializes virtual keyboard controller. | 542 // Initializes virtual keyboard controller and attaches it to |root|. |
| 550 void InitKeyboard(); | 543 void InitKeyboard(internal::RootWindowController* root); |
| 551 | 544 |
| 552 // Initializes the root window so that it can host browser windows. | 545 // Initializes the root window so that it can host browser windows. |
| 553 void InitRootWindow(aura::Window* root_window); | 546 void InitRootWindow(aura::Window* root_window); |
| 554 | 547 |
| 555 // ash::internal::SystemModalContainerEventFilterDelegate overrides: | 548 // ash::internal::SystemModalContainerEventFilterDelegate overrides: |
| 556 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE; | 549 virtual bool CanWindowReceiveEvents(aura::Window* window) OVERRIDE; |
| 557 | 550 |
| 558 // Overridden from ui::EventTarget: | 551 // Overridden from ui::EventTarget: |
| 559 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE; | 552 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE; |
| 560 virtual EventTarget* GetParentTarget() OVERRIDE; | 553 virtual EventTarget* GetParentTarget() OVERRIDE; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 bool simulate_modal_window_open_for_testing_; | 686 bool simulate_modal_window_open_for_testing_; |
| 694 | 687 |
| 695 bool is_touch_hud_projection_enabled_; | 688 bool is_touch_hud_projection_enabled_; |
| 696 | 689 |
| 697 DISALLOW_COPY_AND_ASSIGN(Shell); | 690 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 698 }; | 691 }; |
| 699 | 692 |
| 700 } // namespace ash | 693 } // namespace ash |
| 701 | 694 |
| 702 #endif // ASH_SHELL_H_ | 695 #endif // ASH_SHELL_H_ |
| OLD | NEW |