Bug 1188487 - BrowserElement webidl changes for muting and setting volume. r=ehsan

This commit is contained in:
Brian R. Bondy 2015-07-31 13:21:22 -04:00
parent ea89e3d80b
commit ce79c6b136

View File

@ -34,4 +34,44 @@ partial interface BrowserElementPrivileged {
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="browser"]
readonly attribute sequence<BrowserElementAudioChannel> allowedAudioChannels;
/**
* Mutes all audio in this browser.
*/
[Throws,
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="browser"]
void mute();
/**
* Unmutes all audio in this browser.
*/
[Throws,
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="browser"]
void unmute();
/**
* Obtains whether or not the browser is muted.
*/
[Throws,
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="browser"]
DOMRequest getMuted();
/**
* Sets the volume for the browser.
*/
[Throws,
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="browser"]
void setVolume(float volume);
/**
* Gets the volume for the browser.
*/
[Throws,
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="browser"]
DOMRequest getVolume();
};