OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
nicholss
2017/05/17 21:25:54
This file is new.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_CLIENT_INPUT_CLIENT_INPUT_INJECTOR_H_ | |
6 #define REMOTING_CLIENT_INPUT_CLIENT_INPUT_INJECTOR_H_ | |
7 | |
8 #include <stdint.h> | |
Yuwei
2017/05/17 21:32:38
Remove stdint.h?
| |
9 #include <string> | |
10 | |
11 namespace remoting { | |
12 | |
13 // This is an interface used by key input strategies to send processed key | |
14 // events to the client side input injector. | |
15 class ClientInputInjector { | |
16 public: | |
17 virtual ~ClientInputInjector() {} | |
18 | |
19 // Sends the provided keyboard scan code to the host. | |
20 virtual bool SendKeyEvent(int scan_code, int key_code, bool key_down) = 0; | |
21 | |
22 // Send utf8 encoded text to the host. | |
23 virtual void SendTextEvent(const std::string& text) = 0; | |
24 }; | |
25 | |
26 } // namespace remoting | |
27 #endif // REMOTING_CLIENT_INPUT_CLIENT_INPUT_INJECTOR_H_ | |
OLD | NEW |