Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / media / fake_desktop_media_list.h
blob4adce0614b5b322e1e1836083a6dd29bf4eb53b6
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.
5 #ifndef CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_
6 #define CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_
8 #include <vector>
10 #include "chrome/browser/media/desktop_media_list.h"
12 class FakeDesktopMediaList : public DesktopMediaList {
13 public:
14 FakeDesktopMediaList();
15 ~FakeDesktopMediaList() override;
17 void AddSource(int id);
18 void RemoveSource(int index);
19 void MoveSource(int old_index, int new_index);
20 void SetSourceThumbnail(int index);
21 void SetSourceName(int index, base::string16 name);
23 // DesktopMediaList implementation:
24 void SetUpdatePeriod(base::TimeDelta period) override;
25 void SetThumbnailSize(const gfx::Size& thumbnail_size) override;
26 void SetViewDialogWindowId(content::DesktopMediaID::Id dialog_id) override;
27 void StartUpdating(DesktopMediaListObserver* observer) override;
28 int GetSourceCount() const override;
29 const Source& GetSource(int index) const override;
31 private:
32 std::vector<Source> sources_;
33 DesktopMediaListObserver* observer_;
34 gfx::ImageSkia thumbnail_;
37 #endif // CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_