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

Side by Side Diff: device/usb/usb_descriptors.cc

Issue 567003002: Revert of Convert device::UsbConfigDescriptor and friends to structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/usb/usb_descriptors.h ('k') | device/usb/usb_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "device/usb/usb_descriptors.h"
6
7 namespace device {
8
9 UsbEndpointDescriptor::UsbEndpointDescriptor()
10 : address(0),
11 direction(USB_DIRECTION_INBOUND),
12 maximum_packet_size(0),
13 synchronization_type(USB_SYNCHRONIZATION_NONE),
14 transfer_type(USB_TRANSFER_CONTROL),
15 usage_type(USB_USAGE_DATA),
16 polling_interval(0) {
17 }
18
19 UsbEndpointDescriptor::~UsbEndpointDescriptor() {
20 }
21
22 UsbInterfaceDescriptor::UsbInterfaceDescriptor()
23 : interface_number(0),
24 alternate_setting(0),
25 interface_class(0),
26 interface_subclass(0),
27 interface_protocol(0) {
28 }
29
30 UsbInterfaceDescriptor::~UsbInterfaceDescriptor() {
31 }
32
33 UsbConfigDescriptor::UsbConfigDescriptor()
34 : configuration_value(0),
35 self_powered(false),
36 remote_wakeup(false),
37 maximum_power(0) {
38 }
39
40 UsbConfigDescriptor::~UsbConfigDescriptor() {
41 }
42
43 } // namespace device
OLDNEW
« no previous file with comments | « device/usb/usb_descriptors.h ('k') | device/usb/usb_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698