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

Unified Diff: device/hid/input_service_linux.h

Issue 240583006: Added device types (bluetooth, usb, serio) to InputDeviceInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, slightly modified tests. Created 6 years, 8 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: device/hid/input_service_linux.h
diff --git a/device/hid/input_service_linux.h b/device/hid/input_service_linux.h
index edd957b485163ad51998396737cc8257ad613f64..dc43dba9bc27be9a1ed08926954b67be695a6496 100644
--- a/device/hid/input_service_linux.h
+++ b/device/hid/input_service_linux.h
@@ -26,12 +26,14 @@ class InputServiceLinux : public base::MessageLoop::DestructionObserver {
public:
struct InputDeviceInfo {
enum Subsystem { SUBSYSTEM_HID, SUBSYSTEM_INPUT, SUBSYSTEM_UNKNOWN };
+ enum Type { TYPE_BLUETOOTH, TYPE_USB, TYPE_SERIO, TYPE_UNKNOWN };
InputDeviceInfo();
std::string id;
std::string name;
Subsystem subsystem;
+ Type type;
bool is_accelerometer : 1;
bool is_joystick : 1;
« no previous file with comments | « chrome/browser/chromeos/device/input_service_proxy_browsertest.cc ('k') | device/hid/input_service_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698