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

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

Issue 393703002: Rename *Fake to Fake* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/fake_host_status_monitor.h ('k') | remoting/host/fake_screen_capturer.cc » ('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 REMOTING_HOST_SCREEN_CAPTURER_FAKE_H_ 5 #ifndef REMOTING_HOST_FAKE_SCREEN_CAPTURER_H_
6 #define REMOTING_HOST_SCREEN_CAPTURER_FAKE_H_ 6 #define REMOTING_HOST_FAKE_SCREEN_CAPTURER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "media/base/media_export.h" 9 #include "media/base/media_export.h"
10 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 10 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
11 #include "third_party/webrtc/modules/desktop_capture/screen_capture_frame_queue. h" 11 #include "third_party/webrtc/modules/desktop_capture/screen_capture_frame_queue. h"
12 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" 12 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 // A ScreenCapturerFake generates artificial image for testing purpose. 16 // A FakeScreenCapturer generates artificial image for testing purpose.
17 // 17 //
18 // ScreenCapturerFake is double-buffered as required by ScreenCapturer. 18 // FakeScreenCapturer is double-buffered as required by ScreenCapturer.
19 class ScreenCapturerFake : public webrtc::ScreenCapturer { 19 class FakeScreenCapturer : public webrtc::ScreenCapturer {
20 public: 20 public:
21 // ScreenCapturerFake generates a picture of size kWidth x kHeight. 21 // FakeScreenCapturer generates a picture of size kWidth x kHeight.
22 static const int kWidth = 800; 22 static const int kWidth = 800;
23 static const int kHeight = 600; 23 static const int kHeight = 600;
24 24
25 ScreenCapturerFake(); 25 FakeScreenCapturer();
26 virtual ~ScreenCapturerFake(); 26 virtual ~FakeScreenCapturer();
27 27
28 // webrtc::DesktopCapturer interface. 28 // webrtc::DesktopCapturer interface.
29 virtual void Start(Callback* callback) OVERRIDE; 29 virtual void Start(Callback* callback) OVERRIDE;
30 virtual void Capture(const webrtc::DesktopRegion& rect) OVERRIDE; 30 virtual void Capture(const webrtc::DesktopRegion& rect) OVERRIDE;
31 31
32 // ScreenCapturer interface. 32 // ScreenCapturer interface.
33 virtual void SetMouseShapeObserver( 33 virtual void SetMouseShapeObserver(
34 MouseShapeObserver* mouse_shape_observer) OVERRIDE; 34 MouseShapeObserver* mouse_shape_observer) OVERRIDE;
35 virtual bool GetScreenList(ScreenList* screens) OVERRIDE; 35 virtual bool GetScreenList(ScreenList* screens) OVERRIDE;
36 virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE; 36 virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE;
(...skipping 10 matching lines...) Expand all
47 47
48 webrtc::DesktopSize size_; 48 webrtc::DesktopSize size_;
49 int bytes_per_row_; 49 int bytes_per_row_;
50 int box_pos_x_; 50 int box_pos_x_;
51 int box_pos_y_; 51 int box_pos_y_;
52 int box_speed_x_; 52 int box_speed_x_;
53 int box_speed_y_; 53 int box_speed_y_;
54 54
55 webrtc::ScreenCaptureFrameQueue queue_; 55 webrtc::ScreenCaptureFrameQueue queue_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(ScreenCapturerFake); 57 DISALLOW_COPY_AND_ASSIGN(FakeScreenCapturer);
58 }; 58 };
59 59
60 } // namespace remoting 60 } // namespace remoting
61 61
62 #endif // REMOTING_HOST_SCREEN_CAPTURER_FAKE_H_ 62 #endif // REMOTING_HOST_FAKE_SCREEN_CAPTURER_H_
OLDNEW
« no previous file with comments | « remoting/host/fake_host_status_monitor.h ('k') | remoting/host/fake_screen_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698