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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBEndpoint.h

Issue 1850023002: Consume Mojo services directly in Blink's WebUSB implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't do assignments in if statements. Created 4 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 side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698