| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "remoting/host/ipc_event_executor.h" | |
| 6 | |
| 7 #include "remoting/host/desktop_session_proxy.h" | |
| 8 | |
| 9 namespace remoting { | |
| 10 | |
| 11 IpcEventExecutor::IpcEventExecutor( | |
| 12 scoped_refptr<DesktopSessionProxy> desktop_session_proxy) | |
| 13 : desktop_session_proxy_(desktop_session_proxy) { | |
| 14 } | |
| 15 | |
| 16 IpcEventExecutor::~IpcEventExecutor() { | |
| 17 } | |
| 18 | |
| 19 void IpcEventExecutor::InjectClipboardEvent( | |
| 20 const protocol::ClipboardEvent& event) { | |
| 21 desktop_session_proxy_->InjectClipboardEvent(event); | |
| 22 } | |
| 23 | |
| 24 void IpcEventExecutor::InjectKeyEvent(const protocol::KeyEvent& event) { | |
| 25 desktop_session_proxy_->InjectKeyEvent(event); | |
| 26 } | |
| 27 | |
| 28 void IpcEventExecutor::InjectMouseEvent(const protocol::MouseEvent& event) { | |
| 29 desktop_session_proxy_->InjectMouseEvent(event); | |
| 30 } | |
| 31 | |
| 32 void IpcEventExecutor::Start( | |
| 33 scoped_ptr<protocol::ClipboardStub> client_clipboard) { | |
| 34 desktop_session_proxy_->StartEventExecutor(client_clipboard.Pass()); | |
| 35 } | |
| 36 | |
| 37 } // namespace remoting | |
| OLD | NEW |