OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ | 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ |
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ | 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/background_animator.h" |
9 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
10 | 11 |
11 namespace aura { | 12 namespace aura { |
12 class Window; | 13 class Window; |
13 } | 14 } |
14 | 15 |
15 namespace ash { | 16 namespace ash { |
16 | 17 |
17 class ASH_EXPORT ShelfLayoutManagerObserver { | 18 class ASH_EXPORT ShelfLayoutManagerObserver { |
18 public: | 19 public: |
19 virtual ~ShelfLayoutManagerObserver() {} | 20 virtual ~ShelfLayoutManagerObserver() {} |
20 | 21 |
21 // Called when the target ShelfLayoutManager will be deleted. | 22 // Called when the target ShelfLayoutManager will be deleted. |
22 virtual void WillDeleteShelf() {} | 23 virtual void WillDeleteShelf() {} |
23 | 24 |
24 // Called when the visibility change is scheduled. | 25 // Called when the visibility change is scheduled. |
25 virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {} | 26 virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {} |
26 | 27 |
27 // Called when the auto hide state is changed. | 28 // Called when the auto hide state is changed. |
28 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {} | 29 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {} |
29 | 30 |
30 // Called when the auto hide behavior is changed. | 31 // Called when the auto hide behavior is changed. |
31 virtual void OnAutoHideBehaviorChanged(aura::Window* root_window, | 32 virtual void OnAutoHideBehaviorChanged(aura::Window* root_window, |
32 ShelfAutoHideBehavior new_behavior) {} | 33 ShelfAutoHideBehavior new_behavior) {} |
| 34 |
| 35 // Called when shelf background animation is started. |
| 36 virtual void OnBackgroundUpdated( |
| 37 ShelfBackgroundType background_type, |
| 38 BackgroundAnimatorChangeType change_type) {} |
33 }; | 39 }; |
34 | 40 |
35 } // namespace ash | 41 } // namespace ash |
36 | 42 |
37 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ | 43 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ |
OLD | NEW |