| 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_OBSERVER_H_ | 5 #ifndef ASH_SHELL_OBSERVER_H_ |
| 6 #define ASH_SHELL_OBSERVER_H_ | 6 #define ASH_SHELL_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/login_status.h" | 9 #include "ash/login_status.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Invoked when |pinned_window| enter or exit pinned mode. | 41 // Invoked when |pinned_window| enter or exit pinned mode. |
| 42 virtual void OnPinnedStateChanged(aura::Window* pinned_window) {} | 42 virtual void OnPinnedStateChanged(aura::Window* pinned_window) {} |
| 43 | 43 |
| 44 // Called when the overview mode is about to be started (before the windows | 44 // Called when the overview mode is about to be started (before the windows |
| 45 // get re-arranged). | 45 // get re-arranged). |
| 46 virtual void OnOverviewModeStarting() {} | 46 virtual void OnOverviewModeStarting() {} |
| 47 | 47 |
| 48 // Called after overview mode has ended. | 48 // Called after overview mode has ended. |
| 49 virtual void OnOverviewModeEnded() {} | 49 virtual void OnOverviewModeEnded() {} |
| 50 | 50 |
| 51 // Called when the split view mode is about to be started (before the window |
| 52 // gets snapped and activated). |
| 53 virtual void OnSplitViewModeStarting() {} |
| 54 |
| 55 // Called after split view mode has ended. |
| 56 virtual void OnSplitViewModeEnded() {} |
| 57 |
| 51 // Called when the always maximize mode has started. Windows might still | 58 // Called when the always maximize mode has started. Windows might still |
| 52 // animate though. | 59 // animate though. |
| 53 virtual void OnMaximizeModeStarted() {} | 60 virtual void OnMaximizeModeStarted() {} |
| 54 | 61 |
| 55 // Called when the maximize mode is about to end. | 62 // Called when the maximize mode is about to end. |
| 56 virtual void OnMaximizeModeEnding() {} | 63 virtual void OnMaximizeModeEnding() {} |
| 57 | 64 |
| 58 // Called when the maximize mode has ended. Windows may still be | 65 // Called when the maximize mode has ended. Windows may still be |
| 59 // animating but have been restored. | 66 // animating but have been restored. |
| 60 virtual void OnMaximizeModeEnded() {} | 67 virtual void OnMaximizeModeEnded() {} |
| 61 | 68 |
| 62 // Called when keyboard is activated/deactivated in |root_window|. | 69 // Called when keyboard is activated/deactivated in |root_window|. |
| 63 virtual void OnVirtualKeyboardStateChanged(bool activated, | 70 virtual void OnVirtualKeyboardStateChanged(bool activated, |
| 64 aura::Window* root_window) {} | 71 aura::Window* root_window) {} |
| 65 | 72 |
| 66 // Called when a new KeyboardController is created. | 73 // Called when a new KeyboardController is created. |
| 67 virtual void OnKeyboardControllerCreated() {} | 74 virtual void OnKeyboardControllerCreated() {} |
| 68 | 75 |
| 69 // Called at the end of Shell::Init. | 76 // Called at the end of Shell::Init. |
| 70 virtual void OnShellInitialized() {} | 77 virtual void OnShellInitialized() {} |
| 71 | 78 |
| 72 protected: | 79 protected: |
| 73 virtual ~ShellObserver() {} | 80 virtual ~ShellObserver() {} |
| 74 }; | 81 }; |
| 75 | 82 |
| 76 } // namespace ash | 83 } // namespace ash |
| 77 | 84 |
| 78 #endif // ASH_SHELL_OBSERVER_H_ | 85 #endif // ASH_SHELL_OBSERVER_H_ |
| OLD | NEW |