OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_H_ | 5 #ifndef REMOTING_HOST_INPUT_INJECTOR_H_ |
6 #define REMOTING_HOST_INPUT_INJECTOR_H_ | 6 #define REMOTING_HOST_INPUT_INJECTOR_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "remoting/protocol/clipboard_stub.h" | 10 #include "remoting/protocol/clipboard_stub.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 // object should do as much work as possible on |main_task_runner|, | 24 // object should do as much work as possible on |main_task_runner|, |
25 // using |ui_task_runner| only for tasks actually requiring a UI | 25 // using |ui_task_runner| only for tasks actually requiring a UI |
26 // thread. | 26 // thread. |
27 static scoped_ptr<InputInjector> Create( | 27 static scoped_ptr<InputInjector> Create( |
28 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 28 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
30 | 30 |
31 // Initialises any objects needed to execute events. | 31 // Initialises any objects needed to execute events. |
32 virtual void Start( | 32 virtual void Start( |
33 scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0; | 33 scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0; |
34 | |
35 virtual bool CanInjectTouch() = 0; | |
Wez
2015/04/09 22:58:59
Add a comment e.g. "Returns true iff the InputInje
Rintaro Kuroiwa
2015/04/20 18:20:03
Done.
| |
36 | |
37 protected: | |
38 // Most implementations of CanInjectTouch() will call this. | |
39 static bool DefaultCanInjectTouch(); | |
Wez
2015/04/09 22:58:59
If "most" implementations will call this then why
Rintaro Kuroiwa
2015/04/20 18:20:03
Removed.
| |
34 }; | 40 }; |
35 | 41 |
36 } // namespace remoting | 42 } // namespace remoting |
37 | 43 |
38 #endif // REMOTING_HOST_INPUT_INJECTOR_H_ | 44 #endif // REMOTING_HOST_INPUT_INJECTOR_H_ |
OLD | NEW |