OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 | |
ortuno
2016/09/22 08:32:54
nit: remove new line
mbrunson
2016/09/24 01:05:47
Done.
| |
3 // Use of this source code is governed by a BSD-style license that can be | |
4 // found in the LICENSE file. | |
5 | |
6 module bluetooth; | |
ortuno
2016/09/22 08:32:54
scheib: Should we add a note mentioning that this
scheib
2016/09/23 20:53:51
Use:
module bluetooth.mojom
I think we should use
| |
7 | |
8 struct DeviceInfo { | |
9 string? name; | |
10 string name_for_display; | |
11 string id; | |
12 string address; | |
13 uint16 device_id; | |
ortuno
2016/09/22 08:32:54
nit: there was a comment about this on the design
mbrunson
2016/09/24 01:05:47
I think just removing it entirely for now would be
| |
14 uint16 product_id; | |
15 uint16 vendor_id; | |
16 }; | |
17 | |
18 interface Adapter { | |
scheib
2016/09/23 20:53:51
ortuno: what do you think here,
I think that we sh
mbrunson
2016/09/24 01:05:47
The internals interface was not supposed to be in
ortuno
2016/09/26 01:57:56
Separating in the interfaces in files sounds good.
| |
19 // Retrieves the list of devices that can be detected | |
ortuno
2016/09/22 08:32:54
I want to get rid of this function but since that
mbrunson
2016/09/24 01:05:47
Done.
| |
20 GetDevices(int8 index, int8 count) => (array<DeviceInfo> devices); | |
ortuno
2016/09/22 08:32:54
Could you mention the purpose of the two arguments
ortuno
2016/09/22 08:32:54
Could you mention the purpose of the two arguments
mbrunson
2016/09/24 01:05:47
These should probably be removed. The original use
| |
21 }; | |
22 | |
23 interface AdapterClient { | |
24 // Called when a device has been detected | |
ortuno
2016/09/22 08:32:54
nit: Called the first time a device is discovered.
mbrunson
2016/09/24 01:05:47
Done.
| |
25 DeviceAdded(DeviceInfo device); | |
26 | |
27 // Called when a device can no longer be detected | |
28 DeviceRemoved(DeviceInfo device); | |
ortuno
2016/09/22 08:32:54
nit: Called after the device hasn't been seen for
mbrunson
2016/09/24 01:05:47
Done.
| |
29 }; | |
30 | |
31 interface InternalsPageHandler { | |
scheib
2016/09/23 20:53:51
This interface shouldn't be in device/bluetooth
mbrunson
2016/09/24 01:05:47
Done.
| |
32 // Creates pipe for Bluetooth Adapter between |client| and |adapter| | |
ortuno
2016/09/22 08:32:54
nit: Period at the end of sentence.
mbrunson
2016/09/24 01:05:47
Done.
| |
33 GetAdapterService(Adapter& adapter, | |
34 AdapterClient client); | |
35 }; | |
OLD | NEW |