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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBDevice.h

Issue 1963183003: WebUSB: Remove guid property from USBDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update webexposed. Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 USBDevice_h 5 #ifndef USBDevice_h
6 #define USBDevice_h 6 #define USBDevice_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 explicit USBDevice(device::usb::blink::DeviceInfoPtr, device::usb::blink::De vicePtr, ExecutionContext*); 36 explicit USBDevice(device::usb::blink::DeviceInfoPtr, device::usb::blink::De vicePtr, ExecutionContext*);
37 virtual ~USBDevice(); 37 virtual ~USBDevice();
38 38
39 const device::usb::blink::DeviceInfo& info() const { return *m_deviceInfo; } 39 const device::usb::blink::DeviceInfo& info() const { return *m_deviceInfo; }
40 bool isInterfaceClaimed(size_t configurationIndex, size_t interfaceIndex) co nst; 40 bool isInterfaceClaimed(size_t configurationIndex, size_t interfaceIndex) co nst;
41 size_t selectedAlternateInterface(size_t interfaceIndex) const; 41 size_t selectedAlternateInterface(size_t interfaceIndex) const;
42 42
43 // USBDevice.idl 43 // USBDevice.idl
44 String guid() const { return info().guid; }
45 uint8_t usbVersionMajor() const { return info().usb_version_major; } 44 uint8_t usbVersionMajor() const { return info().usb_version_major; }
46 uint8_t usbVersionMinor() const { return info().usb_version_minor; } 45 uint8_t usbVersionMinor() const { return info().usb_version_minor; }
47 uint8_t usbVersionSubminor() const { return info().usb_version_subminor; } 46 uint8_t usbVersionSubminor() const { return info().usb_version_subminor; }
48 uint8_t deviceClass() const { return info().class_code; } 47 uint8_t deviceClass() const { return info().class_code; }
49 uint8_t deviceSubclass() const { return info().subclass_code; } 48 uint8_t deviceSubclass() const { return info().subclass_code; }
50 uint8_t deviceProtocol() const { return info().protocol_code; } 49 uint8_t deviceProtocol() const { return info().protocol_code; }
51 uint16_t vendorId() const { return info().vendor_id; } 50 uint16_t vendorId() const { return info().vendor_id; }
52 uint16_t productId() const { return info().product_id; } 51 uint16_t productId() const { return info().product_id; }
53 uint8_t deviceVersionMajor() const { return info().device_version_major; } 52 uint8_t deviceVersionMajor() const { return info().device_version_major; }
54 uint8_t deviceVersionMinor() const { return info().device_version_minor; } 53 uint8_t deviceVersionMinor() const { return info().device_version_minor; }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 WTF::BitVector m_claimedInterfaces; 122 WTF::BitVector m_claimedInterfaces;
124 WTF::BitVector m_interfaceStateChangeInProgress; 123 WTF::BitVector m_interfaceStateChangeInProgress;
125 WTF::Vector<size_t> m_selectedAlternates; 124 WTF::Vector<size_t> m_selectedAlternates;
126 WTF::BitVector m_inEndpoints; 125 WTF::BitVector m_inEndpoints;
127 WTF::BitVector m_outEndpoints; 126 WTF::BitVector m_outEndpoints;
128 }; 127 };
129 128
130 } // namespace blink 129 } // namespace blink
131 130
132 #endif // USBDevice_h 131 #endif // USBDevice_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBDevice.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698