blob: 6e0854e1e3e9a00692ec0d0a99d3a0b4337ad4a9 [file] [log] [blame]
nicholss1e49b6182017-05-22 20:30:471// 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
11namespace remoting {
12
13// This is an interface used by key input strategies to send processed key
14// events to the client side input injector.
15class 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_