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

Side by Side Diff: content/test/test_video_frame_provider.h

Issue 630813002: Replace OVERRIDE and FINAL with override and final in content/test/[a-s]* (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
« no previous file with comments | « content/test/test_render_view_host_factory.h ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_ 5 #ifndef CONTENT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_
6 #define CONTENT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_ 6 #define CONTENT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/renderer/media/video_frame_provider.h" 9 #include "content/renderer/media/video_frame_provider.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 11 matching lines...) Expand all
22 // only non-black pixels. 22 // only non-black pixels.
23 class TestVideoFrameProvider : public VideoFrameProvider { 23 class TestVideoFrameProvider : public VideoFrameProvider {
24 public: 24 public:
25 TestVideoFrameProvider( 25 TestVideoFrameProvider(
26 const gfx::Size& size, 26 const gfx::Size& size,
27 const base::TimeDelta& frame_duration, 27 const base::TimeDelta& frame_duration,
28 const base::Closure& error_cb, 28 const base::Closure& error_cb,
29 const RepaintCB& repaint_cb); 29 const RepaintCB& repaint_cb);
30 30
31 // VideoFrameProvider implementation. 31 // VideoFrameProvider implementation.
32 virtual void Start() OVERRIDE; 32 virtual void Start() override;
33 virtual void Stop() OVERRIDE; 33 virtual void Stop() override;
34 virtual void Play() OVERRIDE; 34 virtual void Play() override;
35 virtual void Pause() OVERRIDE; 35 virtual void Pause() override;
36 36
37 protected: 37 protected:
38 virtual ~TestVideoFrameProvider(); 38 virtual ~TestVideoFrameProvider();
39 39
40 private: 40 private:
41 enum State { 41 enum State {
42 kStarted, 42 kStarted,
43 kPaused, 43 kPaused,
44 kStopped, 44 kStopped,
45 }; 45 };
46 46
47 void GenerateFrame(); 47 void GenerateFrame();
48 48
49 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 49 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
50 gfx::Size size_; 50 gfx::Size size_;
51 State state_; 51 State state_;
52 52
53 base::TimeDelta current_time_; 53 base::TimeDelta current_time_;
54 base::TimeDelta frame_duration_; 54 base::TimeDelta frame_duration_;
55 base::Closure error_cb_; 55 base::Closure error_cb_;
56 RepaintCB repaint_cb_; 56 RepaintCB repaint_cb_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(TestVideoFrameProvider); 58 DISALLOW_COPY_AND_ASSIGN(TestVideoFrameProvider);
59 }; 59 };
60 60
61 } // namespace content 61 } // namespace content
62 62
63 #endif // CONTENT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_ 63 #endif // CONTENT_TEST_TEST_VIDEO_FRAME_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/test/test_render_view_host_factory.h ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698