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
3 // found in the LICENSE file.
5 #include "remoting/host/input_injector_chromeos.h"
7 #include "base/logging.h"
8 #include "remoting/proto/internal.pb.h"
12 using protocol::ClipboardEvent
;
13 using protocol::KeyEvent
;
14 using protocol::MouseEvent
;
15 using protocol::TextEvent
;
17 // TODO(kelvinp): Implement this class (See crbug.com/426716).
18 InputInjectorChromeos::InputInjectorChromeos(
19 scoped_refptr
<base::SingleThreadTaskRunner
> task_runner
)
20 : input_task_runner_(task_runner
) {
24 InputInjectorChromeos::~InputInjectorChromeos() {
28 void InputInjectorChromeos::InjectClipboardEvent(const ClipboardEvent
& event
) {
32 void InputInjectorChromeos::InjectKeyEvent(const KeyEvent
& event
) {
36 void InputInjectorChromeos::InjectTextEvent(const TextEvent
& event
) {
40 void InputInjectorChromeos::InjectMouseEvent(const MouseEvent
& event
) {
44 void InputInjectorChromeos::Start(
45 scoped_ptr
<protocol::ClipboardStub
> client_clipboard
) {
50 scoped_ptr
<InputInjector
> InputInjector::Create(
51 scoped_refptr
<base::SingleThreadTaskRunner
> input_task_runner
,
52 scoped_refptr
<base::SingleThreadTaskRunner
> ui_task_runner
) {
53 scoped_ptr
<InputInjectorChromeos
> injector(new InputInjectorChromeos(
55 return injector
.Pass();
58 } // namespace remoting