B2G/Bluetooth/WebBluetooth-v2/Discussion/2014-03-14

From MozillaWiki
< B2G‎ | Bluetooth‎ | WebBluetooth-v2
Revision as of 07:56, 19 March 2014 by Btian (talk | contribs) (Created page with " == Items == === BluetoothManager === * Access adapter in onadapterremoved ** onadapterremoved(address) -> onadapterremoved(adapter) before adapter is really removed? adapt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Items

BluetoothManager

  • Access adapter in onadapterremoved
    • onadapterremoved(address) -> onadapterremoved(adapter) before adapter is really removed? adapter's attributes are accessible with default values.
  • Remove adapter from adapters[] array or not?
    • gaia has to rebind handlers if adapter is removed from array.
  • Track default adapter added/removed - options
    • +ondefaultadapteradded/ondefaultadapterremoved
    • onadapteradded/removed(adapter, bool isDefault)
    • bool adapter.isDefault

BluetoothAdapter

  • adapter state
    • add "discovering" and "discoverable"?
    • add "pairing", "connecting", and "connected"?
      • outgoing vs incoming pairing/connection state transition
  • adapter attributes validity
    • are all attributes available after state is "enabled"?
  • DOMRequest life cycle
    • should gaia hold req reference until stop discovery? does DOMRequest live after onsuccess is fired?
  • Return BluetoothDevice in pairing event handlers
    • carry correct address
    • what are the value of the device's attributes?
  • Move pairing event handlers into device?