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/macros.h" |
8 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
9 #include "remoting/host/input_injector.h" | 10 #include "remoting/host/input_injector.h" |
10 | 11 |
11 namespace remoting { | 12 namespace remoting { |
12 | 13 |
13 // InputInjector implementation that translates input to ui::Events and passes | 14 // InputInjector implementation that translates input to ui::Events and passes |
14 // them to a supplied delegate for injection into ChromeOS. | 15 // them to a supplied delegate for injection into ChromeOS. |
15 class InputInjectorChromeos : public InputInjector { | 16 class InputInjectorChromeos : public InputInjector { |
16 public: | 17 public: |
17 explicit InputInjectorChromeos( | 18 explicit InputInjectorChromeos( |
(...skipping 19 matching lines...) Expand all Loading... |
37 // Task runner for input injection. | 38 // Task runner for input injection. |
38 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 39 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
39 scoped_ptr<Core> core_; | 40 scoped_ptr<Core> core_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos); | 42 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace remoting | 45 } // namespace remoting |
45 | 46 |
46 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ | 47 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ |
OLD | NEW |