OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_ANIMATABLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_ANIMATABLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_ANIMATABLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_ANIMATABLE_VIEW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | |
11 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
12 #import "chrome/browser/ui/cocoa/background_gradient_view.h" | 11 #import "chrome/browser/ui/cocoa/background_gradient_view.h" |
13 #import "chrome/browser/ui/cocoa/view_resizer.h" | 12 #import "chrome/browser/ui/cocoa/view_resizer.h" |
14 | 13 |
15 // A view that provides an animatable height property. Provides methods to | 14 // A view that provides an animatable height property. Provides methods to |
16 // animate to a new height, set a new height immediately, or cancel any running | 15 // animate to a new height, set a new height immediately, or cancel any running |
17 // animations. | 16 // animations. |
18 // | 17 // |
19 // AnimatableView sends an |animationDidEnd:| message to its delegate when the | 18 // AnimatableView sends an |animationDidEnd:| message to its delegate when the |
20 // animation ends normally and an |animationDidStop:| message when the animation | 19 // animation ends normally and an |animationDidStop:| message when the animation |
(...skipping 28 matching lines...) Expand all Loading... |
49 // Cancels any running animations, leaving the view at its current | 48 // Cancels any running animations, leaving the view at its current |
50 // (mid-animation) height. | 49 // (mid-animation) height. |
51 - (void)stopAnimation; | 50 - (void)stopAnimation; |
52 | 51 |
53 // Gets the progress of any current animation. | 52 // Gets the progress of any current animation. |
54 - (NSAnimationProgress)currentAnimationProgress; | 53 - (NSAnimationProgress)currentAnimationProgress; |
55 | 54 |
56 @end | 55 @end |
57 | 56 |
58 #endif // CHROME_BROWSER_UI_COCOA_ANIMATABLE_VIEW_H_ | 57 #endif // CHROME_BROWSER_UI_COCOA_ANIMATABLE_VIEW_H_ |
OLD | NEW |