| 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_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class WebContents; | 13 class WebContents; |
| 14 } | 14 } |
| 15 namespace gfx { |
| 16 class AnimationContainer; |
| 17 } |
| 15 class TabAudioIndicator; | 18 class TabAudioIndicator; |
| 16 class TabAudioIndicatorDelegateMac; | 19 class TabAudioIndicatorDelegateMac; |
| 17 namespace ui { | |
| 18 class AnimationContainer; | |
| 19 } | |
| 20 | 20 |
| 21 // A view that draws an audio indicator on top of a favicon. | 21 // A view that draws an audio indicator on top of a favicon. |
| 22 @interface TabAudioIndicatorViewMac : NSView { | 22 @interface TabAudioIndicatorViewMac : NSView { |
| 23 @private | 23 @private |
| 24 scoped_ptr<TabAudioIndicator> tabAudioIndicator_; | 24 scoped_ptr<TabAudioIndicator> tabAudioIndicator_; |
| 25 scoped_ptr<TabAudioIndicatorDelegateMac> delegate_; | 25 scoped_ptr<TabAudioIndicatorDelegateMac> delegate_; |
| 26 } | 26 } |
| 27 | 27 |
| 28 - (void)setIsPlayingAudio:(BOOL)isPlayingAudio; | 28 - (void)setIsPlayingAudio:(BOOL)isPlayingAudio; |
| 29 | 29 |
| 30 - (void)setBackgroundImage:(NSImage*)backgroundImage; | 30 - (void)setBackgroundImage:(NSImage*)backgroundImage; |
| 31 | 31 |
| 32 - (void)setAnimationContainer:(ui::AnimationContainer*)animationContainer; | 32 - (void)setAnimationContainer:(gfx::AnimationContainer*)animationContainer; |
| 33 | 33 |
| 34 - (BOOL)isAnimating; | 34 - (BOOL)isAnimating; |
| 35 | 35 |
| 36 @end | 36 @end |
| 37 | 37 |
| 38 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ | 38 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_AUDIO_INDICATOR_VIEW_MAC_H_ |
| OLD | NEW |