Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Side by Side Diff: chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller.h

Issue 120253002: Set parent for window picker dialog on Mac (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698