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

Side by Side Diff: remoting/host/ipc_mouse_cursor_monitor.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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
« no previous file with comments | « remoting/host/ipc_mouse_cursor_monitor.h ('k') | remoting/host/ipc_util.h » ('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 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 #include "remoting/host/ipc_mouse_cursor_monitor.h" 5 #include "remoting/host/ipc_mouse_cursor_monitor.h"
6 6
7 #include "remoting/host/desktop_session_proxy.h" 7 #include "remoting/host/desktop_session_proxy.h"
8 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" 8 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h"
9 9
10 namespace remoting { 10 namespace remoting {
(...skipping 15 matching lines...) Expand all
26 desktop_session_proxy_->SetMouseCursorMonitor(weak_factory_.GetWeakPtr()); 26 desktop_session_proxy_->SetMouseCursorMonitor(weak_factory_.GetWeakPtr());
27 } 27 }
28 28
29 void IpcMouseCursorMonitor::Capture() { 29 void IpcMouseCursorMonitor::Capture() {
30 // Ignore. DesktopSessionAgent will capture the cursor at the same time it 30 // Ignore. DesktopSessionAgent will capture the cursor at the same time it
31 // captures a screen frame when |IpcVideoFrameCapturer::Capture()| is called. 31 // captures a screen frame when |IpcVideoFrameCapturer::Capture()| is called.
32 // This saves an IPC roundtrip. 32 // This saves an IPC roundtrip.
33 } 33 }
34 34
35 void IpcMouseCursorMonitor::OnMouseCursor( 35 void IpcMouseCursorMonitor::OnMouseCursor(
36 scoped_ptr<webrtc::MouseCursor> cursor) { 36 std::unique_ptr<webrtc::MouseCursor> cursor) {
37 DCHECK(callback_); 37 DCHECK(callback_);
38 callback_->OnMouseCursor(cursor.release()); 38 callback_->OnMouseCursor(cursor.release());
39 } 39 }
40 40
41 } // namespace remoting 41 } // namespace remoting
42 42
OLDNEW
« no previous file with comments | « remoting/host/ipc_mouse_cursor_monitor.h ('k') | remoting/host/ipc_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698