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

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

Issue 134633004: Roll libjingle+webrtc to r5397. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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/ipc_video_frame_capturer.cc ('k') | remoting/host/screen_capturer_fake.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_SCREEN_CAPTURER_FAKE_H_
6 #define REMOTING_HOST_SCREEN_CAPTURER_FAKE_H_ 6 #define REMOTING_HOST_SCREEN_CAPTURER_FAKE_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"
(...skipping 14 matching lines...) Expand all
25 ScreenCapturerFake(); 25 ScreenCapturerFake();
26 virtual ~ScreenCapturerFake(); 26 virtual ~ScreenCapturerFake();
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;
36 virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE;
35 37
36 private: 38 private:
37 // Generates an image in the front buffer. 39 // Generates an image in the front buffer.
38 void GenerateImage(); 40 void GenerateImage();
39 41
40 // Called when the screen configuration is changed. 42 // Called when the screen configuration is changed.
41 void ScreenConfigurationChanged(); 43 void ScreenConfigurationChanged();
42 44
43 Callback* callback_; 45 Callback* callback_;
44 MouseShapeObserver* mouse_shape_observer_; 46 MouseShapeObserver* mouse_shape_observer_;
45 47
46 webrtc::DesktopSize size_; 48 webrtc::DesktopSize size_;
47 int bytes_per_row_; 49 int bytes_per_row_;
48 int box_pos_x_; 50 int box_pos_x_;
49 int box_pos_y_; 51 int box_pos_y_;
50 int box_speed_x_; 52 int box_speed_x_;
51 int box_speed_y_; 53 int box_speed_y_;
52 54
53 webrtc::ScreenCaptureFrameQueue queue_; 55 webrtc::ScreenCaptureFrameQueue queue_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(ScreenCapturerFake); 57 DISALLOW_COPY_AND_ASSIGN(ScreenCapturerFake);
56 }; 58 };
57 59
58 } // namespace remoting 60 } // namespace remoting
59 61
60 #endif // REMOTING_HOST_SCREEN_CAPTURER_FAKE_H_ 62 #endif // REMOTING_HOST_SCREEN_CAPTURER_FAKE_H_
OLDNEW
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.cc ('k') | remoting/host/screen_capturer_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698