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

Unified Diff: ash/system/tray/tray_item_view.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
« no previous file with comments | « ash/system/tray/tray_item_view.h ('k') | ash/system/user/tray_user_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_item_view.cc
diff --git a/ash/system/tray/tray_item_view.cc b/ash/system/tray/tray_item_view.cc
index f95ceb935708c20e5b509c1e88b2a47ea74a8f4f..da8051b77bce8cc6d0b7d2dd855d81729244b3fc 100644
--- a/ash/system/tray/tray_item_view.cc
+++ b/ash/system/tray/tray_item_view.cc
@@ -7,8 +7,8 @@
#include "ash/shelf/shelf_types.h"
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_item.h"
-#include "ui/base/animation/slide_animation.h"
#include "ui/compositor/layer.h"
+#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
@@ -60,9 +60,9 @@ void TrayItemView::SetVisible(bool set_visible) {
}
if (!animation_) {
- animation_.reset(new ui::SlideAnimation(this));
+ animation_.reset(new gfx::SlideAnimation(this));
animation_->SetSlideDuration(GetAnimationDurationMS());
- animation_->SetTweenType(ui::Tween::LINEAR);
+ animation_->SetTweenType(gfx::Tween::LINEAR);
animation_->Reset(visible() ? 1.0 : 0.0);
}
@@ -106,7 +106,7 @@ void TrayItemView::ChildPreferredSizeChanged(views::View* child) {
PreferredSizeChanged();
}
-void TrayItemView::AnimationProgressed(const ui::Animation* animation) {
+void TrayItemView::AnimationProgressed(const gfx::Animation* animation) {
gfx::Transform transform;
transform.Translate(0, animation->CurrentValueBetween(
static_cast<double>(height()) / 2, 0.));
@@ -116,12 +116,12 @@ void TrayItemView::AnimationProgressed(const ui::Animation* animation) {
PreferredSizeChanged();
}
-void TrayItemView::AnimationEnded(const ui::Animation* animation) {
+void TrayItemView::AnimationEnded(const gfx::Animation* animation) {
if (animation->GetCurrentValue() < 0.1)
views::View::SetVisible(false);
}
-void TrayItemView::AnimationCanceled(const ui::Animation* animation) {
+void TrayItemView::AnimationCanceled(const gfx::Animation* animation) {
AnimationEnded(animation);
}
« no previous file with comments | « ash/system/tray/tray_item_view.h ('k') | ash/system/user/tray_user_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698