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_TABS_THROBBER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 @protocol ThrobberDataDelegate; | 10 @protocol ThrobberDataDelegate; |
11 | 11 |
12 // Draws an image animating down to the bottom and then another image | 12 // Draws an image animating down to the bottom and then another image |
13 // animating up from the bottom. Stops once the animation is complete. | 13 // animating up from the bottom. Stops once the animation is complete. |
14 | 14 |
15 @interface ThrobberView : NSView { | 15 @interface ThrobberView : NSView { |
16 @private | 16 @private |
17 id<ThrobberDataDelegate> dataDelegate_; | 17 id<ThrobberDataDelegate> dataDelegate_; |
18 } | 18 } |
19 | 19 |
| 20 // Creates a filmstrip view with |frame| and image |image|. |
| 21 + (id)filmstripThrobberViewWithFrame:(NSRect)frame |
| 22 image:(NSImage*)image; |
| 23 |
20 // Creates a toast view with |frame| and specified images. | 24 // Creates a toast view with |frame| and specified images. |
21 + (id)toastThrobberViewWithFrame:(NSRect)frame | 25 + (id)toastThrobberViewWithFrame:(NSRect)frame |
22 beforeImage:(NSImage*)beforeImage | 26 beforeImage:(NSImage*)beforeImage |
23 afterImage:(NSImage*)afterImage; | 27 afterImage:(NSImage*)afterImage; |
24 | 28 |
25 @end | 29 @end |
26 | 30 |
27 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ | 31 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ |
OLD | NEW |