diff options
Diffstat (limited to 'chrome/browser/cocoa/tab_strip_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_strip_controller.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/tab_strip_controller.mm b/chrome/browser/cocoa/tab_strip_controller.mm index dcc25ea..72f3324 100644 --- a/chrome/browser/cocoa/tab_strip_controller.mm +++ b/chrome/browser/cocoa/tab_strip_controller.mm @@ -36,6 +36,7 @@ #include "grit/generated_resources.h" #include "grit/theme_resources.h" #include "skia/ext/skia_utils_mac.h" +#import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" NSString* const kTabStripNumberOfTabsChanged = @"kTabStripNumberOfTabsChanged"; @@ -546,7 +547,7 @@ static const NSTimeInterval kAnimationDuration = 0.2; NSRect enclosingRect = NSZeroRect; [NSAnimationContext beginGrouping]; - [[NSAnimationContext currentContext] setDuration:kAnimationDuration]; + [[NSAnimationContext currentContext] gtm_setDuration:kAnimationDuration]; // Update the current subviews and their z-order if requested. if (doUpdate) @@ -912,7 +913,7 @@ static const NSTimeInterval kAnimationDuration = 0.2; NSRect newFrame = [tabView frame]; newFrame = NSOffsetRect(newFrame, 0, -newFrame.size.height); [NSAnimationContext beginGrouping]; - [[NSAnimationContext currentContext] setDuration:kAnimationDuration]; + [[NSAnimationContext currentContext] gtm_setDuration:kAnimationDuration]; [[tabView animator] setFrame:newFrame]; [NSAnimationContext endGrouping]; } |