mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 22:36:09 +03:00
37 lines
794 B
Plaintext
37 lines
794 B
Plaintext
// Copyright 2016 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 ui.mojom;
|
|
|
|
import "ui/gfx/geometry/mojo/geometry.mojom";
|
|
|
|
// Corresponds to ui::InputDeviceType
|
|
enum InputDeviceType {
|
|
INPUT_DEVICE_INTERNAL,
|
|
INPUT_DEVICE_EXTERNAL,
|
|
INPUT_DEVICE_UNKNOWN,
|
|
};
|
|
|
|
// Corresponds to ui::InputDevice.
|
|
struct InputDevice {
|
|
int32 id;
|
|
InputDeviceType type;
|
|
string name;
|
|
bool enabled;
|
|
string sys_path;
|
|
uint16 vendor_id;
|
|
uint16 product_id;
|
|
};
|
|
|
|
// Corresponds to ui::StylusState.
|
|
enum StylusState { REMOVED, INSERTED };
|
|
|
|
// Corresponds to ui::TouchscreenDevice.
|
|
struct TouchscreenDevice {
|
|
// Base class.
|
|
InputDevice input_device;
|
|
|
|
gfx.mojom.Size size;
|
|
int32 touch_points;
|
|
}; |