mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 942104 - Add an event "ondiscoverystatechanged", r=gyeh, sr=mrbkap
This commit is contained in:
parent
00a390d7a8
commit
d50d82aeec
@ -684,6 +684,7 @@ GK_ATOM(ondisabled, "ondisabled")
|
|||||||
GK_ATOM(ondischargingtimechange, "ondischargingtimechange")
|
GK_ATOM(ondischargingtimechange, "ondischargingtimechange")
|
||||||
GK_ATOM(ondisconnected, "ondisconnected")
|
GK_ATOM(ondisconnected, "ondisconnected")
|
||||||
GK_ATOM(ondisconnecting, "ondisconnecting")
|
GK_ATOM(ondisconnecting, "ondisconnecting")
|
||||||
|
GK_ATOM(ondiscoverystatechanged, "ondiscoverystatechanged")
|
||||||
GK_ATOM(ondownloading, "ondownloading")
|
GK_ATOM(ondownloading, "ondownloading")
|
||||||
GK_ATOM(onDOMActivate, "onDOMActivate")
|
GK_ATOM(onDOMActivate, "onDOMActivate")
|
||||||
GK_ATOM(onDOMAttrModified, "onDOMAttrModified")
|
GK_ATOM(onDOMAttrModified, "onDOMAttrModified")
|
||||||
|
@ -147,6 +147,7 @@ public:
|
|||||||
SendMediaPlayStatus(const MediaPlayStatus& aMediaPlayStatus, ErrorResult& aRv);
|
SendMediaPlayStatus(const MediaPlayStatus& aMediaPlayStatus, ErrorResult& aRv);
|
||||||
|
|
||||||
IMPL_EVENT_HANDLER(devicefound);
|
IMPL_EVENT_HANDLER(devicefound);
|
||||||
|
IMPL_EVENT_HANDLER(discoverystatechanged);
|
||||||
IMPL_EVENT_HANDLER(a2dpstatuschanged);
|
IMPL_EVENT_HANDLER(a2dpstatuschanged);
|
||||||
IMPL_EVENT_HANDLER(hfpstatuschanged);
|
IMPL_EVENT_HANDLER(hfpstatuschanged);
|
||||||
IMPL_EVENT_HANDLER(pairedstatuschanged);
|
IMPL_EVENT_HANDLER(pairedstatuschanged);
|
||||||
|
@ -89,6 +89,11 @@ extern bool gBluetoothDebugFlag;
|
|||||||
*/
|
*/
|
||||||
#define PAIRED_STATUS_CHANGED_ID "pairedstatuschanged"
|
#define PAIRED_STATUS_CHANGED_ID "pairedstatuschanged"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This event would be fired when discovery procedure starts or stops.
|
||||||
|
*/
|
||||||
|
#define DISCOVERY_STATE_CHANGED_ID "discoverystatechanged"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When receiving a query about current play status from remote device, we'll
|
* When receiving a query about current play status from remote device, we'll
|
||||||
* dispatch an event.
|
* dispatch an event.
|
||||||
|
@ -49,6 +49,7 @@ interface BluetoothAdapter : EventTarget {
|
|||||||
readonly attribute any uuids;
|
readonly attribute any uuids;
|
||||||
|
|
||||||
attribute EventHandler ondevicefound;
|
attribute EventHandler ondevicefound;
|
||||||
|
attribute EventHandler ondiscoverystatechanged;
|
||||||
|
|
||||||
// Fired when pairing process is completed
|
// Fired when pairing process is completed
|
||||||
attribute EventHandler onpairedstatuschanged;
|
attribute EventHandler onpairedstatuschanged;
|
||||||
|
Loading…
Reference in New Issue
Block a user