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

Side by Side Diff: remoting/host/fake_desktop_capturer.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (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 | « remoting/host/dns_blackhole_checker.h ('k') | remoting/host/fake_desktop_environment.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_ 5 #ifndef REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_
6 #define REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_ 6 #define REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 11 matching lines...) Expand all
22 // By default FakeDesktopCapturer generates frames of size kWidth x kHeight, 22 // By default FakeDesktopCapturer generates frames of size kWidth x kHeight,
23 // but custom frame generator set using set_frame_generator() may generate 23 // but custom frame generator set using set_frame_generator() may generate
24 // frames of different size. 24 // frames of different size.
25 static const int kWidth = 800; 25 static const int kWidth = 800;
26 static const int kHeight = 600; 26 static const int kHeight = 600;
27 27
28 typedef base::Callback<scoped_ptr<webrtc::DesktopFrame>( 28 typedef base::Callback<scoped_ptr<webrtc::DesktopFrame>(
29 webrtc::DesktopCapturer::Callback* callback)> FrameGenerator; 29 webrtc::DesktopCapturer::Callback* callback)> FrameGenerator;
30 30
31 FakeDesktopCapturer(); 31 FakeDesktopCapturer();
32 virtual ~FakeDesktopCapturer(); 32 ~FakeDesktopCapturer() override;
33 33
34 void set_frame_generator(const FrameGenerator& frame_generator); 34 void set_frame_generator(const FrameGenerator& frame_generator);
35 35
36 // webrtc::DesktopCapturer interface. 36 // webrtc::DesktopCapturer interface.
37 virtual void Start(Callback* callback) override; 37 void Start(Callback* callback) override;
38 virtual void Capture(const webrtc::DesktopRegion& rect) override; 38 void Capture(const webrtc::DesktopRegion& rect) override;
39 39
40 private: 40 private:
41 FrameGenerator frame_generator_; 41 FrameGenerator frame_generator_;
42 42
43 Callback* callback_; 43 Callback* callback_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(FakeDesktopCapturer); 45 DISALLOW_COPY_AND_ASSIGN(FakeDesktopCapturer);
46 }; 46 };
47 47
48 } // namespace remoting 48 } // namespace remoting
49 49
50 #endif // REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_ 50 #endif // REMOTING_HOST_FAKE_DESKTOP_CAPTURER_H_
OLDNEW
« no previous file with comments | « remoting/host/dns_blackhole_checker.h ('k') | remoting/host/fake_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698