OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_EVENTS_KEYBOARD_DEVICE_H_ | |
6 #define UI_EVENTS_KEYBOARD_DEVICE_H_ | |
7 | |
8 #include "ui/events/events_base_export.h" | |
9 | |
10 namespace ui { | |
11 | |
12 enum KeyboardDeviceType { | |
flackr
2014/10/02 15:41:10
Document what these types mean.
rsadam
2014/10/02 15:50:05
Done.
| |
13 INTERNAL, | |
14 TEST, | |
sadrul
2014/10/02 15:53:53
I don't think we should have this.
rsadam
2014/10/02 22:52:27
Done.
| |
15 EXTERNAL, | |
16 UNKNOWN, | |
flackr
2014/10/02 15:41:10
Also specifically that a real keyboard may be iden
rsadam
2014/10/02 15:50:05
Done.
| |
17 }; | |
18 | |
19 // Represents a Keyboard device state. | |
20 struct EVENTS_BASE_EXPORT KeyboardDevice { | |
21 KeyboardDevice(int id, KeyboardDeviceType type); | |
22 | |
23 // ID of the device. This ID must uniquely identify the keyboard device. | |
24 int id; | |
25 | |
26 // The type of the keyboard device. | |
27 KeyboardDeviceType type; | |
sadrul
2014/10/02 15:53:53
For TouchscreenDevice, we use a bool |is_internal|
rsadam
2014/10/02 22:52:27
Done.
| |
28 }; | |
29 | |
30 } // namespace ui | |
31 | |
32 #endif // UI_EVENTS_KEYBOARD_DEVICE_H_ | |
OLD | NEW |