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

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

Issue 10332148: Convert the Bluetooth API to use ArrayBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 | « no previous file | 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_bluetooth.idl
diff --git a/chrome/common/extensions/api/experimental_bluetooth.idl b/chrome/common/extensions/api/experimental_bluetooth.idl
index 5be7c0f43ea3e4979b71125026dcb5b81aee317a..bb2e42b8e3ce2b4c6d1fe7f9c6bdb133a0b24488 100644
--- a/chrome/common/extensions/api/experimental_bluetooth.idl
+++ b/chrome/common/extensions/api/experimental_bluetooth.idl
@@ -15,21 +15,14 @@
long id;
};
- // TODO(bryeung): This is a temporary hack until Blobs are supported
- dictionary Blob {
- DOMString data;
- };
-
dictionary OutOfBandPairingData {
// Simple Pairing Hash C
// Always 16 octets long.
- // TODO(bryeung): this should really be an octet[]
- DOMString hash;
+ ArrayBuffer hash;
// Simple Pairing Randomizer R
// Always 16 octets long.
- // TODO(bryeung): this should really be an octet[]
- DOMString randomizer;
+ ArrayBuffer randomizer;
};
// Reports failures via chrome.extension.lastError.
@@ -38,7 +31,7 @@
callback AddressCallback = void (DOMString result);
callback DevicesCallback = void (Device[] result);
callback SocketCallback = void (Socket result);
- callback DataCallback = void (Blob result);
+ callback DataCallback = void (ArrayBuffer result);
callback OutOfBandPairingDataCallback = void (OutOfBandPairingData data);
interface Functions {
@@ -91,7 +84,7 @@
// |data| : The data to write.
// |callback| : Called to indicate success or failure.
static void write(
- Socket socket, Blob data, optional ResultCallback callback);
+ Socket socket, ArrayBuffer data, optional ResultCallback callback);
// Get the local Out of Band Pairing data.
// |callback| : Called with the data.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698