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

Unified Diff: device/bluetooth/public/interfaces/le_device.mojom

Issue 2401193002: bluetooth: Add Device service for chrome://bluetooth-internals. (Closed)
Patch Set: Add log function comment Created 4 years, 2 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: device/bluetooth/public/interfaces/le_device.mojom
diff --git a/device/bluetooth/public/interfaces/le_device.mojom b/device/bluetooth/public/interfaces/le_device.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..308d1571f0586d260c72594efa7f28890fc7577a
--- /dev/null
+++ b/device/bluetooth/public/interfaces/le_device.mojom
@@ -0,0 +1,17 @@
+// 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 bluetooth.mojom;
+
+struct LEDeviceInfo {
+ string? name;
ortuno 2016/10/10 00:11:20 What about nameForDisplay? You will probably want
mbrunson 2016/10/10 19:21:28 Unless I'm missing something, GetNameForDisplay()
ortuno 2016/10/11 00:45:45 The purpose of GetNameForDisplay is not only to re
+ string id;
+ string address;
+};
+
+interface LEDevice {
ortuno 2016/10/10 00:11:20 Since this is just a thin wrapper around the curre
mbrunson 2016/10/10 19:21:28 I'll change it for now.
+ // Gets basic information about the device.
+ // Returns null, If no adapter is available.
ortuno 2016/10/10 00:11:20 nit: lower-case after comma. Also I think you mean
mbrunson 2016/10/10 19:21:28 Done.
+ GetInfo() => (LEDeviceInfo? info);
+};

Powered by Google App Engine
This is Rietveld 408576698