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

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

Issue 1554243002: Add CombinedDesktopMediaList. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_LIST_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_OBSERVER_H_ 6 #define CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_OBSERVER_H_
7 7
8 class DesktopMediaList;
9
8 // Interface implemented by the desktop media picker dialog to receive 10 // Interface implemented by the desktop media picker dialog to receive
9 // notifications about changes in DesktopMediaList. 11 // notifications about changes in DesktopMediaList.
10 class DesktopMediaListObserver { 12 class DesktopMediaListObserver {
11 public: 13 public:
12 virtual void OnSourceAdded(int index) = 0; 14 virtual void OnSourceAdded(DesktopMediaList* list, int index) = 0;
13 virtual void OnSourceRemoved(int index) = 0; 15 virtual void OnSourceRemoved(DesktopMediaList* list, int index) = 0;
14 virtual void OnSourceMoved(int old_index, int new_index) = 0; 16 virtual void OnSourceMoved(DesktopMediaList* list,
15 virtual void OnSourceNameChanged(int index) = 0; 17 int old_index,
16 virtual void OnSourceThumbnailChanged(int index) = 0; 18 int new_index) = 0;
19 virtual void OnSourceNameChanged(DesktopMediaList* list, int index) = 0;
20 virtual void OnSourceThumbnailChanged(DesktopMediaList* list, int index) = 0;
17 21
18 protected: 22 protected:
19 virtual ~DesktopMediaListObserver() {} 23 virtual ~DesktopMediaListObserver() {}
20 }; 24 };
21 25
22 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_OBSERVER_H_ 26 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/desktop_media_list_ash.cc ('k') | chrome/browser/media/native_desktop_media_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698