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

Side by Side Diff: ui/events/devices/mojo/input_devices.mojom

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Patch for landing, added the mojo bits 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module ui.mojom; 5 module ui.mojom;
6 6
7 import "ui/gfx/geometry/mojo/geometry.mojom"; 7 import "ui/gfx/geometry/mojo/geometry.mojom";
8 8
9 // Corresponds to ui::InputDeviceType 9 // Corresponds to ui::InputDeviceType
10 enum InputDeviceType { 10 enum InputDeviceType {
11 INPUT_DEVICE_INTERNAL, 11 INPUT_DEVICE_INTERNAL,
12 INPUT_DEVICE_EXTERNAL, 12 INPUT_DEVICE_EXTERNAL,
13 INPUT_DEVICE_UNKNOWN, 13 INPUT_DEVICE_UNKNOWN,
14 }; 14 };
15 15
16 // Corresponds to ui::InputDevice. 16 // Corresponds to ui::InputDevice.
17 struct InputDevice { 17 struct InputDevice {
18 int32 id; 18 int32 id;
19 InputDeviceType type; 19 InputDeviceType type;
20 string name; 20 string name;
21 bool enabled;
21 string sys_path; 22 string sys_path;
22 uint16 vendor_id; 23 uint16 vendor_id;
23 uint16 product_id; 24 uint16 product_id;
24 }; 25 };
25 26
26 // Corresponds to ui::StylusState. 27 // Corresponds to ui::StylusState.
27 enum StylusState { REMOVED, INSERTED }; 28 enum StylusState { REMOVED, INSERTED };
28 29
29 // Corresponds to ui::TouchscreenDevice. 30 // Corresponds to ui::TouchscreenDevice.
30 struct TouchscreenDevice { 31 struct TouchscreenDevice {
31 // Base class. 32 // Base class.
32 InputDevice input_device; 33 InputDevice input_device;
33 34
34 gfx.mojom.Size size; 35 gfx.mojom.Size size;
35 int32 touch_points; 36 int32 touch_points;
36 }; 37 };
OLDNEW
« no previous file with comments | « ui/events/devices/mojo/input_device_struct_traits.h ('k') | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698