OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 const MouseCursor& cursor, | 60 const MouseCursor& cursor, |
61 const DesktopVector& position); | 61 const DesktopVector& position); |
62 virtual ~DesktopFrameWithCursor(); | 62 virtual ~DesktopFrameWithCursor(); |
63 | 63 |
64 private: | 64 private: |
65 rtc::scoped_ptr<DesktopFrame> original_frame_; | 65 rtc::scoped_ptr<DesktopFrame> original_frame_; |
66 | 66 |
67 DesktopVector restore_position_; | 67 DesktopVector restore_position_; |
68 rtc::scoped_ptr<DesktopFrame> restore_frame_; | 68 rtc::scoped_ptr<DesktopFrame> restore_frame_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(DesktopFrameWithCursor); | 70 RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrameWithCursor); |
71 }; | 71 }; |
72 | 72 |
73 DesktopFrameWithCursor::DesktopFrameWithCursor(DesktopFrame* frame, | 73 DesktopFrameWithCursor::DesktopFrameWithCursor(DesktopFrame* frame, |
74 const MouseCursor& cursor, | 74 const MouseCursor& cursor, |
75 const DesktopVector& position) | 75 const DesktopVector& position) |
76 : DesktopFrame(frame->size(), frame->stride(), | 76 : DesktopFrame(frame->size(), frame->stride(), |
77 frame->data(), frame->shared_memory()), | 77 frame->data(), frame->shared_memory()), |
78 original_frame_(frame) { | 78 original_frame_(frame) { |
79 set_dpi(frame->dpi()); | 79 set_dpi(frame->dpi()); |
80 set_capture_time_ms(frame->capture_time_ms()); | 80 set_capture_time_ms(frame->capture_time_ms()); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 | 166 |
167 void DesktopAndCursorComposer::OnMouseCursorPosition( | 167 void DesktopAndCursorComposer::OnMouseCursorPosition( |
168 MouseCursorMonitor::CursorState state, | 168 MouseCursorMonitor::CursorState state, |
169 const DesktopVector& position) { | 169 const DesktopVector& position) { |
170 cursor_state_ = state; | 170 cursor_state_ = state; |
171 cursor_position_ = position; | 171 cursor_position_ = position; |
172 } | 172 } |
173 | 173 |
174 } // namespace webrtc | 174 } // namespace webrtc |
OLD | NEW |