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

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

Issue 665323004: Standardize usage of virtual/override/final in chrome/browser/media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_FAKE_DESKTOP_MEDIA_LIST_H_ 5 #ifndef CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_
6 #define CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_ 6 #define CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/media/desktop_media_list.h" 10 #include "chrome/browser/media/desktop_media_list.h"
11 11
12 class FakeDesktopMediaList : public DesktopMediaList { 12 class FakeDesktopMediaList : public DesktopMediaList {
13 public: 13 public:
14 FakeDesktopMediaList(); 14 FakeDesktopMediaList();
15 virtual ~FakeDesktopMediaList(); 15 ~FakeDesktopMediaList() override;
16 16
17 void AddSource(int id); 17 void AddSource(int id);
18 void RemoveSource(int index); 18 void RemoveSource(int index);
19 void MoveSource(int old_index, int new_index); 19 void MoveSource(int old_index, int new_index);
20 void SetSourceThumbnail(int index); 20 void SetSourceThumbnail(int index);
21 void SetSourceName(int index, base::string16 name); 21 void SetSourceName(int index, base::string16 name);
22 22
23 // DesktopMediaList implementation: 23 // DesktopMediaList implementation:
24 virtual void SetUpdatePeriod(base::TimeDelta period) override; 24 void SetUpdatePeriod(base::TimeDelta period) override;
25 virtual void SetThumbnailSize(const gfx::Size& thumbnail_size) override; 25 void SetThumbnailSize(const gfx::Size& thumbnail_size) override;
26 virtual void SetViewDialogWindowId( 26 void SetViewDialogWindowId(content::DesktopMediaID::Id dialog_id) override;
27 content::DesktopMediaID::Id dialog_id) override; 27 void StartUpdating(DesktopMediaListObserver* observer) override;
28 virtual void StartUpdating(DesktopMediaListObserver* observer) override; 28 int GetSourceCount() const override;
29 virtual int GetSourceCount() const override; 29 const Source& GetSource(int index) const override;
30 virtual const Source& GetSource(int index) const override;
31 30
32 private: 31 private:
33 std::vector<Source> sources_; 32 std::vector<Source> sources_;
34 DesktopMediaListObserver* observer_; 33 DesktopMediaListObserver* observer_;
35 gfx::ImageSkia thumbnail_; 34 gfx::ImageSkia thumbnail_;
36 }; 35 };
37 36
38 #endif // CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_ 37 #endif // CHROME_BROWSER_MEDIA_FAKE_DESKTOP_MEDIA_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698