commit | 717ca900fb5b45c209b306e4dedf67f27c64eb8c | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@google.com> | Wed Sep 26 22:09:30 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 26 22:09:30 2018 |
tree | a1d0c882aece2fc1b4ec416428cd07afe8e296a3 | |
parent | 6f5978f29f4558a212246d53757b518e3acde7d4 [diff] |
Use uint16_t integer types for device IDs and HID usages Vendor and product IDs are 16-bit values used to identify USB and Bluetooth devices. Depending on the platform, they may be reported as integers or strings. This CL modifies all places in Gamepad where device IDs are stored as strings or signed integers to instead store them in a minimum-width integer unsigned type (uint16_t). Similarly, HID usage pages and usage numbers are defined to be 16-bit values. The constants holding these values are changed to uint16_t. In a future CL, Gamepad device ID and HID constants will be pulled out of the platform-specific data fetcher implementations and placed in a common header. BUG=786250 Change-Id: I30a0841db91008802331939a86a7b6c3c5f58586 Reviewed-on: https://chromium-review.googlesource.com/1102099 Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org> Cr-Commit-Position: refs/heads/master@{#594495}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .