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

Side by Side Diff: chrome/common/extensions/api/bluetooth_low_energy.idl

Issue 287673002: chrome.bluetoothLowEnergy: Implement the onDescriptorValueChanged event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The <code>chrome.bluetoothLowEnergy</code> API is used to communicate with 5 // The <code>chrome.bluetoothLowEnergy</code> API is used to communicate with
6 // Bluetooth Smart (Low Energy) devices. 6 // Bluetooth Smart (Low Energy) devices using the
7 // <a href="https://developer.bluetooth.org/TechnologyOverview/Pages/GATT.aspx">
8 // Generic Attribute Profile (GATT)</a>.
7 namespace bluetoothLowEnergy { 9 namespace bluetoothLowEnergy {
8 // Values representing the possible properties of a characteristic. 10 // Values representing the possible properties of a characteristic.
9 enum CharacteristicProperty {broadcast, read, writeWithoutResponse, write, 11 enum CharacteristicProperty {broadcast, read, writeWithoutResponse, write,
10 notify, indicate, authenticatedSignedWrites, 12 notify, indicate, authenticatedSignedWrites,
11 extendedProperties, reliableWrite, 13 extendedProperties, reliableWrite,
12 writeableAuxiliaries}; 14 writeableAuxiliaries};
13 15
14 // Represents a peripheral's Bluetooth GATT Service, a collection of 16 // Represents a peripheral's Bluetooth GATT Service, a collection of
15 // characteristics and relationships to other services that encapsulate 17 // characteristics and relationships to other services that encapsulate
16 // the behavior of part of a device. 18 // the behavior of part of a device.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Fired when a GATT service that was previously discovered on a remote 219 // Fired when a GATT service that was previously discovered on a remote
218 // device has been removed. 220 // device has been removed.
219 // |service| : The GATT service that was removed. 221 // |service| : The GATT service that was removed.
220 static void onServiceRemoved(Service service); 222 static void onServiceRemoved(Service service);
221 223
222 // Fired when the value of a remote GATT characteristic changes, either as 224 // Fired when the value of a remote GATT characteristic changes, either as
223 // a result of a read or write request, or a value change notification or 225 // a result of a read or write request, or a value change notification or
224 // indication. 226 // indication.
225 // |characteristic| : The GATT characteristic whose value has changed. 227 // |characteristic| : The GATT characteristic whose value has changed.
226 static void onCharacteristicValueChanged(Characteristic characteristic); 228 static void onCharacteristicValueChanged(Characteristic characteristic);
229
230 // Fired when the value of a remote GATT characteristic descriptor changes,
231 // usually as a result of a read or write request.
232 // |descriptor| : The GATT characteristic descriptor whose value has
233 // changed.
234 static void onDescriptorValueChanged(Descriptor descriptor);
227 }; 235 };
228 }; 236 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698