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

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

Issue 1071193002: Change device IDs from unsigned to signed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: check for negative IDs 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 | « ui/events/devices/device_data_manager.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 70ae1924007306044af33db0ebb4c624ef171068..ee493eadea15044abfc768e4857e7acc1e5ed5d0 100644
--- a/ui/events/devices/input_device.h
+++ b/ui/events/devices/input_device.h
@@ -19,16 +19,16 @@ enum InputDeviceType {
// Represents an input device state.
struct EVENTS_DEVICES_EXPORT InputDevice {
- static const unsigned int kInvalidId;
+ static const int kInvalidId;
// Creates an invalid input device.
InputDevice();
- InputDevice(unsigned int id, InputDeviceType type);
+ InputDevice(int id, InputDeviceType type);
virtual ~InputDevice();
// ID of the device. This ID is unique between all input devices.
- unsigned int id;
+ int id;
// The type of the input device.
InputDeviceType type;
« no previous file with comments | « ui/events/devices/device_data_manager.cc ('k') | ui/events/devices/input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698