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

Side by Side Diff: ui/events/input_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: Change in ozone. 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_INPUT_DEVICE_H_
6 #define UI_EVENTS_INPUT_DEVICE_H_
7
8 #include <string>
9
10 #include "ui/events/events_base_export.h"
11
12 namespace ui {
13
14 enum InputDeviceType {
15 INTERNAL, // Internal device.
16 EXTERNAL, // Known external device.
17 UNKNOWN, // Device that may or may not be an external device.
18 };
19
20 // Represents a Keyboard device state.
flackr 2014/10/06 18:31:11 nit: this is the base class, not a keyboard specif
rsadam 2014/10/21 16:53:52 Done.
21 struct EVENTS_BASE_EXPORT InputDevice {
22 static const int kInvalidId;
23
24 InputDevice(int id, InputDeviceType type, const std::string& name);
25
26 // ID of the device. This ID must uniquely identify the input device.
27 int id;
28
29 // The type of the input device.
30 InputDeviceType type;
31
32 // Name of the device.
33 std::string name;
34 };
35
36 } // namespace ui
37
38 #endif // UI_EVENTS_INPUT_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698