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_COMMON_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ |
6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ | 6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/wm/background_animator.h" | 9 #include "ash/common/shelf/shelf_background_animator.h" |
10 #include "ash/public/cpp/shelf_types.h" | 10 #include "ash/public/cpp/shelf_types.h" |
| 11 #include "ui/gfx/animation/animation_change_type.h" |
11 | 12 |
12 namespace ash { | 13 namespace ash { |
13 | 14 |
14 class ASH_EXPORT ShelfLayoutManagerObserver { | 15 class ASH_EXPORT ShelfLayoutManagerObserver { |
15 public: | 16 public: |
16 virtual ~ShelfLayoutManagerObserver() {} | 17 virtual ~ShelfLayoutManagerObserver() {} |
17 | 18 |
18 // Called when the target ShelfLayoutManager will be deleted. | 19 // Called when the target ShelfLayoutManager will be deleted. |
19 virtual void WillDeleteShelfLayoutManager() {} | 20 virtual void WillDeleteShelfLayoutManager() {} |
20 | 21 |
21 // Called when the visibility change is scheduled. | 22 // Called when the visibility change is scheduled. |
22 virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {} | 23 virtual void WillChangeVisibilityState(ShelfVisibilityState new_state) {} |
23 | 24 |
24 // Called when the auto hide state is changed. | 25 // Called when the auto hide state is changed. |
25 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {} | 26 virtual void OnAutoHideStateChanged(ShelfAutoHideState new_state) {} |
26 | 27 |
27 // Called when shelf background animation is started. | 28 // Called when shelf background animation is started. |
28 virtual void OnBackgroundUpdated(ShelfBackgroundType background_type, | 29 virtual void OnBackgroundUpdated(ShelfBackgroundType background_type, |
29 BackgroundAnimatorChangeType change_type) {} | 30 gfx::AnimationChangeType change_type) {} |
30 }; | 31 }; |
31 | 32 |
32 } // namespace ash | 33 } // namespace ash |
33 | 34 |
34 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ | 35 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_OBSERVER_H_ |
OLD | NEW |