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

Side by Side Diff: components/arc/common/bluetooth.mojom

Issue 2228953003: bluetooth: Change GetInquiryTxPower and GetInquiryRSSI to return optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix comment Created 4 years, 4 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
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 arc.mojom; 5 module arc.mojom;
6 6
7 [Extensible] 7 [Extensible]
8 enum BluetoothAdapterState { 8 enum BluetoothAdapterState {
9 OFF = 0, 9 OFF = 0,
10 ON 10 ON
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 struct BluetoothGattServiceID { 158 struct BluetoothGattServiceID {
159 BluetoothGattID id; 159 BluetoothGattID id;
160 uint8 is_primary; 160 uint8 is_primary;
161 }; 161 };
162 162
163 struct BluetoothGattValue { 163 struct BluetoothGattValue {
164 BluetoothGattStatus status; 164 BluetoothGattStatus status;
165 array<uint8> value; 165 array<uint8> value;
166 }; 166 };
167 167
168 const int8 kUnknownPower = 127;
169
168 // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile 170 // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile
169 // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof ile 171 // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof ile
170 [Extensible] 172 [Extensible]
171 enum BluetoothAdvertisingDataType { 173 enum BluetoothAdvertisingDataType {
172 DATA_TYPE_FLAGS = 0x01, 174 DATA_TYPE_FLAGS = 0x01,
173 DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE = 0x07, 175 DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE = 0x07,
174 DATA_TYPE_LOCAL_NAME_COMPLETE = 0x09, 176 DATA_TYPE_LOCAL_NAME_COMPLETE = 0x09,
175 DATA_TYPE_TX_POWER_LEVEL = 0x0A, 177 DATA_TYPE_TX_POWER_LEVEL = 0x0A,
176 DATA_TYPE_SERVICE_DATA = 0x16, 178 DATA_TYPE_SERVICE_DATA = 0x16,
177 DATA_TYPE_MANUFACTURER_SPECIFIC_DATA = 0xff, 179 DATA_TYPE_MANUFACTURER_SPECIFIC_DATA = 0xff,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 int32 attribute_handle, 363 int32 attribute_handle,
362 int32 offset, 364 int32 offset,
363 bool is_long) 365 bool is_long)
364 => (BluetoothGattStatus status, array<uint8> value); 366 => (BluetoothGattStatus status, array<uint8> value);
365 [MinVersion=3] RequestGattWrite@15(BluetoothAddress address, 367 [MinVersion=3] RequestGattWrite@15(BluetoothAddress address,
366 int32 attribute_handle, 368 int32 attribute_handle,
367 int32 offset, 369 int32 offset,
368 array<uint8> value) 370 array<uint8> value)
369 => (BluetoothGattStatus status); 371 => (BluetoothGattStatus status);
370 }; 372 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698