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_INFOBARS_MEDIA_STREAM_INFOBAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_MEDIA_STREAM_INFOBAR_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_MEDIA_STREAM_INFOBAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_MEDIA_STREAM_INFOBAR_CONTROLLER_H_ |
7 | 7 |
8 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" | 8 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" |
9 | 9 |
10 #import "base/memory/scoped_nsobject.h" | 10 #import "base/memory/scoped_nsobject.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 | 12 |
13 class InfoBarTabHelper; | 13 class InfoBarTabService; |
14 class MediaStreamDevicesMenuModel; | 14 class MediaStreamDevicesMenuModel; |
15 class MediaStreamInfoBarDelegate; | 15 class MediaStreamInfoBarDelegate; |
16 @class NSButton; | 16 @class NSButton; |
17 @class NSPopUpButton; | 17 @class NSPopUpButton; |
18 @class NSTextField; | 18 @class NSTextField; |
19 | 19 |
20 // The class handles the Mac OS X specifics for the MediaStream infobar allowing | 20 // The class handles the Mac OS X specifics for the MediaStream infobar allowing |
21 // or denying capture device usage. | 21 // or denying capture device usage. |
22 @interface MediaStreamInfoBarController : InfoBarController { | 22 @interface MediaStreamInfoBarController : InfoBarController { |
23 @protected | 23 @protected |
24 // Contains all text displayed on the infobar. | 24 // Contains all text displayed on the infobar. |
25 scoped_nsobject<NSTextField> label1_; | 25 scoped_nsobject<NSTextField> label1_; |
26 // Contains a list of video and audio capture devices. | 26 // Contains a list of video and audio capture devices. |
27 scoped_nsobject<NSPopUpButton> deviceMenu_; | 27 scoped_nsobject<NSPopUpButton> deviceMenu_; |
28 // Menu model for MediaStream capture devices. | 28 // Menu model for MediaStream capture devices. |
29 scoped_ptr<MediaStreamDevicesMenuModel> deviceMenuModel_; | 29 scoped_ptr<MediaStreamDevicesMenuModel> deviceMenuModel_; |
30 // Space between controls in pixels - generated from the NIB. | 30 // Space between controls in pixels - generated from the NIB. |
31 CGFloat spaceBetweenControls_; | 31 CGFloat spaceBetweenControls_; |
32 } | 32 } |
33 | 33 |
34 - (id)initWithDelegate:(MediaStreamInfoBarDelegate*)delegate | 34 - (id)initWithDelegate:(MediaStreamInfoBarDelegate*)delegate |
35 owner:(InfoBarTabHelper*)owner; | 35 owner:(InfoBarTabService*)owner; |
36 | 36 |
37 // Called when the selection in the device menu has changed. | 37 // Called when the selection in the device menu has changed. |
38 - (IBAction)deviceMenuChanged:(id)sender; | 38 - (IBAction)deviceMenuChanged:(id)sender; |
39 | 39 |
40 @end | 40 @end |
41 | 41 |
42 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MEDIA_STREAM_INFOBAR_CONTROLLER_H_ | 42 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_MEDIA_STREAM_INFOBAR_CONTROLLER_H_ |
OLD | NEW |