naiveproxy/device/hid/public/interfaces/input_service.mojom

39 lines
822 B
Plaintext
Raw Normal View History

2018-01-28 19:30:36 +03:00
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module device.mojom;
// This input_service.mojom defines structs and interfaces for providing
// information and notifiations about connected/disconnected input/HID
// devices.
enum InputDeviceSubsystem {
SUBSYSTEM_HID = 0,
SUBSYSTEM_INPUT = 1,
SUBSYSTEM_UNKNOWN = 2,
};
enum InputDeviceType {
TYPE_BLUETOOTH = 0,
TYPE_USB = 1,
TYPE_SERIO = 2,
TYPE_UNKNOWN = 3,
};
struct InputDeviceInfo {
string id;
string name;
InputDeviceSubsystem subsystem;
InputDeviceType type;
bool is_accelerometer;
bool is_joystick;
bool is_key;
bool is_keyboard;
bool is_mouse;
bool is_tablet;
bool is_touchpad;
bool is_touchscreen;
};