OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ | |
6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ | |
7 | |
8 #include "base/mac/scoped_nsobject.h" | |
Robert Sesek
2013/09/04 20:23:19
Use #import for ObjC headers
dcaiafa
2013/09/04 21:39:35
Done.
| |
9 #include "chrome/browser/media/desktop_media_picker.h" | |
10 | |
11 @class DesktopMediaPickerController; | |
12 | |
13 // Cocoa's DesktopMediaPicker implementation. | |
14 class DesktopMediaPickerCocoa : public DesktopMediaPicker { | |
15 public: | |
16 DesktopMediaPickerCocoa(); | |
17 virtual ~DesktopMediaPickerCocoa(); | |
18 | |
19 // Overridden from DesktopMediaPicker: | |
20 virtual void Show(gfx::NativeWindow context, | |
21 gfx::NativeWindow parent, | |
22 const string16& app_name, | |
23 scoped_ptr<DesktopMediaPickerModel> model, | |
24 const DoneCallback& done_callback) OVERRIDE; | |
25 | |
26 private: | |
27 base::scoped_nsobject<DesktopMediaPickerController> controller_; | |
Robert Sesek
2013/09/04 20:23:19
We usually have controllers owning themselves. How
dcaiafa
2013/09/04 21:39:35
The Desktop Media Picker API will destroy the Desk
| |
28 }; | |
29 | |
30 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ | |
OLD | NEW |