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

Unified Diff: modules/bluetooth/BluetoothRemoteGATTServer.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 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: modules/bluetooth/BluetoothRemoteGATTServer.idl
diff --git a/modules/bluetooth/BluetoothRemoteGATTServer.idl b/modules/bluetooth/BluetoothRemoteGATTServer.idl
new file mode 100644
index 0000000000000000000000000000000000000000..5e2695430370cd76b28e91182bc592ed6a0cc504
--- /dev/null
+++ b/modules/bluetooth/BluetoothRemoteGATTServer.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-bluetoothgattremoteserver
+
+// Implement BluetoothGATTRemoteServer interface: https://crbug.com/476735
+
+[
+ GarbageCollected,
+ RuntimeEnabled=WebBluetooth,
+ // TODO(https://crbug.com/584113) Enable Web Bluetooth Experiment.
+ // OriginTrialEnabled=WebBluetooth,
+] interface BluetoothRemoteGATTServer
+{
+ readonly attribute BluetoothDevice device;
+ readonly attribute boolean connected;
+ [CallWith=ScriptState] Promise<BluetoothRemoteGATTServer> connect();
+ [CallWith=ScriptState] void disconnect();
+ [CallWith=ScriptState, RaisesException] Promise<BluetoothRemoteGATTService> getPrimaryService (BluetoothServiceUUID service);
+ // Promise<sequence<BluetoothRemoteGATTService>> getPrimaryServices (optional BluetoothServiceUUID service);
+};
« no previous file with comments | « modules/bluetooth/BluetoothRemoteGATTCharacteristic.idl ('k') | modules/bluetooth/BluetoothRemoteGATTService.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698