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

Unified Diff: chrome/browser/views/infobars/translate_infobars.cc

Issue 1961001: Refactors animation to allow for cleaner subclassing. I'm doing this (Closed)
Patch Set: Incorporated review feedback Created 10 years, 8 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 | « chrome/browser/views/infobars/infobars.cc ('k') | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/infobars/translate_infobars.cc
diff --git a/chrome/browser/views/infobars/translate_infobars.cc b/chrome/browser/views/infobars/translate_infobars.cc
index 3bebe906fc3c93055cc8f9214cfbf68d7f38fc4e..7cc9f114e5fa6a3a2124566845da78ade0148dba 100644
--- a/chrome/browser/views/infobars/translate_infobars.cc
+++ b/chrome/browser/views/infobars/translate_infobars.cc
@@ -261,7 +261,7 @@ TranslateInfoBar::TranslateInfoBar(TranslateInfoBarDelegate* delegate)
// Initialize slide animation for transitioning to and from error state.
error_animation_.reset(new SlideAnimation(this));
- error_animation_->SetTweenType(SlideAnimation::NONE);
+ error_animation_->SetTweenType(Tween::LINEAR);
error_animation_->SetSlideDuration(500);
// Initialize icon.
@@ -564,7 +564,7 @@ void TranslateInfoBar::Layout() {
void TranslateInfoBar::PaintBackground(gfx::Canvas* canvas) {
// If we're not animating, simply paint background for current state.
- if (!error_animation_->IsAnimating()) {
+ if (!error_animation_->is_animating()) {
GetBackground(state_)->Paint(canvas, this);
return;
}
« no previous file with comments | « chrome/browser/views/infobars/infobars.cc ('k') | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698