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

Side by Side Diff: media/video/capture/fake_video_capture_device.h

Issue 623263003: replace OVERRIDE and FINAL with override and final in 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Implementation of a fake VideoCaptureDevice class. Used for testing other 5 // Implementation of a fake VideoCaptureDevice class. Used for testing other
6 // video capture classes when no real hardware is available. 6 // video capture classes when no real hardware is available.
7 7
8 #ifndef MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 8 #ifndef MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
9 #define MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 9 #define MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
10 10
(...skipping 10 matching lines...) Expand all
21 class MEDIA_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice { 21 class MEDIA_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
22 public: 22 public:
23 static const int kFakeCaptureTimeoutMs = 50; 23 static const int kFakeCaptureTimeoutMs = 50;
24 24
25 FakeVideoCaptureDevice(); 25 FakeVideoCaptureDevice();
26 virtual ~FakeVideoCaptureDevice(); 26 virtual ~FakeVideoCaptureDevice();
27 27
28 // VideoCaptureDevice implementation. 28 // VideoCaptureDevice implementation.
29 virtual void AllocateAndStart( 29 virtual void AllocateAndStart(
30 const VideoCaptureParams& params, 30 const VideoCaptureParams& params,
31 scoped_ptr<VideoCaptureDevice::Client> client) OVERRIDE; 31 scoped_ptr<VideoCaptureDevice::Client> client) override;
32 virtual void StopAndDeAllocate() OVERRIDE; 32 virtual void StopAndDeAllocate() override;
33 33
34 // Sets the formats to use sequentially when the device is configured as 34 // Sets the formats to use sequentially when the device is configured as
35 // variable capture resolution. Works only before AllocateAndStart() or 35 // variable capture resolution. Works only before AllocateAndStart() or
36 // after StopAndDeallocate(). 36 // after StopAndDeallocate().
37 void PopulateVariableFormatsRoster(const VideoCaptureFormats& formats); 37 void PopulateVariableFormatsRoster(const VideoCaptureFormats& formats);
38 38
39 private: 39 private:
40 // Called on the |capture_thread_| only. 40 // Called on the |capture_thread_| only.
41 void OnAllocateAndStart(const VideoCaptureParams& params, 41 void OnAllocateAndStart(const VideoCaptureParams& params,
42 scoped_ptr<Client> client); 42 scoped_ptr<Client> client);
(...skipping 18 matching lines...) Expand all
61 // running and are subsequently read-only in that thread. 61 // running and are subsequently read-only in that thread.
62 std::vector<VideoCaptureFormat> format_roster_; 62 std::vector<VideoCaptureFormat> format_roster_;
63 int format_roster_index_; 63 int format_roster_index_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice); 65 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice);
66 }; 66 };
67 67
68 } // namespace media 68 } // namespace media
69 69
70 #endif // MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_ 70 #endif // MEDIA_VIDEO_CAPTURE_FAKE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698