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

Unified Diff: Source/modules/webusb/USB.h

Issue 1288793003: WebUSB: Create a requestDevice method separate from getDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update stale reference in modules.gypi. Created 5 years, 4 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webusb/USB.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webusb/USB.h
diff --git a/Source/modules/webusb/USB.h b/Source/modules/webusb/USB.h
index 0f5010b36b82e19c809aeb90af0fe1d483d5e1c3..7a5cb00d5dd4885fb0535cd063b8dd609fb02be5 100644
--- a/Source/modules/webusb/USB.h
+++ b/Source/modules/webusb/USB.h
@@ -14,7 +14,7 @@ namespace blink {
class LocalFrame;
class ScriptState;
-class USBDeviceEnumerationOptions;
+class USBDeviceRequestOptions;
class USB final
: public GarbageCollectedFinalized<USB>
@@ -28,7 +28,8 @@ public:
explicit USB(LocalFrame& frame);
- ScriptPromise getDevices(ScriptState*, const USBDeviceEnumerationOptions&);
+ ScriptPromise getDevices(ScriptState*);
+ ScriptPromise requestDevice(ScriptState*, const USBDeviceRequestOptions&);
DECLARE_VIRTUAL_TRACE();
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webusb/USB.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698