Bug 784733 - Define wifi power saving mode api interface. r=mrbkap

This commit is contained in:
Vincent Chang 2012-09-18 15:03:46 +08:00
parent a4c9bd75e7
commit 1bfce5657f

View File

@ -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.
*/