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

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

Issue 2643393002: bluetooth: Remove queuing of GetCharacteristicsCallbacks (Closed)
Patch Set: Add comment explaining null/empty difference Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « device/bluetooth/device_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"; 7 import "device/bluetooth/public/interfaces/uuid.mojom";
8 8
9 // Values representing the possible properties of a characteristic, which 9 // Values representing the possible properties of a characteristic, which
10 // define how the characteristic can be used. Each of these properties serve 10 // define how the characteristic can be used. Each of these properties serve
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 Disconnect(); 63 Disconnect();
64 64
65 // Gets basic information about the device. Returns null, if no device is 65 // Gets basic information about the device. Returns null, if no device is
66 // available. 66 // available.
67 GetInfo() => (DeviceInfo? info); 67 GetInfo() => (DeviceInfo? info);
68 68
69 // Gets the GATT Services in this device's GATT Server. 69 // Gets the GATT Services in this device's GATT Server.
70 GetServices() => (array<ServiceInfo> services); 70 GetServices() => (array<ServiceInfo> services);
71 71
72 // Gets the GATT Characteristics in the GATT Service with |service_id|. 72 // Gets the GATT Characteristics in the GATT Service with |service_id|.
73 // If |characteristics| is null, an error occured while attempting to retrieve
74 // the array of characteristics. If |characteristics| is empty, this simply
75 // means that no characteristics were found.
73 GetCharacteristics(string service_id) => 76 GetCharacteristics(string service_id) =>
74 (array<CharacteristicInfo> characteristics); 77 (array<CharacteristicInfo>? characteristics);
75 }; 78 };
OLDNEW
« no previous file with comments | « device/bluetooth/device_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698