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

Unified Diff: chrome/browser/media/native_desktop_media_list.h

Issue 1808273002: Use DesktopCaptureDeviceAura for all aura windows in Windows and Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/native_desktop_media_list.h
diff --git a/chrome/browser/media/native_desktop_media_list.h b/chrome/browser/media/native_desktop_media_list.h
index 138c85cdad53beb052eb725a95cf56cb70addd0d..1b96b1097c6a0929982dde0a38e930f1ddab6467 100644
--- a/chrome/browser/media/native_desktop_media_list.h
+++ b/chrome/browser/media/native_desktop_media_list.h
@@ -21,9 +21,6 @@ class WindowCapturer;
// native windows.
class NativeDesktopMediaList : public DesktopMediaListBase {
public:
- typedef std::map<content::DesktopMediaID::Id, content::DesktopMediaID::Id>
- NativeAuraIdMap;
-
// Caller may pass NULL for either of the arguments in case when only some
// types of sources the model should be populated with (e.g. it will only
// contain windows, if |screen_capturer| is NULL).
@@ -38,14 +35,11 @@ class NativeDesktopMediaList : public DesktopMediaListBase {
class Worker;
friend class Worker;
- // Refresh() posts a task for the |worker_| to update list of windows and get
- // thumbnails. Then |worker_| first posts tasks for
- // UpdateObserverSourcesList() with fresh list of sources, then follows with
- // OnSourceThumbnail() for each changed thumbnail and then calls
- // DelayLaunchNextRefersh() at the end.
+ // Refresh() posts a task for the |worker_| to update list of windows, get
+ // thumbnails and schedule next refresh.
void Refresh() override;
- void OnSourceThumbnailCaptured(int index, const gfx::ImageSkia& image);
+ void AddAuraIdToMediaId(std::vector<SourceDescription> sources);
void FinishRefreshOnUiThreadAndScheduleNext(
const std::vector<content::DesktopMediaID>& aura_ids);
« no previous file with comments | « no previous file | chrome/browser/media/native_desktop_media_list.cc » ('j') | chrome/browser/media/native_desktop_media_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698