OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THROBBING_IMAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_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/memory/scoped_nsobject.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "ui/base/animation/throb_animation.h" | 12 #include "ui/base/animation/throb_animation.h" |
13 | 13 |
14 class ThrobbingImageViewAnimationDelegate; | 14 class ThrobbingImageViewAnimationDelegate; |
15 | 15 |
16 @interface ThrobbingImageView : NSView { | 16 @interface ThrobbingImageView : NSView { |
17 @protected | 17 @protected |
18 scoped_nsobject<NSImage> backgroundImage_; | 18 scoped_nsobject<NSImage> backgroundImage_; |
19 scoped_nsobject<NSImage> throbImage_; | 19 scoped_nsobject<NSImage> throbImage_; |
20 scoped_ptr<ui::ThrobAnimation> throbAnimation_; | 20 scoped_ptr<ui::ThrobAnimation> throbAnimation_; |
21 | 21 |
22 @private | 22 @private |
23 scoped_ptr<ThrobbingImageViewAnimationDelegate> delegate_; | 23 scoped_ptr<ThrobbingImageViewAnimationDelegate> delegate_; |
24 } | 24 } |
25 | 25 |
26 - (id)initWithFrame:(NSRect)rect | 26 - (id)initWithFrame:(NSRect)rect |
27 backgroundImage:(NSImage*)backgroundImage | 27 backgroundImage:(NSImage*)backgroundImage |
28 throbImage:(NSImage*)throbImage | 28 throbImage:(NSImage*)throbImage |
29 durationMS:(int)durationMS; | 29 durationMS:(int)durationMS; |
| 30 |
| 31 - (void)setTweenType:(ui::Tween::Type)type; |
| 32 |
30 @end | 33 @end |
31 | 34 |
32 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_ | 35 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_ |
OLD | NEW |