| 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_input_injector.h" | 5 #include "remoting/host/ipc_input_injector.h" |
| 6 | 6 |
| 7 #include <utility> |
| 8 |
| 7 #include "remoting/host/desktop_session_proxy.h" | 9 #include "remoting/host/desktop_session_proxy.h" |
| 8 | 10 |
| 9 namespace remoting { | 11 namespace remoting { |
| 10 | 12 |
| 11 IpcInputInjector::IpcInputInjector( | 13 IpcInputInjector::IpcInputInjector( |
| 12 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) | 14 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) |
| 13 : desktop_session_proxy_(desktop_session_proxy) { | 15 : desktop_session_proxy_(desktop_session_proxy) { |
| 14 } | 16 } |
| 15 | 17 |
| 16 IpcInputInjector::~IpcInputInjector() { | 18 IpcInputInjector::~IpcInputInjector() { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 void IpcInputInjector::InjectMouseEvent(const protocol::MouseEvent& event) { | 34 void IpcInputInjector::InjectMouseEvent(const protocol::MouseEvent& event) { |
| 33 desktop_session_proxy_->InjectMouseEvent(event); | 35 desktop_session_proxy_->InjectMouseEvent(event); |
| 34 } | 36 } |
| 35 | 37 |
| 36 void IpcInputInjector::InjectTouchEvent(const protocol::TouchEvent& event) { | 38 void IpcInputInjector::InjectTouchEvent(const protocol::TouchEvent& event) { |
| 37 desktop_session_proxy_->InjectTouchEvent(event); | 39 desktop_session_proxy_->InjectTouchEvent(event); |
| 38 } | 40 } |
| 39 | 41 |
| 40 void IpcInputInjector::Start( | 42 void IpcInputInjector::Start( |
| 41 scoped_ptr<protocol::ClipboardStub> client_clipboard) { | 43 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
| 42 desktop_session_proxy_->StartInputInjector(client_clipboard.Pass()); | 44 desktop_session_proxy_->StartInputInjector(std::move(client_clipboard)); |
| 43 } | 45 } |
| 44 | 46 |
| 45 } // namespace remoting | 47 } // namespace remoting |
| OLD | NEW |