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

Unified Diff: chrome/browser/ui/search/toolbar_search_animator.cc

Issue 11274063: Make MultiAnimation take time param and slow down tab highlight (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bad var name Created 8 years, 2 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/launcher/tabbed_launcher_button.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/toolbar_search_animator.cc
diff --git a/chrome/browser/ui/search/toolbar_search_animator.cc b/chrome/browser/ui/search/toolbar_search_animator.cc
index b33bb1437b6aa7cb9af38b6407114668a5873580..b534bed0b5963111dc5be7aa5ac8ecf71273dde1 100644
--- a/chrome/browser/ui/search/toolbar_search_animator.cc
+++ b/chrome/browser/ui/search/toolbar_search_animator.cc
@@ -136,7 +136,9 @@ void ToolbarSearchAnimator::InitBackgroundAnimation() {
parts.push_back(ui::MultiAnimation::Part(
background_change_duration_ms_ * InstantUI::GetSlowAnimationScaleFactor(),
ui::Tween::LINEAR));
- background_animation_.reset(new ui::MultiAnimation(parts));
+ background_animation_.reset(new ui::MultiAnimation(
+ parts,
+ ui::MultiAnimation::GetDefaultTimerInterval()));
background_animation_->set_continuous(false);
background_animation_->set_delegate(this);
}
« no previous file with comments | « ash/launcher/tabbed_launcher_button.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698