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

Unified Diff: chrome/browser/ui/toolbar/wrench_icon_painter.cc

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
Index: chrome/browser/ui/toolbar/wrench_icon_painter.cc
diff --git a/chrome/browser/ui/toolbar/wrench_icon_painter.cc b/chrome/browser/ui/toolbar/wrench_icon_painter.cc
index 2d243d628ac85c4f8c48beff1b744dc243cdee42..34f32b5730b8f477dc519124686347c09b733647 100644
--- a/chrome/browser/ui/toolbar/wrench_icon_painter.cc
+++ b/chrome/browser/ui/toolbar/wrench_icon_painter.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/ui/toolbar/wrench_icon_painter.h"
#include "grit/theme_resources.h"
-#include "ui/base/animation/multi_animation.h"
#include "ui/base/theme_provider.h"
+#include "ui/gfx/animation/multi_animation.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/rect.h"
@@ -88,16 +88,16 @@ void WrenchIconPainter::SetSeverity(Severity severity, bool animate) {
if (severity_ == SEVERITY_NONE || !animate)
return;
- ui::MultiAnimation::Parts parts;
+ gfx::MultiAnimation::Parts parts;
// Animate the bars left to right.
- parts.push_back(ui::MultiAnimation::Part(1300, ui::Tween::LINEAR));
+ parts.push_back(gfx::MultiAnimation::Part(1300, gfx::Tween::LINEAR));
// Fade out animation.
- parts.push_back(ui::MultiAnimation::Part(1000, ui::Tween::EASE_IN));
+ parts.push_back(gfx::MultiAnimation::Part(1000, gfx::Tween::EASE_IN));
// Again, animate the bars left to right.
- parts.push_back(ui::MultiAnimation::Part(1300, ui::Tween::LINEAR));
+ parts.push_back(gfx::MultiAnimation::Part(1300, gfx::Tween::LINEAR));
animation_.reset(
- new ui::MultiAnimation(parts, base::TimeDelta::FromMilliseconds(40)));
+ new gfx::MultiAnimation(parts, base::TimeDelta::FromMilliseconds(40)));
animation_->set_delegate(this);
animation_->set_continuous(false);
animation_->Start();
@@ -167,7 +167,7 @@ void WrenchIconPainter::Paint(gfx::Canvas* canvas,
canvas->DrawImageInt(badge_, 0, 0);
}
-void WrenchIconPainter::AnimationProgressed(const ui::Animation* animation) {
+void WrenchIconPainter::AnimationProgressed(const gfx::Animation* animation) {
delegate_->ScheduleWrenchIconPaint();
}
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_icon_painter.h ('k') | chrome/browser/ui/toolbar/wrench_icon_painter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698