| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. |
| 56 - (id)initWithMediaList:(scoped_ptr<DesktopMediaList>)media_list | 56 - (id)initWithMediaList:(scoped_ptr<DesktopMediaList>)media_list |
| 57 parent:(NSWindow*)parent |
| 57 callback:(const DesktopMediaPicker::DoneCallback&)callback | 58 callback:(const DesktopMediaPicker::DoneCallback&)callback |
| 58 appName:(const string16&)appName; | 59 appName:(const string16&)appName; |
| 59 | 60 |
| 60 @end | 61 @end |
| 61 | 62 |
| 62 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_
H_ | 63 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_CONTROLLER_
H_ |
| OLD | NEW |