Index: third_party/WebKit/Source/modules/webusb/USBEndpoint.h |
diff --git a/third_party/WebKit/Source/modules/webusb/USBEndpoint.h b/third_party/WebKit/Source/modules/webusb/USBEndpoint.h |
index fac5098d9fa589dc1676973d4106e5dfb837aa6a..b9b31e7abe4128635279757b46c2aa309e89cd2e 100644 |
--- a/third_party/WebKit/Source/modules/webusb/USBEndpoint.h |
+++ b/third_party/WebKit/Source/modules/webusb/USBEndpoint.h |
@@ -6,8 +6,8 @@ |
#define USBEndpoint_h |
#include "bindings/core/v8/ScriptWrappable.h" |
+#include "device/usb/public/interfaces/device.mojom-wtf.h" |
#include "platform/heap/Heap.h" |
-#include "public/platform/modules/webusb/WebUSBDeviceInfo.h" |
namespace blink { |
@@ -24,12 +24,12 @@ public: |
USBEndpoint(const USBAlternateInterface*, size_t endpointIndex); |
- const WebUSBDeviceInfo::Endpoint& info() const; |
+ const device::usb::wtf::EndpointInfo& info() const; |
- uint8_t endpointNumber() const; |
+ uint8_t endpointNumber() const { return info().endpoint_number; } |
String direction() const; |
String type() const; |
- unsigned packetSize() const; |
+ unsigned packetSize() const { return info().packet_size; } |
DECLARE_TRACE(); |