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