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

Side by Side Diff: ui/events/devices/input_device.h

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Updated version 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_EVENTS_DEVICES_INPUT_DEVICE_H_ 5 #ifndef UI_EVENTS_DEVICES_INPUT_DEVICE_H_
6 #define UI_EVENTS_DEVICES_INPUT_DEVICE_H_ 6 #define UI_EVENTS_DEVICES_INPUT_DEVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // ID of the device. This ID is unique between all input devices. 39 // ID of the device. This ID is unique between all input devices.
40 int id; 40 int id;
41 41
42 // The type of the input device. 42 // The type of the input device.
43 InputDeviceType type; 43 InputDeviceType type;
44 44
45 // Name of the device. 45 // Name of the device.
46 std::string name; 46 std::string name;
47 47
48 // If the device is enabled, and whether events should be dispatched to UI.
49 bool enabled = false;
50
sadrul 2017/05/17 15:32:17 Can you please also update InputDevice mojom in ui
48 // The path to the input device in the sysfs filesystem. 51 // The path to the input device in the sysfs filesystem.
49 base::FilePath sys_path; 52 base::FilePath sys_path;
50 53
51 // USB-style device identifiers, where available, or 0 if unavailable. 54 // USB-style device identifiers, where available, or 0 if unavailable.
52 uint16_t vendor_id; 55 uint16_t vendor_id;
53 uint16_t product_id; 56 uint16_t product_id;
54 }; 57 };
55 58
56 } // namespace ui 59 } // namespace ui
57 60
58 #endif // UI_EVENTS_DEVICES_INPUT_DEVICE_H_ 61 #endif // UI_EVENTS_DEVICES_INPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698