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

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

Issue 10837294: Add bluetooth.getName API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 a95c4b713d2debd88e6d4ec2fe3a6660804b03f1..03af41e91ecf41a98014f2899ba5ee975453850f 100644
--- a/chrome/common/extensions/api/experimental_bluetooth.idl
+++ b/chrome/common/extensions/api/experimental_bluetooth.idl
@@ -54,6 +54,7 @@ namespace experimental.bluetooth {
callback DataCallback = void (ArrayBuffer result);
callback DeviceCallback = void (Device device);
callback DevicesCallback = void (Device[] result);
+ callback NameCallback = void (DOMString result);
callback OutOfBandPairingDataCallback = void (OutOfBandPairingData data);
callback ResultCallback = void ();
callback ServicesCallback = void(ServiceRecord[] result);
@@ -141,6 +142,10 @@ namespace experimental.bluetooth {
// |callback| : Called with the address, or null if there was an error.
static void getAddress(AddressCallback callback);
+ // Get the name of the Bluetooth adapter.
+ // |callback| : Called with the name, or null if there was an error.
asargent_no_longer_on_chrome 2012/08/20 19:07:19 documentation nit: from a glance at the implementa
bryeung 2012/08/20 23:13:19 Done.
+ static void getName(NameCallback callback);
+
// Get a list of bluetooth devices.
// NOTE: This API is likely to change. Please see crbug.com/134545
// |options| : Controls which devices are returned.

Powered by Google App Engine
This is Rietveld 408576698