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

Unified Diff: ui/events/keyboard_device.h

Issue 618283003: Adds special support to the device manager for keyboards devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698