diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-15 17:29:30 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-15 17:29:30 +0000 |
commit | ffb15d1eb8fc4180b30b43865fc44427f29cd578 (patch) | |
tree | ea89569dc78f3a5a103dfb7eef8a4b5bc8879268 /ash/launcher | |
parent | 70cdf8d473698e4f9203dde64bfa9147dc4d70e7 (diff) | |
download | chromium_src-ffb15d1eb8fc4180b30b43865fc44427f29cd578.zip chromium_src-ffb15d1eb8fc4180b30b43865fc44427f29cd578.tar.gz chromium_src-ffb15d1eb8fc4180b30b43865fc44427f29cd578.tar.bz2 |
ui/base/animation -> ui/gfx/animation
I also made GFX_EXPORT real, which is ok since it's the same as
UI_EXPORT. It'll only matter when we separate out at gyp level.
BUG=none
TEST=none
R=ben@chromium.org
Review URL: https://codereview.chromium.org/23531053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher')
-rw-r--r-- | ash/launcher/launcher_button.cc | 18 | ||||
-rw-r--r-- | ash/launcher/launcher_view.cc | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc index 2ce96eb..6b9dedd 100644 --- a/ash/launcher/launcher_button.cc +++ b/ash/launcher/launcher_button.cc @@ -12,12 +12,12 @@ #include "grit/ash_resources.h" #include "skia/ext/image_operations.h" #include "ui/base/accessibility/accessible_view_state.h" -#include "ui/base/animation/animation_delegate.h" -#include "ui/base/animation/throb_animation.h" #include "ui/base/events/event_constants.h" #include "ui/base/resource/resource_bundle.h" #include "ui/compositor/layer.h" #include "ui/compositor/scoped_layer_animation_settings.h" +#include "ui/gfx/animation/animation_delegate.h" +#include "ui/gfx/animation/throb_animation.h" #include "ui/gfx/canvas.h" #include "ui/gfx/image/image.h" #include "ui/gfx/image/image_skia_operations.h" @@ -46,7 +46,7 @@ bool ShouldHop(int state) { // Simple AnimationDelegate that owns a single ThrobAnimation instance to // keep all Draw Attention animations in sync. -class LauncherButtonAnimation : public ui::AnimationDelegate { +class LauncherButtonAnimation : public gfx::AnimationDelegate { public: class Observer { public: @@ -83,13 +83,13 @@ class LauncherButtonAnimation : public ui::AnimationDelegate { LauncherButtonAnimation() : animation_(this) { animation_.SetThrobDuration(kAttentionThrobDurationMS); - animation_.SetTweenType(ui::Tween::SMOOTH_IN_OUT); + animation_.SetTweenType(gfx::Tween::SMOOTH_IN_OUT); } virtual ~LauncherButtonAnimation() { } - ui::ThrobAnimation& GetThrobAnimation() { + gfx::ThrobAnimation& GetThrobAnimation() { if (!animation_.is_animating()) { animation_.Reset(); animation_.StartThrobbing(-1 /*throb indefinitely*/); @@ -97,8 +97,8 @@ class LauncherButtonAnimation : public ui::AnimationDelegate { return animation_; } - // ui::AnimationDelegate - virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE { + // gfx::AnimationDelegate + virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE { if (animation != &animation_) return; if (!animation_.is_animating()) @@ -106,7 +106,7 @@ class LauncherButtonAnimation : public ui::AnimationDelegate { FOR_EACH_OBSERVER(Observer, observers_, AnimationProgressed()); } - ui::ThrobAnimation animation_; + gfx::ThrobAnimation animation_; ObserverList<Observer> observers_; DISALLOW_COPY_AND_ASSIGN(LauncherButtonAnimation); @@ -319,7 +319,7 @@ void LauncherButton::ClearState(State state) { (!ShouldHop(state) || ShouldHop(state_))) { ui::ScopedLayerAnimationSettings scoped_setter( icon_view_->layer()->GetAnimator()); - scoped_setter.SetTweenType(ui::Tween::LINEAR); + scoped_setter.SetTweenType(gfx::Tween::LINEAR); scoped_setter.SetTransitionDuration( base::TimeDelta::FromMilliseconds(kHopDownMS)); } diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc index 57bcf26..d390d14 100644 --- a/ash/launcher/launcher_view.cc +++ b/ash/launcher/launcher_view.cc @@ -52,7 +52,7 @@ #include "ui/views/view_model_utils.h" #include "ui/views/widget/widget.h" -using ui::Animation; +using gfx::Animation; using views::View; namespace ash { |