Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: remoting/client/input/client_input_injector.h

Issue 2868383003: [CRD iOS] Send key events to the session. (Closed)
Patch Set: Update based on feedback. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/client/input/BUILD.gn ('k') | remoting/client/input/keyboard_input_strategy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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 #ifndef REMOTING_CLIENT_INPUT_CLIENT_INPUT_INJECTOR_H_
6 #define REMOTING_CLIENT_INPUT_CLIENT_INPUT_INJECTOR_H_
7
8 #include <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_
OLDNEW
« no previous file with comments | « remoting/client/input/BUILD.gn ('k') | remoting/client/input/keyboard_input_strategy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698