| 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 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| 11 #include "chrome/browser/media/webrtc/desktop_media_picker.h" | 11 #include "chrome/browser/media/webrtc/desktop_media_picker.h" |
| 12 | 12 |
| 13 @class DesktopMediaPickerControllerDeprecated; | |
| 14 @class DesktopMediaPickerController; | 13 @class DesktopMediaPickerController; |
| 15 | 14 |
| 16 // Cocoa's DesktopMediaPicker implementation. | 15 // Cocoa's DesktopMediaPicker implementation. |
| 17 class DesktopMediaPickerCocoa : public DesktopMediaPicker { | 16 class DesktopMediaPickerCocoa : public DesktopMediaPicker { |
| 18 public: | 17 public: |
| 19 DesktopMediaPickerCocoa(); | 18 DesktopMediaPickerCocoa(); |
| 20 ~DesktopMediaPickerCocoa() override; | 19 ~DesktopMediaPickerCocoa() override; |
| 21 | 20 |
| 22 // Overridden from DesktopMediaPicker: | 21 // Overridden from DesktopMediaPicker: |
| 23 void Show(content::WebContents* web_contents, | 22 void Show(content::WebContents* web_contents, |
| 24 gfx::NativeWindow context, | 23 gfx::NativeWindow context, |
| 25 gfx::NativeWindow parent, | 24 gfx::NativeWindow parent, |
| 26 const base::string16& app_name, | 25 const base::string16& app_name, |
| 27 const base::string16& target_name, | 26 const base::string16& target_name, |
| 28 std::unique_ptr<DesktopMediaList> screen_list, | 27 std::unique_ptr<DesktopMediaList> screen_list, |
| 29 std::unique_ptr<DesktopMediaList> window_list, | 28 std::unique_ptr<DesktopMediaList> window_list, |
| 30 std::unique_ptr<DesktopMediaList> tab_list, | 29 std::unique_ptr<DesktopMediaList> tab_list, |
| 31 bool request_audio, | 30 bool request_audio, |
| 32 const DoneCallback& done_callback) override; | 31 const DoneCallback& done_callback) override; |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 base::scoped_nsobject<DesktopMediaPickerControllerDeprecated> | |
| 36 controller_deprecated_; | |
| 37 | |
| 38 base::scoped_nsobject<DesktopMediaPickerController> controller_; | 34 base::scoped_nsobject<DesktopMediaPickerController> controller_; |
| 39 }; | 35 }; |
| 40 | 36 |
| 41 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ | 37 #endif // CHROME_BROWSER_UI_COCOA_MEDIA_PICKER_DESKTOP_MEDIA_PICKER_COCOA_H_ |
| OLD | NEW |