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

Unified Diff: ash/wm/gestures/long_press_affordance_handler.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/wm/gestures/long_press_affordance_handler.h ('k') | ash/wm/maximize_bubble_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/long_press_affordance_handler.cc
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc
index 8b8468f0063275fc2082ac9ada44e29d1ec044d2..516f4c754136c9698ddaa5c80fc98bac293ac4ca 100644
--- a/ash/wm/gestures/long_press_affordance_handler.cc
+++ b/ash/wm/gestures/long_press_affordance_handler.cc
@@ -165,7 +165,7 @@ class LongPressAffordanceHandler::LongPressAffordanceView
virtual ~LongPressAffordanceView() {
}
- void UpdateWithGrowAnimation(ui::Animation* animation) {
+ void UpdateWithGrowAnimation(gfx::Animation* animation) {
// Update the portion of the circle filled so far and re-draw.
current_angle_ = animation->CurrentValueBetween(kAffordanceAngleStartValue,
kAffordanceAngleEndValue);
@@ -177,7 +177,7 @@ class LongPressAffordanceHandler::LongPressAffordanceView
SchedulePaint();
}
- void UpdateWithShrinkAnimation(ui::Animation* animation) {
+ void UpdateWithShrinkAnimation(gfx::Animation* animation) {
current_scale_ = animation->CurrentValueBetween(kAffordanceScaleEndValue,
kAffordanceShrinkScaleEndValue);
widget_->GetNativeView()->layer()->SetOpacity(
@@ -236,7 +236,7 @@ class LongPressAffordanceHandler::LongPressAffordanceView
// LongPressAffordanceHandler, public
LongPressAffordanceHandler::LongPressAffordanceHandler()
- : ui::LinearAnimation(kAffordanceFrameRateHz, this),
+ : gfx::LinearAnimation(kAffordanceFrameRateHz, this),
tap_down_touch_id_(-1),
tap_down_display_id_(0),
current_animation_type_(NONE) {}
@@ -351,7 +351,7 @@ bool LongPressAffordanceHandler::ShouldSendCanceledFromStop() {
}
void LongPressAffordanceHandler::AnimationEnded(
- const ui::Animation* animation) {
+ const gfx::Animation* animation) {
switch (current_animation_type_) {
case GROW_ANIMATION:
current_animation_type_ = SHRINK_ANIMATION;
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.h ('k') | ash/wm/maximize_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698