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

Unified Diff: ui/events/devices/input_device.h

Issue 1073573002: Ozone support for device special cases in keyboard event rewriting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix crash (thanks spang) Created 5 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
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter.cc ('k') | ui/events/devices/input_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/input_device.h
diff --git a/ui/events/devices/input_device.h b/ui/events/devices/input_device.h
index ee493eadea15044abfc768e4857e7acc1e5ed5d0..1114dcf906fc77bcbfc8d564aed173b1db47825e 100644
--- a/ui/events/devices/input_device.h
+++ b/ui/events/devices/input_device.h
@@ -5,6 +5,7 @@
#ifndef UI_EVENTS_DEVICES_INPUT_DEVICE_H_
#define UI_EVENTS_DEVICES_INPUT_DEVICE_H_
+#include <stdint.h>
#include <string>
#include "ui/events/devices/events_devices_export.h"
@@ -24,7 +25,12 @@ struct EVENTS_DEVICES_EXPORT InputDevice {
// Creates an invalid input device.
InputDevice();
- InputDevice(int id, InputDeviceType type);
+ InputDevice(int id, InputDeviceType type, const std::string& name);
+ InputDevice(int id,
+ InputDeviceType type,
+ const std::string& name,
+ uint16_t vendor,
+ uint16_t product);
virtual ~InputDevice();
// ID of the device. This ID is unique between all input devices.
@@ -32,6 +38,13 @@ struct EVENTS_DEVICES_EXPORT InputDevice {
// The type of the input device.
InputDeviceType type;
+
+ // Name of the device.
+ std::string name;
+
+ // USB-style device identifiers, where available, or 0 if unavailable.
+ uint16_t vendor_id;
+ uint16_t product_id;
};
} // namespace ui
« no previous file with comments | « chrome/browser/chromeos/events/event_rewriter.cc ('k') | ui/events/devices/input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698