summaryrefslogtreecommitdiffstats
path: root/remoting/host/ipc_input_injector.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/ipc_input_injector.cc')
-rw-r--r--remoting/host/ipc_input_injector.cc37
1 files changed, 37 insertions, 0 deletions
diff --git a/remoting/host/ipc_input_injector.cc b/remoting/host/ipc_input_injector.cc
new file mode 100644
index 0000000..7e63a4e
--- /dev/null
+++ b/remoting/host/ipc_input_injector.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/ipc_input_injector.h"
+
+#include "remoting/host/desktop_session_proxy.h"
+
+namespace remoting {
+
+IpcInputInjector::IpcInputInjector(
+ scoped_refptr<DesktopSessionProxy> desktop_session_proxy)
+ : desktop_session_proxy_(desktop_session_proxy) {
+}
+
+IpcInputInjector::~IpcInputInjector() {
+}
+
+void IpcInputInjector::InjectClipboardEvent(
+ const protocol::ClipboardEvent& event) {
+ desktop_session_proxy_->InjectClipboardEvent(event);
+}
+
+void IpcInputInjector::InjectKeyEvent(const protocol::KeyEvent& event) {
+ desktop_session_proxy_->InjectKeyEvent(event);
+}
+
+void IpcInputInjector::InjectMouseEvent(const protocol::MouseEvent& event) {
+ desktop_session_proxy_->InjectMouseEvent(event);
+}
+
+void IpcInputInjector::Start(
+ scoped_ptr<protocol::ClipboardStub> client_clipboard) {
+ desktop_session_proxy_->StartInputInjector(client_clipboard.Pass());
+}
+
+} // namespace remoting