| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BACKGROUND_ANIMATOR_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_BACKGROUND_ANIMATOR_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_BACKGROUND_ANIMATOR_H_ | 6 #define ASH_COMMON_SHELF_SHELF_BACKGROUND_ANIMATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // | 75 // |
| 76 // NOTE: If a second request to paint the same |background_type| using the | 76 // NOTE: If a second request to paint the same |background_type| using the |
| 77 // BACKGROUND_CHANGE_ANIMATE change type is received it will be ignored and | 77 // BACKGROUND_CHANGE_ANIMATE change type is received it will be ignored and |
| 78 // observers will NOT be notified. | 78 // observers will NOT be notified. |
| 79 void PaintBackground(ShelfBackgroundType background_type, | 79 void PaintBackground(ShelfBackgroundType background_type, |
| 80 AnimationChangeType change_type); | 80 AnimationChangeType change_type); |
| 81 | 81 |
| 82 // gfx::AnimationDelegate: | 82 // gfx::AnimationDelegate: |
| 83 void AnimationProgressed(const gfx::Animation* animation) override; | 83 void AnimationProgressed(const gfx::Animation* animation) override; |
| 84 void AnimationEnded(const gfx::Animation* animation) override; | 84 void AnimationEnded(const gfx::Animation* animation) override; |
| 85 void AnimationCanceled(const gfx::Animation* animation) override; | |
| 86 | 85 |
| 87 protected: | 86 protected: |
| 88 // WmShelfObserver: | 87 // WmShelfObserver: |
| 89 void OnBackgroundTypeChanged(ShelfBackgroundType background_type, | 88 void OnBackgroundTypeChanged(ShelfBackgroundType background_type, |
| 90 AnimationChangeType change_type) override; | 89 AnimationChangeType change_type) override; |
| 91 | 90 |
| 92 // WallpaperControllerObserver: | 91 // WallpaperControllerObserver: |
| 93 void OnWallpaperDataChanged() override; | 92 void OnWallpaperDataChanged() override; |
| 94 void OnWallpaperColorsChanged() override; | 93 void OnWallpaperColorsChanged() override; |
| 95 | 94 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 AnimationValues item_background_values_; | 177 AnimationValues item_background_values_; |
| 179 | 178 |
| 180 base::ObserverList<ShelfBackgroundAnimatorObserver> observers_; | 179 base::ObserverList<ShelfBackgroundAnimatorObserver> observers_; |
| 181 | 180 |
| 182 DISALLOW_COPY_AND_ASSIGN(ShelfBackgroundAnimator); | 181 DISALLOW_COPY_AND_ASSIGN(ShelfBackgroundAnimator); |
| 183 }; | 182 }; |
| 184 | 183 |
| 185 } // namespace ash | 184 } // namespace ash |
| 186 | 185 |
| 187 #endif // ASH_COMMON_SHELF_SHELF_BACKGROUND_ANIMATOR_H_ | 186 #endif // ASH_COMMON_SHELF_SHELF_BACKGROUND_ANIMATOR_H_ |
| OLD | NEW |