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

Unified Diff: device/hid/hid_device_info.h

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 5 years 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 | « device/hid/hid_device_filter_unittest.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_device_info.h
diff --git a/device/hid/hid_device_info.h b/device/hid/hid_device_info.h
index bc89832229c24827c3abac05ff5783f645fd32f2..15a957dd82d4dfd789cf5535174148692db100a7 100644
--- a/device/hid/hid_device_info.h
+++ b/device/hid/hid_device_info.h
@@ -5,9 +5,13 @@
#ifndef DEVICE_HID_HID_DEVICE_INFO_H_
#define DEVICE_HID_HID_DEVICE_INFO_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "build/build_config.h"
#include "device/hid/hid_collection_info.h"
@@ -35,7 +39,7 @@ class HidDeviceInfo : public base::RefCountedThreadSafe<HidDeviceInfo> {
const std::string& product_name,
const std::string& serial_number,
HidBusType bus_type,
- const std::vector<uint8> report_descriptor);
+ const std::vector<uint8_t> report_descriptor);
HidDeviceInfo(const HidDeviceId& device_id,
uint16_t vendor_id,
@@ -66,7 +70,7 @@ class HidDeviceInfo : public base::RefCountedThreadSafe<HidDeviceInfo> {
size_t max_feature_report_size() const { return max_feature_report_size_; }
// The raw HID report descriptor is not available on Windows.
- const std::vector<uint8>& report_descriptor() const {
+ const std::vector<uint8_t>& report_descriptor() const {
return report_descriptor_;
}
@@ -83,7 +87,7 @@ class HidDeviceInfo : public base::RefCountedThreadSafe<HidDeviceInfo> {
std::string product_name_;
std::string serial_number_;
HidBusType bus_type_;
- std::vector<uint8> report_descriptor_;
+ std::vector<uint8_t> report_descriptor_;
// Top-Level Collections information.
std::vector<HidCollectionInfo> collections_;
« no previous file with comments | « device/hid/hid_device_filter_unittest.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698