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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBInterface.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/USBInterface.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBInterface.h b/third_party/WebKit/Source/modules/webusb/USBInterface.h
index 9a05014cda8e6b3b4bb372374ab0d5cd1f910ece..51be439a8c9c1c08062adb666d8327dc91de33f3 100644
--- a/third_party/WebKit/Source/modules/webusb/USBInterface.h
+++ b/third_party/WebKit/Source/modules/webusb/USBInterface.h
@@ -6,8 +6,8 @@
#define USBInterface_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 {
@@ -26,9 +26,9 @@ public:
USBInterface(const USBDevice*, size_t configurationIndex, size_t interfaceIndex);
- const WebUSBDeviceInfo::Interface& info() const;
+ const device::usb::wtf::InterfaceInfo& info() const;
- uint8_t interfaceNumber() const;
+ uint8_t interfaceNumber() const { return info().interface_number; }
USBAlternateInterface* alternate() const;
HeapVector<Member<USBAlternateInterface>> alternates() const;
bool claimed() const;

Powered by Google App Engine
This is Rietveld 408576698