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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698