| 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  | 
|  11 namespace aura { |  11 namespace aura { | 
|  12 class Window; |  12 class Window; | 
|  13 } |  13 } | 
|  14  |  14  | 
|  15 namespace ash { |  15 namespace ash { | 
|  16  |  16  | 
|  17 class ASH_EXPORT ShellObserver { |  17 class ASH_EXPORT ShellObserver { | 
|  18  public: |  18  public: | 
 |  19   // Called when the AppList is shown or dismissed. | 
 |  20   virtual void OnAppListVisibilityChanged(bool shown, | 
 |  21                                           aura::Window* root_window) {} | 
 |  22  | 
|  19   // Called when a casting session is started or stopped. |  23   // Called when a casting session is started or stopped. | 
|  20   virtual void OnCastingSessionStartedOrStopped(bool started) {} |  24   virtual void OnCastingSessionStartedOrStopped(bool started) {} | 
|  21  |  25  | 
|  22   // Invoked after a non-primary root window is created. |  26   // Invoked after a non-primary root window is created. | 
|  23   virtual void OnRootWindowAdded(aura::Window* root_window) {} |  27   virtual void OnRootWindowAdded(aura::Window* root_window) {} | 
|  24  |  28  | 
|  25   // Invoked after the shelf has been created for |root_window|. |  29   // Invoked after the shelf has been created for |root_window|. | 
|  26   virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} |  30   virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} | 
|  27  |  31  | 
|  28   // Invoked when the shelf alignment in |root_window| is changed. |  32   // Invoked when the shelf alignment in |root_window| is changed. | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  72   // Called early on in ~Shell. |  76   // Called early on in ~Shell. | 
|  73   virtual void OnShellDestroying() {} |  77   virtual void OnShellDestroying() {} | 
|  74  |  78  | 
|  75  protected: |  79  protected: | 
|  76   virtual ~ShellObserver() {} |  80   virtual ~ShellObserver() {} | 
|  77 }; |  81 }; | 
|  78  |  82  | 
|  79 }  // namespace ash |  83 }  // namespace ash | 
|  80  |  84  | 
|  81 #endif  // ASH_SHELL_OBSERVER_H_ |  85 #endif  // ASH_SHELL_OBSERVER_H_ | 
| OLD | NEW |