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

Side by Side Diff: device/hid/hid_device_info.h

Issue 225513005: chrome.hid : enrich device info with Top-Level collections usages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HidUsageAndPage::Page 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 unified diff | Download patch
« no previous file with comments | « device/hid/hid_connection_linux.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_HID_HID_DEVICE_INFO_H_ 5 #ifndef DEVICE_HID_HID_DEVICE_INFO_H_
6 #define DEVICE_HID_HID_DEVICE_INFO_H_ 6 #define DEVICE_HID_HID_DEVICE_INFO_H_
7 7
8 #include <stdint.h>
9
10 #include <string> 8 #include <string>
9 #include <vector>
11 10
12 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "device/hid/hid_usage_and_page.h"
13 13
14 #if defined(OS_MACOSX) 14 #if defined(OS_MACOSX)
15 #include <IOKit/hid/IOHIDDevice.h> 15 #include <IOKit/hid/IOHIDDevice.h>
16 #endif 16 #endif
17 17
18 namespace device { 18 namespace device {
19 19
20 enum HidBusType { 20 enum HidBusType {
21 kHIDBusTypeUSB = 0, 21 kHIDBusTypeUSB = 0,
22 kHIDBusTypeBluetooth = 1, 22 kHIDBusTypeBluetooth = 1,
(...skipping 13 matching lines...) Expand all
36 36
37 HidDeviceId device_id; 37 HidDeviceId device_id;
38 38
39 HidBusType bus_type; 39 HidBusType bus_type;
40 uint16_t vendor_id; 40 uint16_t vendor_id;
41 uint16_t product_id; 41 uint16_t product_id;
42 42
43 int input_report_size; 43 int input_report_size;
44 int output_report_size; 44 int output_report_size;
45 int feature_report_size; 45 int feature_report_size;
46 46 std::vector<HidUsageAndPage> usages;
47 uint16_t usage_page;
48 uint16_t usage;
49 bool has_report_id; 47 bool has_report_id;
50 48
51 std::string product_name; 49 std::string product_name;
52 std::string serial_number; 50 std::string serial_number;
53 }; 51 };
54 52
55 } // namespace device 53 } // namespace device
56 54
57 #endif // DEVICE_HID_HID_DEVICE_INFO_H_ 55 #endif // DEVICE_HID_HID_DEVICE_INFO_H_
OLDNEW
« no previous file with comments | « device/hid/hid_connection_linux.cc ('k') | device/hid/hid_device_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698