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