Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: chrome/browser/media/desktop_media_picker.h

Issue 1880693002: Desktop Capture Picker New UI: Preliminary Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 |screen_list|, |window_list| and |tab_list|.
37 // Dialog window will call |done_callback| when user chooses one of the
37 // sources or closes the dialog. 38 // sources or closes the dialog.
38 virtual void Show(content::WebContents* web_contents, 39 virtual void Show(content::WebContents* web_contents,
39 gfx::NativeWindow context, 40 gfx::NativeWindow context,
40 gfx::NativeWindow parent, 41 gfx::NativeWindow parent,
41 const base::string16& app_name, 42 const base::string16& app_name,
42 const base::string16& target_name, 43 const base::string16& target_name,
43 std::unique_ptr<DesktopMediaList> list, 44 std::unique_ptr<DesktopMediaList> screen_list,
45 std::unique_ptr<DesktopMediaList> window_list,
46 std::unique_ptr<DesktopMediaList> tab_list,
44 bool request_audio, 47 bool request_audio,
Sergey Ulanov 2016/04/14 22:39:52 nit, not for this cl: there 4 parameters can be bu
qiangchen 2016/04/15 19:33:30 Good suggestion.
45 const DoneCallback& done_callback) = 0; 48 const DoneCallback& done_callback) = 0;
46 49
47 private: 50 private:
48 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPicker); 51 DISALLOW_COPY_AND_ASSIGN(DesktopMediaPicker);
49 }; 52 };
50 53
51 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_ 54 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_PICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698