Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Side by Side Diff: ash/common/shelf/shelf_background_animator.h

Issue 2768933003: [ash-md] Fixed ShelfBackgroundAnimator to not snap target values when being preempted. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/common/shelf/shelf_background_animator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/common/shelf/shelf_background_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698