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 #include "base/memory/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
11 | 11 |
12 @protocol ThrobberDataDelegate; | 12 @protocol ThrobberDataDelegate; |
13 | 13 |
14 // A class that knows how to draw an animated state to indicate progress. | 14 // A class that knows how to draw an animated state to indicate progress. |
15 // Creating the class starts the animation, destroying it stops it. There are | 15 // Creating the class starts the animation, destroying it stops it. There are |
16 // two types: | 16 // two types: |
17 // | 17 // |
18 // - Filmstrip: Draws via a sequence of frames in an image. There is no state | 18 // - Filmstrip: Draws via a sequence of frames in an image. There is no state |
19 // where the class is frozen on an image and not animating. The image needs to | 19 // where the class is frozen on an image and not animating. The image needs to |
20 // be made of squares such that the height divides evenly into the width. | 20 // be made of squares such that the height divides evenly into the width. |
(...skipping 11 matching lines...) Expand all Loading... |
32 image:(NSImage*)image; | 32 image:(NSImage*)image; |
33 | 33 |
34 // Creates a toast view with |frame| and specified images. | 34 // Creates a toast view with |frame| and specified images. |
35 + (id)toastThrobberViewWithFrame:(NSRect)frame | 35 + (id)toastThrobberViewWithFrame:(NSRect)frame |
36 beforeImage:(NSImage*)beforeImage | 36 beforeImage:(NSImage*)beforeImage |
37 afterImage:(NSImage*)afterImage; | 37 afterImage:(NSImage*)afterImage; |
38 | 38 |
39 @end | 39 @end |
40 | 40 |
41 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ | 41 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ |
OLD | NEW |