blob: 7e63a4e0bdba71272c76f6d60c4ea757f3c4409f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|