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_COCOA_H_ | 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_ | 6 #define CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ |
7 | 7 |
8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
9 #include "chrome/browser/media/desktop_media_picker.h" | 9 #include "chrome/browser/media/desktop_media_picker.h" |
10 | 10 |
11 @class DesktopMediaPickerController; | 11 @class DesktopMediaPickerController; |
12 | 12 |
13 // Cocoa's DesktopMediaPicker implementation. | 13 // Cocoa's DesktopMediaPicker implementation. |
14 class DesktopMediaPickerCocoa : public DesktopMediaPicker { | 14 class DesktopMediaPickerCocoa : public DesktopMediaPicker { |
15 public: | 15 public: |
16 DesktopMediaPickerCocoa(); | 16 DesktopMediaPickerCocoa(); |
17 virtual ~DesktopMediaPickerCocoa(); | 17 virtual ~DesktopMediaPickerCocoa(); |
18 | 18 |
19 // Overridden from DesktopMediaPicker: | 19 // Overridden from DesktopMediaPicker: |
20 virtual void Show(content::WebContents* web_contents, | 20 virtual void Show(content::WebContents* web_contents, |
21 gfx::NativeWindow context, | 21 gfx::NativeWindow context, |
22 gfx::NativeWindow parent, | 22 gfx::NativeWindow parent, |
23 const base::string16& app_name, | 23 const base::string16& app_name, |
24 const base::string16& target_name, | 24 const base::string16& target_name, |
25 scoped_ptr<DesktopMediaList> media_list, | 25 scoped_ptr<DesktopMediaList> media_list, |
26 const DoneCallback& done_callback) OVERRIDE; | 26 const DoneCallback& done_callback) override; |
27 | 27 |
28 private: | 28 private: |
29 base::scoped_nsobject<DesktopMediaPickerController> controller_; | 29 base::scoped_nsobject<DesktopMediaPickerController> controller_; |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ | 32 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ |
OLD | NEW |