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_LIST_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_H_ |
6 #define CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_H_ | 6 #define CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
10 #include "base/time/time.h" | 9 #include "base/time/time.h" |
11 #include "content/public/browser/desktop_media_id.h" | 10 #include "content/public/browser/desktop_media_id.h" |
12 #include "ui/gfx/image/image_skia.h" | 11 #include "ui/gfx/image/image_skia.h" |
13 | 12 |
14 class DesktopMediaListObserver; | 13 class DesktopMediaListObserver; |
15 | 14 |
16 // DesktopMediaList provides the list of desktop media source (screens, windows, | 15 // DesktopMediaList provides the list of desktop media source (screens, windows, |
17 // tabs), and their thumbnails, to the desktop media picker dialog. It | 16 // tabs), and their thumbnails, to the desktop media picker dialog. It |
18 // transparently updates the list in the background, and notifies the desktop | 17 // transparently updates the list in the background, and notifies the desktop |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // enumerated. After the initial enumeration the model will be refreshed based | 51 // enumerated. After the initial enumeration the model will be refreshed based |
53 // on the update period, and notifications generated only for changes in the | 52 // on the update period, and notifications generated only for changes in the |
54 // model. | 53 // model. |
55 virtual void StartUpdating(DesktopMediaListObserver* observer) = 0; | 54 virtual void StartUpdating(DesktopMediaListObserver* observer) = 0; |
56 | 55 |
57 virtual int GetSourceCount() const = 0; | 56 virtual int GetSourceCount() const = 0; |
58 virtual const Source& GetSource(int index) const = 0; | 57 virtual const Source& GetSource(int index) const = 0; |
59 }; | 58 }; |
60 | 59 |
61 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_H_ | 60 #endif // CHROME_BROWSER_MEDIA_DESKTOP_MEDIA_LIST_H_ |
OLD | NEW |