Index: ui/events/keyboard_device.h |
diff --git a/ui/events/keyboard_device.h b/ui/events/keyboard_device.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6286e2566c978493976ac730b214f4e58c26fea6 |
--- /dev/null |
+++ b/ui/events/keyboard_device.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2014 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. |
+ |
+#ifndef UI_EVENTS_KEYBOARD_DEVICE_H_ |
+#define UI_EVENTS_KEYBOARD_DEVICE_H_ |
+ |
+#include "ui/events/events_base_export.h" |
+ |
+namespace ui { |
+ |
+enum KeyboardDeviceType { |
flackr
2014/10/02 15:41:10
Document what these types mean.
rsadam
2014/10/02 15:50:05
Done.
|
+ INTERNAL, |
+ TEST, |
sadrul
2014/10/02 15:53:53
I don't think we should have this.
rsadam
2014/10/02 22:52:27
Done.
|
+ EXTERNAL, |
+ 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.
|
+}; |
+ |
+// Represents a Keyboard device state. |
+struct EVENTS_BASE_EXPORT KeyboardDevice { |
+ KeyboardDevice(int id, KeyboardDeviceType type); |
+ |
+ // ID of the device. This ID must uniquely identify the keyboard device. |
+ int id; |
+ |
+ // The type of the keyboard device. |
+ 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.
|
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_EVENTS_KEYBOARD_DEVICE_H_ |