OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "remoting/host/ipc_video_frame_capturer.h" | 5 #include "remoting/host/ipc_video_frame_capturer.h" |
6 | 6 |
7 #include "remoting/base/capture_data.h" | 7 #include "remoting/capturer/capture_data.h" |
| 8 #include "remoting/capturer/mouse_cursor_shape.h" |
8 #include "remoting/host/desktop_session_proxy.h" | 9 #include "remoting/host/desktop_session_proxy.h" |
9 #include "remoting/proto/control.pb.h" | |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 IpcVideoFrameCapturer::IpcVideoFrameCapturer( | 13 IpcVideoFrameCapturer::IpcVideoFrameCapturer( |
14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) | 14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) |
15 : delegate_(NULL), | 15 : delegate_(NULL), |
16 desktop_session_proxy_(desktop_session_proxy), | 16 desktop_session_proxy_(desktop_session_proxy), |
17 size_most_recent_(SkISize::Make(0, 0)) { | 17 size_most_recent_(SkISize::Make(0, 0)) { |
18 } | 18 } |
19 | 19 |
(...skipping 29 matching lines...) Expand all Loading... |
49 void IpcVideoFrameCapturer::OnCaptureCompleted( | 49 void IpcVideoFrameCapturer::OnCaptureCompleted( |
50 scoped_refptr<CaptureData> capture_data) { | 50 scoped_refptr<CaptureData> capture_data) { |
51 if (capture_data) | 51 if (capture_data) |
52 size_most_recent_ = capture_data->size(); | 52 size_most_recent_ = capture_data->size(); |
53 | 53 |
54 if (delegate_) | 54 if (delegate_) |
55 delegate_->OnCaptureCompleted(capture_data); | 55 delegate_->OnCaptureCompleted(capture_data); |
56 } | 56 } |
57 | 57 |
58 void IpcVideoFrameCapturer::OnCursorShapeChanged( | 58 void IpcVideoFrameCapturer::OnCursorShapeChanged( |
59 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { | 59 scoped_ptr<MouseCursorShape> cursor_shape) { |
60 if (delegate_) | 60 if (delegate_) |
61 delegate_->OnCursorShapeChanged(cursor_shape.Pass()); | 61 delegate_->OnCursorShapeChanged(cursor_shape.Pass()); |
62 } | 62 } |
63 | 63 |
64 } // namespace remoting | 64 } // namespace remoting |
OLD | NEW |