diff options
author | Pale Moon <git-repo@palemoon.org> | 2016-09-01 13:39:08 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2016-09-01 13:39:08 +0200 |
commit | 3d8ce1a11a7347cc94a937719c4bc8df46fb8d14 (patch) | |
tree | 8c26ca375a6312751c00a27e1653fb6f189f0463 /dom/webidl/MozSpeakerManager.webidl | |
parent | e449bdb1ec3a82f204bffdd9c3c54069d086eee3 (diff) | |
download | palemoon-gre-3d8ce1a11a7347cc94a937719c4bc8df46fb8d14.tar.gz |
Base import of Tycho code (warning: huge commit)
Diffstat (limited to 'dom/webidl/MozSpeakerManager.webidl')
-rw-r--r-- | dom/webidl/MozSpeakerManager.webidl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dom/webidl/MozSpeakerManager.webidl b/dom/webidl/MozSpeakerManager.webidl new file mode 100644 index 000000000..56ecf866f --- /dev/null +++ b/dom/webidl/MozSpeakerManager.webidl @@ -0,0 +1,18 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +/* + * Allow application can control acoustic sound output through speaker. + * Reference https://wiki.mozilla.org/WebAPI/SpeakerManager + */ +[Constructor()] +interface MozSpeakerManager : EventTarget { + /* query the speaker status */ + readonly attribute boolean speakerforced; + /* force device device's acoustic sound output through speaker */ + attribute boolean forcespeaker; + /* this event will be fired when device's speaker forced status change */ + attribute EventHandler onspeakerforcedchange; +}; |