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

Unified Diff: chrome/common/extensions/api/experimental_usb.idl

Issue 10561021: Change the USB extension API to use ArrayBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « chrome/browser/extensions/api/usb/usb_device_resource.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental_usb.idl
diff --git a/chrome/common/extensions/api/experimental_usb.idl b/chrome/common/extensions/api/experimental_usb.idl
index 55affc30a0d0388444ddda11c70e5177b67fc84a..e0a765d3737a017985e1b46aec41aa44c7830636 100644
--- a/chrome/common/extensions/api/experimental_usb.idl
+++ b/chrome/common/extensions/api/experimental_usb.idl
@@ -42,7 +42,7 @@
// The data payload carried by this transfer. If this is an output tranfer
// then this field must be set.
- long[]? data;
+ ArrayBuffer? data;
};
// GenericTransferInfo is used by both bulk and interrupt transfers to
@@ -59,7 +59,7 @@
// If this is an output transfer then this field must be populated.
// Otherwise, it will be ignored.
- long[]? data;
+ ArrayBuffer? data;
};
// IsochronousTransferInfo describes a single multi-packet isochronous
@@ -92,7 +92,7 @@
// If the transfer was an input transfer then this field will contain all
// of the input data requested.
- long[]? data;
+ ArrayBuffer? data;
// The following fields are used for internal event routing and can be
// ignored.
@@ -103,10 +103,6 @@
callback OnEventCallback = void (UsbEvent event);
dictionary DeviceOptions {
- // The schema generator does not support dictionaries with only events.
- // Ignore this field.
- [nodoc] long? dummyValue;
-
// Invoked by the extension API whenever an event occurs for the device(s)
// that this DeviceOptions is associated with.
OnEventCallback? onEvent;
« no previous file with comments | « chrome/browser/extensions/api/usb/usb_device_resource.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698