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

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

Issue 10916331: Revert 156348 (caused http://crbug.com/149828) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
===================================================================
--- chrome/common/extensions/api/experimental_bluetooth.idl (revision 157029)
+++ chrome/common/extensions/api/experimental_bluetooth.idl (working copy)
@@ -71,11 +71,6 @@
// Only devices providing a service with a name that matches |name| will be
// returned.
DOMString? name;
-
- // Called for each matching device. Note that a service discovery request
- // must be made to each non-matching device before it can be definitively
- // excluded. This can take some time.
- DeviceCallback deviceCallback;
};
// Options for the getServices function.
@@ -153,15 +148,12 @@
// there is no adapater available.
static void getName(NameCallback callback);
- // Get a bluetooth devices known to the system. Known devices are either
- // currently bonded, or have been bonded in the past.
- // |options| : Controls which devices are returned and provides
- // |deviceCallback|, which is called for each matching device.
- // |callback| : Called when the search is completed.
- // |options.deviceCallback| will not be called after
- // |callback| has been called.
+ // Get a list of Bluetooth devices.
+ // NOTE: This API is likely to change. Please see crbug.com/134545
+ // |options| : Controls which devices are returned.
+ // |callback| : Called with an array of Device objects.
static void getDevices(GetDevicesOptions options,
- ResultCallback callback);
+ DevicesCallback callback);
// Get a list of services provided by a device.
static void getServices(GetServicesOptions options,

Powered by Google App Engine
This is Rietveld 408576698