Chromium Code Reviews| 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/input_injector.h" | |
| 6 | |
| 7 namespace remoting { | |
| 8 | |
| 9 namespace { | |
| 10 | |
| 11 using protocol::ClipboardEvent; | |
| 12 using protocol::KeyEvent; | |
| 13 using protocol::TextEvent; | |
| 14 using protocol::MouseEvent; | |
| 15 using protocol::TouchEvent; | |
|
Sergey Ulanov
2016/04/07 00:56:14
nit: Remove these and add add protocol:: below whe
Lambros
2016/04/12 21:58:03
Done.
| |
| 16 | |
| 17 class InputInjectorAndroid : public InputInjector { | |
| 18 public: | |
| 19 InputInjectorAndroid() {} | |
| 20 | |
| 21 void InjectClipboardEvent(const ClipboardEvent& event) override { | |
| 22 NOTIMPLEMENTED(); | |
| 23 } | |
| 24 | |
| 25 void InjectKeyEvent(const KeyEvent& event) override { | |
| 26 NOTIMPLEMENTED(); | |
| 27 } | |
| 28 | |
| 29 void InjectTextEvent(const TextEvent& event) override { | |
| 30 NOTIMPLEMENTED(); | |
| 31 } | |
| 32 | |
| 33 void InjectMouseEvent(const MouseEvent& event) override { | |
| 34 NOTIMPLEMENTED(); | |
| 35 } | |
| 36 | |
| 37 void InjectTouchEvent(const TouchEvent& event) override { | |
| 38 NOTIMPLEMENTED(); | |
| 39 } | |
| 40 | |
| 41 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override {} | |
| 42 | |
| 43 private: | |
| 44 DISALLOW_COPY_AND_ASSIGN(InputInjectorAndroid); | |
| 45 }; | |
| 46 | |
| 47 } // namespace | |
| 48 | |
| 49 // static | |
| 50 scoped_ptr<InputInjector> InputInjector::Create( | |
| 51 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | |
| 52 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { | |
| 53 return make_scoped_ptr(new InputInjectorAndroid()); | |
| 54 } | |
| 55 | |
| 56 // static | |
| 57 bool InputInjector::SupportsTouchEvents() { | |
| 58 return false; | |
| 59 } | |
| 60 | |
| 61 } // namespace remoting | |
| OLD | NEW |