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

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

Issue 119963005: Update chrome.bluetooth API docs to be clearer on the correct way to use it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/bluetooth.idl
diff --git a/chrome/common/extensions/api/bluetooth.idl b/chrome/common/extensions/api/bluetooth.idl
index d1774b7c0ba1705e3ba682f941fe4428a371fe09..747be425901d5d811ee712ed82b8a0b0dc04439d 100644
--- a/chrome/common/extensions/api/bluetooth.idl
+++ b/chrome/common/extensions/api/bluetooth.idl
@@ -3,7 +3,7 @@
// found in the LICENSE file.
// Use the <code>chrome.bluetooth</code> API to connect to a Bluetooth
-// device.
+// device. All functions report failures via chrome.runtime.lastError.
namespace bluetooth {
dictionary AdapterState {
// The address of the adapter, in the format 'XX:XX:XX:XX:XX:XX'.
@@ -233,9 +233,11 @@ namespace bluetooth {
static void disconnect(DisconnectOptions options,
optional ResultCallback callback);
- // Read data from a Bluetooth connection.
+ // Read data from a Bluetooth connection. The |callback| will be called
+ // with the current data in the buffer even if it is empty. This function
+ // should be polled to read incoming data.
// |options| : The options for this function.
- // |callback| : Called with the data when it is available.
+ // |callback| : Called with the data read from the socket buffer.
static void read(ReadOptions options,
DataCallback callback);
« 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