OLD | NEW |
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_SHAPED_DESKTOP_CAPTURER_H_ | 5 #ifndef REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_ |
6 #define REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_ | 6 #define REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
10 | 13 |
11 namespace remoting { | 14 namespace remoting { |
12 | 15 |
13 class DesktopShapeTracker; | 16 class DesktopShapeTracker; |
14 | 17 |
15 // Screen capturer that also captures desktop shape. | 18 // Screen capturer that also captures desktop shape. |
16 class ShapedDesktopCapturer : public webrtc::DesktopCapturer, | 19 class ShapedDesktopCapturer : public webrtc::DesktopCapturer, |
17 public webrtc::DesktopCapturer::Callback { | 20 public webrtc::DesktopCapturer::Callback { |
(...skipping 14 matching lines...) Expand all Loading... |
32 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; | 35 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; |
33 scoped_ptr<DesktopShapeTracker> shape_tracker_; | 36 scoped_ptr<DesktopShapeTracker> shape_tracker_; |
34 webrtc::DesktopCapturer::Callback* callback_; | 37 webrtc::DesktopCapturer::Callback* callback_; |
35 | 38 |
36 DISALLOW_COPY_AND_ASSIGN(ShapedDesktopCapturer); | 39 DISALLOW_COPY_AND_ASSIGN(ShapedDesktopCapturer); |
37 }; | 40 }; |
38 | 41 |
39 } // namespace remoting | 42 } // namespace remoting |
40 | 43 |
41 #endif // REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_ | 44 #endif // REMOTING_HOST_SHAPED_DESKTOP_CAPTURER_H_ |
OLD | NEW |