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

Unified Diff: ui/views/controls/glow_hover_controller.h

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 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
« no previous file with comments | « ui/views/controls/button/text_button.cc ('k') | ui/views/controls/glow_hover_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/glow_hover_controller.h
diff --git a/ui/views/controls/glow_hover_controller.h b/ui/views/controls/glow_hover_controller.h
index 7d8e62ce2bd17654d5f0e59eed3cc325ac1f0d7b..2ac423e42d5eb980e4c85679b1b79c88e81f9e80 100644
--- a/ui/views/controls/glow_hover_controller.h
+++ b/ui/views/controls/glow_hover_controller.h
@@ -5,8 +5,8 @@
#ifndef UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_
#define UI_VIEWS_CONTROLS_GLOW_HOVER_CONTROLLER_H_
-#include "ui/base/animation/animation_delegate.h"
-#include "ui/base/animation/slide_animation.h"
+#include "ui/gfx/animation/animation_delegate.h"
+#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/views_export.h"
namespace gfx {
@@ -27,7 +27,7 @@ class View;
// OnPaint() -> if ShouldDraw() returns true invoke Draw().
// Internally GlowHoverController uses an animation to animate the glow and
// invokes SchedulePaint() back on the View as necessary.
-class VIEWS_EXPORT GlowHoverController : public ui::AnimationDelegate {
+class VIEWS_EXPORT GlowHoverController : public gfx::AnimationDelegate {
public:
enum Style {
SUBTLE,
@@ -38,7 +38,7 @@ class VIEWS_EXPORT GlowHoverController : public ui::AnimationDelegate {
virtual ~GlowHoverController();
// Sets the AnimationContainer used by the animation.
- void SetAnimationContainer(ui::AnimationContainer* container);
+ void SetAnimationContainer(gfx::AnimationContainer* container);
// Sets the location of the hover, relative to the View passed to the
// constructor.
@@ -64,16 +64,16 @@ class VIEWS_EXPORT GlowHoverController : public ui::AnimationDelegate {
// |mask_image| is used to determine what parts of the canvas to draw on.
void Draw(gfx::Canvas* canvas, const gfx::ImageSkia& mask_image) const;
- // ui::AnimationDelegate overrides:
- virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
- virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
+ // gfx::AnimationDelegate overrides:
+ virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
+ virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
private:
// View we're drawing to.
views::View* view_;
// Opacity of the glow ramps up over time.
- ui::SlideAnimation animation_;
+ gfx::SlideAnimation animation_;
// Location of the glow, relative to view.
gfx::Point location_;
« no previous file with comments | « ui/views/controls/button/text_button.cc ('k') | ui/views/controls/glow_hover_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698