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