Closed Bug 853200 Opened 11 years ago Closed 11 years ago

[b2g-bluetooth] Remove unused event handlers from idl

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
B2G C4 (2jan on)

People

(Reporter: gyeh, Assigned: gyeh)

Details

Attachments

(1 file)

We have a great number of event handlers in nsIDOMBluetoothAdpater.idl, however, some of them aren't used now. I think it's time to remove them and make our idl clearer.

For example, onpropertychanged in nsIDOMBluetoothManager.idl, nsIDOMBluetoothAdpater.idl, and nsIDOMBluetoothDevice.idl.
The following events are removed from Bluetooth-related idl:

For nsIDOMBluetoothAdapter.idl
- ondevicedisappeared: unused
- ondevicecreated: unused
- onpropertychanged: unused
- onrequestconfirmation: replaced by system message
- onrequestpasskey: replaced by system message
- onrequestpincode: replaced by system message
- onauthorize: replaced by system message
- oncancel: replaced by system message

For nsIDOMBluetoothDevice.idl
- onpropertychanged: unused
- onconnected: unused
- ondisconnected: unused




Besides, attribute "enabled" is also removed from Adapter since no property named Enabled in Bluez and mEnabled has never been set.
Assignee: nobody → gyeh
Attachment #728883 - Flags: review?(echou)
Comment on attachment 728883 [details] [diff] [review]
Patch 1(v1): Remove unused event handlers from idl

Review of attachment 728883 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me, these changes won't affect Bluetooth logic. Please ask a DOM API peer for another review since the interface is changed.

::: dom/bluetooth/BluetoothAdapter.h
@@ +68,2 @@
>                        nsIDOMDOMRequest** aRequest);
>    

nit: extra whitespaces
Attachment #728883 - Flags: review?(echou) → review+
Attachment #728883 - Flags: superreview?(mrbkap)
Component: DOM: Device Interfaces → Bluetooth
Product: Core → Boot2Gecko
Attachment #728883 - Flags: superreview?(mrbkap) → superreview+
https://hg.mozilla.org/mozilla-central/rev/e503b1458e77
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → B2G C4 (2jan on)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: