mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784733 - Define wifi power saving mode api interface. r=mrbkap
This commit is contained in:
parent
a4c9bd75e7
commit
1bfce5657f
@ -36,7 +36,7 @@ interface nsIWifi : nsISupports
|
||||
void setWifiTethering(in boolean enabled, in nsIWifiTetheringCallback callback);
|
||||
};
|
||||
|
||||
[scriptable, uuid(540674a6-edbe-11e1-87c9-dbcd31c74284)]
|
||||
[scriptable, uuid(e3a967e0-015e-11e2-a21f-0800200c9a66)]
|
||||
interface nsIDOMWifiManager : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -87,6 +87,14 @@ interface nsIDOMWifiManager : nsISupports
|
||||
*/
|
||||
nsIDOMDOMRequest wps(in jsval detail);
|
||||
|
||||
/**
|
||||
* Turn on/off wifi power saving mode.
|
||||
* @param enabled true or false.
|
||||
* onsuccess: We have successfully turn on/off wifi power saving mode.
|
||||
* onerror: We have failed to turn on/off wifi power saving mode.
|
||||
*/
|
||||
nsIDOMDOMRequest setPowerSavingMode(in boolean enabled);
|
||||
|
||||
/**
|
||||
* Returns whether or not wifi is currently enabled.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user