OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_ |
| 6 #define CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "chrome/browser/media/desktop_media_list.h" |
| 11 |
| 12 class FakeDesktopMediaList : public DesktopMediaList { |
| 13 public: |
| 14 FakeDesktopMediaList(); |
| 15 virtual ~FakeDesktopMediaList(); |
| 16 |
| 17 void AddSource(int id); |
| 18 void RemoveSource(int index); |
| 19 void SetSourceThumbnail(int index); |
| 20 void SetSourceName(int index, string16 name); |
| 21 |
| 22 // DesktopMediaList implementation: |
| 23 virtual void SetUpdatePeriod(base::TimeDelta period) OVERRIDE; |
| 24 virtual void SetThumbnailSize(const gfx::Size& thumbnail_size) OVERRIDE; |
| 25 virtual void SetViewDialogWindowId( |
| 26 content::DesktopMediaID::Id dialog_id) OVERRIDE; |
| 27 virtual void StartUpdating(DesktopMediaListObserver* observer) OVERRIDE; |
| 28 virtual int GetSourceCount() const OVERRIDE; |
| 29 virtual const Source& GetSource(int index) const OVERRIDE; |
| 30 |
| 31 private: |
| 32 std::vector<Source> sources_; |
| 33 DesktopMediaListObserver* observer_; |
| 34 gfx::ImageSkia thumbnail_; |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_ |
OLD | NEW |