Chromium Code Reviews| 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_MEDIA_DESKTOP_MEDIA_PICKER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ | 6 #define CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 typedef base::Callback<void(content::DesktopMediaID)> DoneCallback; | 26 typedef base::Callback<void(content::DesktopMediaID)> DoneCallback; |
| 27 | 27 |
| 28 // Creates default implementation of DesktopMediaPicker for the current | 28 // Creates default implementation of DesktopMediaPicker for the current |
| 29 // platform. | 29 // platform. |
| 30 static std::unique_ptr<DesktopMediaPicker> Create(); | 30 static std::unique_ptr<DesktopMediaPicker> Create(); |
| 31 | 31 |
| 32 DesktopMediaPicker() {} | 32 DesktopMediaPicker() {} |
| 33 virtual ~DesktopMediaPicker() {} | 33 virtual ~DesktopMediaPicker() {} |
| 34 | 34 |
| 35 // Shows dialog with list of desktop media sources (screens, windows, tabs) | 35 // Shows dialog with list of desktop media sources (screens, windows, tabs) |
| 36 // provided by |list| and calls |done_callback| when user chooses one of the | 36 // provided by |list| and calls |done_callback| when user chooses one of the |
|
msw
2016/04/13 00:04:02
nit: update comment (mentions |list|)
qiangchen
2016/04/14 17:08:40
Done.
| |
| 37 // sources or closes the dialog. | 37 // sources or closes the dialog. |
| 38 virtual void Show(content::WebContents* web_contents, | 38 virtual void Show(content::WebContents* web_contents, |
| 39 gfx::NativeWindow context, | 39 gfx::NativeWindow context, |
| 40 gfx::NativeWindow parent, | 40 gfx::NativeWindow parent, |
| 41 const base::string16& app_name, | 41 const base::string16& app_name, |
| 42 const base::string16& target_name, | 42 const base::string16& target_name, |
| 43 std::unique_ptr<DesktopMediaList> list, | 43 std::unique_ptr<DesktopMediaList> screen_list, |
| 44 std::unique_ptr<DesktopMediaList> window_list, | |
| 45 std::unique_ptr<DesktopMediaList> tab_list, | |
| 44 bool request_audio, | 46 bool request_audio, |
| 45 const DoneCallback& done_callback) = 0; | 47 const DoneCallback& done_callback) = 0; |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPicker); | 50 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPicker); |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ | 53 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ |
| OLD | NEW |