| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 int lastImageUID_; | 55 int lastImageUID_; |
| 56 } | 56 } |
| 57 | 57 |
| 58 // Designated initializer. | 58 // Designated initializer. |
| 59 // To show the dialog, use |NSWindowController|'s |showWindow:|. | 59 // To show the dialog, use |NSWindowController|'s |showWindow:|. |
| 60 // |callback| will be called to report the user's selection. | 60 // |callback| will be called to report the user's selection. |
| 61 // |appName| will be used to format the dialog's title and the label, where it | 61 // |appName| will be used to format the dialog's title and the label, where it |
| 62 // appears as the initiator of the request. | 62 // appears as the initiator of the request. |
| 63 // |targetName| will be used to format the dialog's label and appear as the | 63 // |targetName| will be used to format the dialog's label and appear as the |
| 64 // consumer of the requested stream. | 64 // consumer of the requested stream. |
| 65 - (id)initWithMediaList:(std::unique_ptr<DesktopMediaList>)media_list | 65 - (id)initWithScreenList:(std::unique_ptr<DesktopMediaList>)screen_list |
| 66 parent:(NSWindow*)parent | 66 windowList:(std::unique_ptr<DesktopMediaList>)window_list |
| 67 callback:(const DesktopMediaPicker::DoneCallback&)callback | 67 tabList:(std::unique_ptr<DesktopMediaList>)tab_list |
| 68 appName:(const base::string16&)appName | 68 parent:(NSWindow*)parent |
| 69 targetName:(const base::string16&)targetName | 69 callback:(const DesktopMediaPicker::DoneCallback&)callback |
| 70 requestAudio:(bool)requestAudio; | 70 appName:(const base::string16&)appName |
| 71 targetName:(const base::string16&)targetName |
| 72 requestAudio:(bool)requestAudio; |
| 71 | 73 |
| 72 @end | 74 @end |
| 73 | 75 |
| 74 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_
H_ | 76 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_
H_ |
| OLD | NEW |