| 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  |  | 
|  23   // Called when a casting session is started or stopped. |  19   // Called when a casting session is started or stopped. | 
|  24   virtual void OnCastingSessionStartedOrStopped(bool started) {} |  20   virtual void OnCastingSessionStartedOrStopped(bool started) {} | 
|  25  |  21  | 
|  26   // Invoked after a non-primary root window is created. |  22   // Invoked after a non-primary root window is created. | 
|  27   virtual void OnRootWindowAdded(aura::Window* root_window) {} |  23   virtual void OnRootWindowAdded(aura::Window* root_window) {} | 
|  28  |  24  | 
|  29   // Invoked after the shelf has been created for |root_window|. |  25   // Invoked after the shelf has been created for |root_window|. | 
|  30   virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} |  26   virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {} | 
|  31  |  27  | 
|  32   // Invoked when the shelf alignment in |root_window| is changed. |  28   // Invoked when the shelf alignment in |root_window| is changed. | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  73   // Called at the end of Shell::Init. |  69   // Called at the end of Shell::Init. | 
|  74   virtual void OnShellInitialized() {} |  70   virtual void OnShellInitialized() {} | 
|  75  |  71  | 
|  76  protected: |  72  protected: | 
|  77   virtual ~ShellObserver() {} |  73   virtual ~ShellObserver() {} | 
|  78 }; |  74 }; | 
|  79  |  75  | 
|  80 }  // namespace ash |  76 }  // namespace ash | 
|  81  |  77  | 
|  82 #endif  // ASH_SHELL_OBSERVER_H_ |  78 #endif  // ASH_SHELL_OBSERVER_H_ | 
| OLD | NEW |