summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/animatable_view.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/animatable_view.mm')
-rw-r--r--chrome/browser/cocoa/animatable_view.mm10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/animatable_view.mm b/chrome/browser/cocoa/animatable_view.mm
index bf5da1d..0ca0f2e 100644
--- a/chrome/browser/cocoa/animatable_view.mm
+++ b/chrome/browser/cocoa/animatable_view.mm
@@ -10,7 +10,7 @@
// NSAnimation subclass that animates the height of an AnimatableView. Allows
// the caller to start and cancel the animation as desired.
-@interface NSHeightAnimation : NSAnimation {
+@interface HeightAnimation : NSAnimation {
@private
AnimatableView* view_; // weak, owns us.
CGFloat startHeight_;
@@ -24,7 +24,7 @@
duration:(NSTimeInterval)duration;
@end
-@implementation NSHeightAnimation
+@implementation HeightAnimation
- (id)initWithView:(AnimatableView*)view
finalHeight:(CGFloat)height
duration:(NSTimeInterval)duration {
@@ -73,9 +73,9 @@
duration:(NSTimeInterval)duration {
[currentAnimation_ stopAnimation];
- currentAnimation_.reset([[NSHeightAnimation alloc] initWithView:self
- finalHeight:newHeight
- duration:duration]);
+ currentAnimation_.reset([[HeightAnimation alloc] initWithView:self
+ finalHeight:newHeight
+ duration:duration]);
if ([resizeDelegate_ respondsToSelector:@selector(setAnimationInProgress:)])
[resizeDelegate_ setAnimationInProgress:YES];
[currentAnimation_ startAnimation];