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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 DesktopMediaPicker() {} | 27 DesktopMediaPicker() {} |
28 virtual ~DesktopMediaPicker() {} | 28 virtual ~DesktopMediaPicker() {} |
29 | 29 |
30 // Shows dialog with list of desktop media sources (screens, windows, tabs) | 30 // Shows dialog with list of desktop media sources (screens, windows, tabs) |
31 // provided by |list| and calls |done_callback| when user chooses one of the | 31 // provided by |list| and calls |done_callback| when user chooses one of the |
32 // sources or closes the dialog. | 32 // sources or closes the dialog. |
33 virtual void Show(gfx::NativeWindow context, | 33 virtual void Show(gfx::NativeWindow context, |
34 gfx::NativeWindow parent, | 34 gfx::NativeWindow parent, |
35 const base::string16& app_name, | 35 const base::string16& app_name, |
| 36 const base::string16& target_name, |
36 scoped_ptr<DesktopMediaList> list, | 37 scoped_ptr<DesktopMediaList> list, |
37 const DoneCallback& done_callback) = 0; | 38 const DoneCallback& done_callback) = 0; |
38 | 39 |
39 private: | 40 private: |
40 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPicker); | 41 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPicker); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ | 44 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ |
OLD | NEW |