OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #import <Quartz/Quartz.h> | 9 #import <Quartz/Quartz.h> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 // notifications to this object. | 45 // notifications to this object. |
46 scoped_ptr<DesktopMediaPickerBridge> bridge_; | 46 scoped_ptr<DesktopMediaPickerBridge> bridge_; |
47 | 47 |
48 // Used to create |DesktopMediaPickerItem|s with unique IDs. | 48 // Used to create |DesktopMediaPickerItem|s with unique IDs. |
49 int lastImageUID_; | 49 int lastImageUID_; |
50 } | 50 } |
51 | 51 |
52 // Designated initializer. | 52 // Designated initializer. |
53 // To show the dialog, use |NSWindowController|'s |showWindow:|. | 53 // To show the dialog, use |NSWindowController|'s |showWindow:|. |
54 // |callback| will be called to report the user's selection. | 54 // |callback| will be called to report the user's selection. |
55 // |appName| will be used to format the dialog's title and the label. | 55 // |appName| will be used to format the dialog's title and the label. |
Robert Sesek
2014/03/05 19:08:27
Document |targetName|
jiayl
2014/03/05 19:12:12
Done.
| |
56 - (id)initWithMediaList:(scoped_ptr<DesktopMediaList>)media_list | 56 - (id)initWithMediaList:(scoped_ptr<DesktopMediaList>)media_list |
57 parent:(NSWindow*)parent | 57 parent:(NSWindow*)parent |
58 callback:(const DesktopMediaPicker::DoneCallback&)callback | 58 callback:(const DesktopMediaPicker::DoneCallback&)callback |
59 appName:(const base::string16&)appName; | 59 appName:(const base::string16&)appName |
60 targetName:(const base::string16&)targetName; | |
60 | 61 |
61 @end | 62 @end |
62 | 63 |
63 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_ H_ | 64 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_ H_ |
OLD | NEW |