| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ | 5 #ifndef REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ |
| 6 #define REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ | 6 #define REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "remoting/host/input_injector.h" | 9 #include "remoting/host/input_injector.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // InputStub interface. | 25 // InputStub interface. |
| 26 void InjectKeyEvent(const protocol::KeyEvent& event) override; | 26 void InjectKeyEvent(const protocol::KeyEvent& event) override; |
| 27 void InjectTextEvent(const protocol::TextEvent& event) override; | 27 void InjectTextEvent(const protocol::TextEvent& event) override; |
| 28 void InjectMouseEvent(const protocol::MouseEvent& event) override; | 28 void InjectMouseEvent(const protocol::MouseEvent& event) override; |
| 29 | 29 |
| 30 // InputInjector interface. | 30 // InputInjector interface. |
| 31 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; | 31 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 class Core; |
| 35 |
| 34 // Task runner for input injection. | 36 // Task runner for input injection. |
| 35 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 37 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
| 38 scoped_ptr<Core> core_; |
| 36 | 39 |
| 37 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos); | 40 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos); |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 } // namespace remoting | 43 } // namespace remoting |
| 41 | 44 |
| 42 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ | 45 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ |
| OLD | NEW |