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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar clean up Created 4 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: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
index 6645ef8cf09075579691cc21c6164060d25af250..b2a5e35e4bdc1dbfb12ce856363c22611fe46701 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
+++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
@@ -1,11 +1,38 @@
// Copyright 2016 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.
+
module blink.mojom;
enum WebBluetoothError {
- SUCCESS
+ SUCCESS,
+ // InvalidModificationError:
+ GATT_INVALID_ATTRIBUTE_LENGTH,
+ // InvalidStateError:
+ SERVICE_NO_LONGER_EXISTS,
+ CHARACTERISTIC_NO_LONGER_EXISTS,
+ // NetworkError:
+ DEVICE_NO_LONGER_IN_RANGE,
+ GATT_NOT_PAIRED,
+ GATT_OPERATION_IN_PROGRESS,
+ // NotSupportedError:
+ GATT_UNKNOWN_ERROR,
+ GATT_UNKNOWN_FAILURE,
+ GATT_NOT_PERMITTED,
+ GATT_NOT_SUPPORTED,
+ GATT_UNTRANSLATED_ERROR_CODE,
+ // SecurityError:
+ GATT_NOT_AUTHORIZED,
+ BLACKLISTED_WRITE
};
// TODO(ortuno): Define Bluetooth Service.
// https://crbug.com/508771
+
+interface WebBluetoothService {
+
+ RemoteCharacteristicWriteValue(
Jeffrey Yasskin 2016/03/25 00:48:24 Comment what this does.
ortuno 2016/03/29 17:58:34 Done.
+ string characteristic_instance_id,
+ array<uint8> value) => (WebBluetoothError error);
+
+};

Powered by Google App Engine
This is Rietveld 408576698