Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/browser/ui/cocoa/tabs/throbbing_image_view.h

Issue 12374042: Mac: Audio indicator in each tab (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/throbbing_image_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698