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

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

Issue 2268113002: arc: bluetooth: Use UUID 16 bits in advertising data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 3 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 | « components/arc/bluetooth/arc_bluetooth_bridge.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 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile 168 // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile
169 // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof ile 169 // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof ile
170 [Extensible] 170 [Extensible]
171 enum BluetoothAdvertisingDataType { 171 enum BluetoothAdvertisingDataType {
172 DATA_TYPE_FLAGS = 0x01, 172 DATA_TYPE_FLAGS = 0x01,
173 DATA_TYPE_SERVICE_UUIDS_16_BIT_COMPLETE = 0x03,
173 DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE = 0x07, 174 DATA_TYPE_SERVICE_UUIDS_128_BIT_COMPLETE = 0x07,
174 DATA_TYPE_LOCAL_NAME_COMPLETE = 0x09, 175 DATA_TYPE_LOCAL_NAME_COMPLETE = 0x09,
175 DATA_TYPE_TX_POWER_LEVEL = 0x0A, 176 DATA_TYPE_TX_POWER_LEVEL = 0x0A,
176 DATA_TYPE_SERVICE_DATA = 0x16, 177 DATA_TYPE_SERVICE_DATA = 0x16,
177 DATA_TYPE_MANUFACTURER_SPECIFIC_DATA = 0xff, 178 DATA_TYPE_MANUFACTURER_SPECIFIC_DATA = 0xff,
178 }; 179 };
179 180
180 // Copy from Bluetooth Core v4.2 Volume 3 Part C Chapter 11 181 // Copy from Bluetooth Core v4.2 Volume 3 Part C Chapter 11
181 // and Bluetooth Core Specification Supplement v6 Part A Chapter 1 182 // and Bluetooth Core Specification Supplement v6 Part A Chapter 1
182 // https://www.bluetooth.com/specifications/adopted-specifications 183 // https://www.bluetooth.com/specifications/adopted-specifications
183 union BluetoothAdvertisingData { 184 union BluetoothAdvertisingData {
184 uint8 flags; 185 uint8 flags;
186 array<uint16> service_uuids_16;
185 array<BluetoothUUID> service_uuids; 187 array<BluetoothUUID> service_uuids;
186 string local_name; 188 string local_name;
187 uint8 tx_power_level; 189 uint8 tx_power_level;
188 BluetoothServiceData service_data; 190 BluetoothServiceData service_data;
189 array<uint8> manufacturer_data; 191 array<uint8> manufacturer_data;
190 array<uint8> other_data; 192 array<uint8> other_data;
191 }; 193 };
192 194
193 struct BluetoothServiceData { 195 struct BluetoothServiceData {
194 uint16 uuid_16bit; 196 uint16 uuid_16bit;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 int32 attribute_handle, 360 int32 attribute_handle,
359 int32 offset, 361 int32 offset,
360 bool is_long) 362 bool is_long)
361 => (BluetoothGattStatus status, array<uint8> value); 363 => (BluetoothGattStatus status, array<uint8> value);
362 [MinVersion=3] RequestGattWrite@15(BluetoothAddress address, 364 [MinVersion=3] RequestGattWrite@15(BluetoothAddress address,
363 int32 attribute_handle, 365 int32 attribute_handle,
364 int32 offset, 366 int32 offset,
365 array<uint8> value) 367 array<uint8> value)
366 => (BluetoothGattStatus status); 368 => (BluetoothGattStatus status);
367 }; 369 };
OLDNEW
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698