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

Unified Diff: modules/bluetooth/BluetoothGATTService.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « modules/bluetooth/BluetoothGATTRemoteServer.idl ('k') | modules/bluetooth/BluetoothScanFilter.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/bluetooth/BluetoothGATTService.idl
diff --git a/modules/bluetooth/BluetoothGATTService.idl b/modules/bluetooth/BluetoothGATTService.idl
new file mode 100644
index 0000000000000000000000000000000000000000..b6cef7352871b5ecf85a0aa70639ff537f4485f0
--- /dev/null
+++ b/modules/bluetooth/BluetoothGATTService.idl
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetoothgattservice
+
+// Implement BluetoothGATTService interface: https://crbug.com/483342
+
+[
+ GarbageCollected,
+ RuntimeEnabled=WebBluetooth,
+] interface BluetoothGATTService { // : ServiceEventHandlers {
+ readonly attribute UUID uuid;
+ readonly attribute boolean isPrimary;
+ // TODO(ortuno): Once device is implemented test that it matches
+ // the original device.
+ // readonly attribute BluetoothDevice device;
+ [RaisesException, CallWith=ScriptState] Promise<BluetoothGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic);
+ // Promise<sequence<BluetoothGATTCharacteristic>> getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
+ // Promise<BluetoothGATTService> getIncludedService(BluetoothServiceUUID service);
+ // Promise<sequence<BluetoothGATTService>> getIncludedServices(optional BluetoothServiceUUID service);
+};
« no previous file with comments | « modules/bluetooth/BluetoothGATTRemoteServer.idl ('k') | modules/bluetooth/BluetoothScanFilter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698