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

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

Issue 2401193002: bluetooth: Add Device service for chrome://bluetooth-internals. (Closed)
Patch Set: Reorganizing, cleanup includes, add name for display 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/device.mojom
diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..f82559dd1d2a2acb84b02f5c480e6414cc8a961c
--- /dev/null
+++ b/device/bluetooth/public/interfaces/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;
dpapad 2016/10/11 21:58:32 Does this have to be a different file for technica
mbrunson 2016/10/11 23:15:33 Less of a technical reason and more for organizati
+
+struct DeviceInfo {
+ string? name;
+ string name_for_display;
+ string address;
+};
+
+interface Device {
+ // Gets basic information about the device.
+ // Returns null, If no device is available.
dpapad 2016/10/11 21:58:32 Nit (optional): Maximize 80col usage before brakin
mbrunson 2016/10/11 23:15:33 Done.
+ GetInfo() => (DeviceInfo? info);
+};

Powered by Google App Engine
This is Rietveld 408576698