OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 "base/logging.h" | |
6 #include "base/memory/ptr_util.h" | |
7 #include "remoting/host/input_injector.h" | |
8 | |
9 namespace remoting { | |
10 | |
11 namespace { | |
12 | |
13 class InputInjectorAndroid : public InputInjector { | |
14 public: | |
15 InputInjectorAndroid() {} | |
16 | |
17 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override { | |
18 NOTIMPLEMENTED(); | |
19 } | |
20 | |
21 void InjectKeyEvent(const protocol::KeyEvent& event) override { | |
22 NOTIMPLEMENTED(); | |
23 } | |
24 | |
25 void InjectTextEvent(const protocol::TextEvent& event) override { | |
26 NOTIMPLEMENTED(); | |
27 } | |
28 | |
29 void InjectMouseEvent(const protocol::MouseEvent& event) override { | |
30 NOTIMPLEMENTED(); | |
31 } | |
32 | |
33 void InjectTouchEvent(const protocol::TouchEvent& event) override { | |
34 NOTIMPLEMENTED(); | |
35 } | |
36 | |
37 void Start( | |
38 std::unique_ptr<protocol::ClipboardStub> client_clipboard) override {} | |
39 | |
40 private: | |
41 DISALLOW_COPY_AND_ASSIGN(InputInjectorAndroid); | |
42 }; | |
43 | |
44 } // namespace | |
45 | |
46 // static | |
47 std::unique_ptr<InputInjector> InputInjector::Create( | |
48 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | |
49 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | |
50 return base::WrapUnique(new InputInjectorAndroid()); | |
51 } | |
52 | |
53 // static | |
54 bool InputInjector::SupportsTouchEvents() { | |
55 return false; | |
56 } | |
57 | |
58 } // namespace remoting | |
OLD | NEW |