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

Unified Diff: ash/common/wm/background_animator.h

Issue 2053113002: Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/wm/background_animator.h
diff --git a/ash/common/wm/background_animator.h b/ash/common/wm/background_animator.h
index 83a1f8c43df55a49f6156ce22c011566cc14c5e9..341ee23747ce97981c8d44e9d502cd2f63489b6e 100644
--- a/ash/common/wm/background_animator.h
+++ b/ash/common/wm/background_animator.h
@@ -18,10 +18,14 @@ enum BackgroundAnimatorChangeType {
BACKGROUND_CHANGE_IMMEDIATE
};
+class BackgroundAnimator;
+
// Delegate is notified any time the background changes.
class ASH_EXPORT BackgroundAnimatorDelegate {
public:
- virtual void UpdateBackground(int alpha) = 0;
+ virtual void UpdateBackground(BackgroundAnimator* animator, int alpha) = 0;
+
+ virtual void BackgroundAnimationEnded(bool successfully) {}
James Cook 2016/06/09 23:40:37 nit: It feels a little weird that the other functi
bruthig 2016/06/14 16:40:44 Done. Agreed, this was a short cut to get it up fo
protected:
virtual ~BackgroundAnimatorDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698