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

Side by Side Diff: device/bluetooth/public/interfaces/device.mojom

Issue 2448713002: bluetooth: Add Device connection logic and accompanying user interface. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module bluetooth.mojom; 5 module bluetooth.mojom;
6 6
7 import "device/bluetooth/public/interfaces/uuid.mojom";
8
7 // TODO(crbug.com/657632): Remove when numerical values can be optional. 9 // TODO(crbug.com/657632): Remove when numerical values can be optional.
8 struct RSSIWrapper { 10 struct RSSIWrapper {
9 int8 value; 11 int8 value;
10 }; 12 };
11 13
12 struct DeviceInfo { 14 struct DeviceInfo {
13 string? name; 15 string? name;
14 string name_for_display; 16 string name_for_display;
15 string address; 17 string address;
18 bool connected;
ortuno 2016/10/25 10:42:10 nit: is_gatt_connected
mbrunson 2016/10/25 20:03:04 Done.
16 RSSIWrapper? rssi; 19 RSSIWrapper? rssi;
17 }; 20 };
18 21
22 struct ServiceInfo {
23 UUID uuid;
24 bool primary;
ortuno 2016/10/25 10:42:10 nit: is_primary
mbrunson 2016/10/25 20:03:04 Done.
25 };
26
19 interface Device { 27 interface Device {
20 // Gets basic information about the device. Returns null, if no device is 28 // Gets basic information about the device. Returns null, if no device is
21 // available. 29 // available.
22 GetInfo() => (DeviceInfo? info); 30 GetInfo() => (DeviceInfo? info);
31
32 // Gets the discovered services advertising on this device.
33 GetServices() => (array<ServiceInfo> services);
23 }; 34 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698