Chromium Code Reviews| Index: components/arc/common/bluetooth.mojom |
| diff --git a/components/arc/common/bluetooth.mojom b/components/arc/common/bluetooth.mojom |
| index 9d05a469d47496397bfca6a1958746dc668fe76c..19d56784fc097e1f792f9339095af341938361e0 100644 |
| --- a/components/arc/common/bluetooth.mojom |
| +++ b/components/arc/common/bluetooth.mojom |
| @@ -2,7 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -// Next MinVersion: 5 |
| +// Next MinVersion: 6 |
| module arc.mojom; |
| @@ -169,6 +169,14 @@ struct BluetoothGattValue { |
| const int8 kUnknownPower = 127; |
| +// Copied from Bluetooth package. See AdvertiseManager$AdvertiseNative |
|
rkc
2016/08/18 00:06:10
Please add a link.
|
| +[Extensible] |
| +enum BluetoothAdvertisementType { |
| + ADV_TYPE_CONNECTABLE = 0, |
| + ADV_TYPE_SCANNABLE = 2, |
| + ADV_TYPE_NON_CONNECTABLE = 3, |
| +}; |
| + |
| // Copy from Bluetooth Assigned Numbers Document, Generic Access Profile |
| // https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile |
| [Extensible] |
| @@ -231,6 +239,7 @@ struct BluetoothGattDBElement { |
| uint8 properties; |
| }; |
| +// Next Method ID: 40 |
| interface BluetoothHost { |
| EnableAdapter@0() => (BluetoothAdapterState state); |
| DisableAdapter@1() => (BluetoothAdapterState state); |
| @@ -322,6 +331,23 @@ interface BluetoothHost { |
| bool confirm, |
| array<uint8> value) |
| => (BluetoothGattStatus status); |
| + |
| + // Multi-advertisement functions |
| + [MinVersion=5] EnableAdvertising@37(int32 min_interval, |
| + int32 max_interval, |
| + BluetoothAdvertisementType adv_type, |
| + int32 channel_map, |
| + int32 tx_power, |
| + int32 timeout_s) |
| + => (BluetoothGattStatus status, int32 adv_handle); |
| + [MinVersion=5] SetAdvertisingData@38(int32 adv_handle, |
| + bool include_name, |
| + bool include_tx_power, |
| + int32 appearance, |
| + array<BluetoothAdvertisingData> adv_data) |
| + => (BluetoothGattStatus status); |
| + [MinVersion=5] DisableAdvertising@39(int32 adv_handle) |
| + => (BluetoothGattStatus status); |
| }; |
| // Next Method ID: 17 |