OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_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 | 12 |
13 namespace content { | 13 namespace content { |
14 class WebContents; | 14 class WebContents; |
15 } | 15 } |
16 class TabAudioIndicator; | 16 class TabAudioIndicator; |
17 class TabAudioIndicatorDelegateMac; | 17 class TabAudioIndicatorDelegateMac; |
18 | 18 |
19 // A view that draws an audio indicator on top of a favicon. | 19 // A view that draws an audio indicator on top of a favicon. |
20 @interface TabAudioIndicatorViewMac : NSView { | 20 @interface TabAudioIndicatorViewMac : NSView { |
21 @private | 21 @private |
22 scoped_ptr<TabAudioIndicator> tabAudioIndicator_; | 22 scoped_ptr<TabAudioIndicator> tabAudioIndicator_; |
23 scoped_ptr<TabAudioIndicatorDelegateMac> delegate_; | 23 scoped_ptr<TabAudioIndicatorDelegateMac> delegate_; |
24 scoped_nsobject<NSImage> backgroundImage_; | |
25 } | 24 } |
26 | 25 |
27 - (void)setIsPlayingAudio:(BOOL)isPlayingAudio; | 26 - (void)setIsPlayingAudio:(BOOL)isPlayingAudio; |
28 | 27 |
29 - (void)setBackgroundImage:(NSImage*)backgroundImage; | 28 - (void)setBackgroundImage:(NSImage*)backgroundImage; |
30 | 29 |
31 - (BOOL)isAnimating; | 30 - (BOOL)isAnimating; |
32 | 31 |
33 @end | 32 @end |
34 | 33 |
35 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ | 34 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ |
OLD | NEW |