Index: chrome/browser/ui/cocoa/hover_close_button.mm |
diff --git a/chrome/browser/ui/cocoa/hover_close_button.mm b/chrome/browser/ui/cocoa/hover_close_button.mm |
index f666c9b2808bd4a90c16c6e706ab0f16ad32a02e..a45272c1ad17f73ffc7b9bed6cd4e520d525d965 100644 |
--- a/chrome/browser/ui/cocoa/hover_close_button.mm |
+++ b/chrome/browser/ui/cocoa/hover_close_button.mm |
@@ -21,7 +21,7 @@ const CGFloat kCircleHoverWhite = 0.565; |
const CGFloat kCircleClickWhite = 0.396; |
const CGFloat kXShadowAlpha = 0.75; |
const CGFloat kXShadowCircleAlpha = 0.1; |
-const CGFloat kDefaultAnimationDuration = 0.25; |
+const CGFloat kCloseAnimationDuration = 0.1; |
// Images that are used for all close buttons. Set up in +initialize. |
NSImage* gHoverNoneImage = nil; |
@@ -192,7 +192,7 @@ NSString* const kFadeOutValueKeyPath = @"fadeOutValue"; |
fadeOutAnimation_ = |
[[GTMKeyValueAnimation alloc] initWithTarget:self |
keyPath:kFadeOutValueKeyPath]; |
- [fadeOutAnimation_ setDuration:kDefaultAnimationDuration]; |
+ [fadeOutAnimation_ setDuration:kCloseAnimationDuration]; |
[fadeOutAnimation_ setFrameRate:kFramesPerSecond]; |
[fadeOutAnimation_ setDelegate:self]; |
[fadeOutAnimation_ startAnimation]; |