OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "chrome/browser/ui/cocoa/animatable_image.h" | 5 #import "chrome/browser/ui/cocoa/animatable_image.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 8 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" |
9 | 9 |
10 @implementation AnimatableImage | 10 @implementation AnimatableImage |
11 | 11 |
12 @synthesize startFrame = startFrame_; | 12 @synthesize startFrame = startFrame_; |
13 @synthesize endFrame = endFrame_; | 13 @synthesize endFrame = endFrame_; |
14 @synthesize startOpacity = startOpacity_; | 14 @synthesize startOpacity = startOpacity_; |
15 @synthesize endOpacity = endOpacity_; | 15 @synthesize endOpacity = endOpacity_; |
16 @synthesize duration = duration_; | 16 @synthesize duration = duration_; |
17 | 17 |
18 - (id)initWithImage:(NSImage*)image | 18 - (id)initWithImage:(NSImage*)image |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 [CATransaction commit]; | 121 [CATransaction commit]; |
122 } | 122 } |
123 | 123 |
124 // CAAnimation delegate method called when the animation is complete. | 124 // CAAnimation delegate method called when the animation is complete. |
125 - (void)animationDidStop:(CAAnimation*)animation finished:(BOOL)flag { | 125 - (void)animationDidStop:(CAAnimation*)animation finished:(BOOL)flag { |
126 // Close the window, releasing self. | 126 // Close the window, releasing self. |
127 [self close]; | 127 [self close]; |
128 } | 128 } |
129 | 129 |
130 @end | 130 @end |
OLD | NEW |