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

Unified Diff: ash/shelf/background_animator.h

Issue 98373006: Animating docked background in sync with shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Animating docked background in sync with shelf (rebase) Created 7 years 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/shelf/background_animator.h
diff --git a/ash/shelf/background_animator.h b/ash/shelf/background_animator.h
index 7436b30f1f0681eb59ffc7d3059483898230276f..805f7d5e5d2795b1b48767c17577a994d43d4281 100644
--- a/ash/shelf/background_animator.h
+++ b/ash/shelf/background_animator.h
@@ -11,6 +11,13 @@
#include "ui/gfx/animation/slide_animation.h"
namespace ash {
+
+// How the background can be changed.
+enum BackgroundAnimatorChangeType {
+ BACKGROUND_CHANGE_ANIMATE,
+ BACKGROUND_CHANGE_IMMEDIATE
+};
+
namespace internal {
// Delegate is notified any time the background changes.
@@ -25,12 +32,6 @@ class ASH_EXPORT BackgroundAnimatorDelegate {
// BackgroundAnimator is used by the shelf to animate the background (alpha).
class ASH_EXPORT BackgroundAnimator : public gfx::AnimationDelegate {
public:
- // How the background can be changed.
- enum ChangeType {
- CHANGE_ANIMATE,
- CHANGE_IMMEDIATE
- };
-
BackgroundAnimator(BackgroundAnimatorDelegate* delegate,
int min_alpha,
int max_alpha);
@@ -42,7 +43,7 @@ class ASH_EXPORT BackgroundAnimator : public gfx::AnimationDelegate {
// Sets whether a background is rendered. Initial value is false. If |type|
// is |CHANGE_IMMEDIATE| and an animation is not in progress this notifies
// the delegate immediately (synchronously from this method).
- void SetPaintsBackground(bool value, ChangeType type);
+ void SetPaintsBackground(bool value, BackgroundAnimatorChangeType type);
bool paints_background() const { return paints_background_; }
// Current alpha.
« no previous file with comments | « ash/resources/default_200_percent/common/launcher/launcher_corner.png ('k') | ash/shelf/background_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698