Files
palemoon27/dom/webidl/AudioChannelManager.webidl
roytam1 d0e246a6fc import changes from `dev' branch of rmottola/Arctic-Fox:
- Bug 1198588 - Remove unused MSG-specific code from AudioStream. r=padenot (79bd29d60c)
- Bug 1187195 - Remove all agents with null window. r=baku (c3733647bb)
- Bug 1137151: Marked destructors of ref-counted audio-manager classes as protected, r=dhylands (d0b84530f6)
- Bug 1179181 - Store separate volume setting into setting database. r=baku (a6cb4bab03)
- Bug 1175447 - mono audio support. r=padenot, r=sotaro (ce011f6556)
- Bug 1140763 - Build dom/media/gtest in unified mode; r=cpearce (b3061b094b)
- Bug 1194442 - Code clean up of AudioManager r=alwu (d25f51cda2)
- Bug 1137659 - Re-enable LogShake xpcshell tests on B2G Emulator debug. r=me (f8b037756a)
- Bug 1136777 - Enable LogShake by default and listen for new content events. r=fabrice, r=gerard-majax (1cf207dbe8)
- Bug 1101994 - Add a low-pass filter to LogShake's shake detection and refactor unit tests to be less redundant. r=mhenretty, r=gerard-majax (7f59e328ec)
- Bug 1144499 - Consolidate two long-running tests in test_logshake_gonk into one test of equivalent strength. r=gerard-majax (765d0bc243)
- Bug 1079763 - Compress logs produced by LogShake. r=gerard-majax (26e5ca1dec)
- Bug 1181561 - Expose a Kill Switch enabling/disabling. r=dhylands, sr=sicking (03d2754eea)
- Bug 1174682 - Rename logshake-screenshot to screenshot.png. r=gerard-majax (b6faaa3fc2)
- Bug 1188999 - LogShake does not fetch about:memory reports. r=gerard-majax (03a75e6408)
- let-var (1114e25a65)
- Bug 1188487 - Add API to BrowserElement to mute and set volume. r=fabrice (3d49951639)
- Bug 1195801 - Add GetStructuredData() method to Browser API. r=kanru, r=bholley (b4cc0cba61)
- Bug 1167465 - Exposing Allowed Audio Channels in System App's Window, r=alwu, r=fabrice (e8d59eb0e1)
- fix build (8a58b834fe)
- Bug 1183301 - GetAllowedAudioChannels should not throw an exception if nsIFrameElement is not ready. r=baku (1adbb9b140)
- Bug 1184821 - Use CheckAllPermissions in BrowserElement.webidl r=bz (65a22b5bc1)
- Bug 1206212 - Remove AUDIO_STREAM_FM after KK r=alwu (4d83c541dc)
- Bug 1131927 - [Automounter] Add reporter to get current information. r=dhylands (d5d2e94b8c)
- Bug 1197689 - Avoid unnecessary sync IPC in AudioChannelManager ctor. r=baku (128abefeb6)
- Bug 1208155 - Make hal functions explicit in AudioManager r=alwu (d320b83fa7)
- Bug 1179691 - [Automounter] Fix the problem of get format and share request in the same time. r=dhylands (768ad35244)
- Bug 1137151: Marked destructors of ref-counted auto-mounter classes as protected, r=dhylands (c8cf90bdff)
- Bug 1158047 - [AutoMounter] Resolve the problem of stucking in UMS_CONFIGURING state. r=dhylands (793f023fd2)
- Bug 1012403 - Reenable SettingsService chrome tests, on B2G only; a=TEST-ONLY (aa8c416f75)
- Bug 1196358 - update volume setting to database when the volume changing. r=sotaro. (5227fca7f7)
- let-var (ca6890c85b)
- Bug 1178081 - Make ro.product.manufacturer and ro.product.device available through settings. r=fabrice (fe962dfe41)
- Bug 1206741 - [OTA] Make URL pref changes overwrite B2G's setting. r=fabrice f=gerard-majax (df8bf913ae)
- Bug 1196884 - Disable device discovery (again) r=gerard-majax (9f11b3fa9d)
- Bug 1178512 - [Metrics] Make the developer HUD send Advanced Telemetry events. r=janx (ddc3643e4e)
- Bug 1177143 - Throttle HUD memory collection to 2 seconds. r=jryans (94fea375a8)
- Bug 1190622 - [Telemetry] Report USS memory at time of performance marks r=jryans (fd7713fda0)
- missing of Bug 1183101 - Collect Histogram Data from Gecko and send to Telemetry Server. r=janx (176b076539)
- Bug 1176992 - Allow hud.js to support custom metrics with exponential and counter histograms. r=janx (c536b35be1)
- Bug 1198517 - [Metrics] Histogram support for user-timing-based metrics. r=janx (549741a1e4)
- Bug 1180793 - [Metrics] Hud should report specific app for those Apps housed under 'Communications'. r=janx (93407f1873)
- Bug 1189871 - Add event to add/remove permissions for Graphene. r=fabrice (004144b5ba)
- let-var (8c98d39873)
- Bug 1160923 - [B2G] Waiting for explicit mozContentEvent before sending out mozChromeEvents, r=vingtetun, f=ochaumeau (63fc3b5ea8)
- missing bits of 1177143 and cleanup (339e589ba1)
- Bug 1188762 - Use mozSystemWindowChromeEvent to instead of mozChromeEvent to send system-audiochannel-state-changed event. r=alwu (d107f0caab)
- Bug 1192122 - Safe mode startup, Part 1: check the power key state at startup r=mwu (90af9b56c0)
- Bug 1192122 - Safe mode startup, Part 2: shell.js hook r=ferjm (02676818ff)
- Bug 1156715 - Create shell-remote for launching system-remote, r=fabrice (43b18841c9)
- let-var (e0ed7d020c)
2022-08-23 10:34:19 +08:00

38 lines
1.4 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/.
*/
interface AudioChannelManager : EventTarget {
/**
* Indicates whether the headphones are plugged in or not.
*/
readonly attribute boolean headphones;
/**
* Fired when the headphones are plugged or unplugged.
*
* When the headphones are unplugged, we may start playing audio through the
* system's speakers. Similarly, when headphones are plugged in, we may
* switch audio from speakers to headphones.
*
* If audio is currently playing in this window or in one of its children, we
* will fire this event before we switch the audio output from headphones to
* speakers (or vice versa). This allows you to, for example, pause your
* window's audio when the headphones are unplugged.
*/
attribute EventHandler onheadphoneschange;
/**
* Indicates which audio channel is used to adjust volume when pressing HW
* volume keys.
*/
attribute DOMString volumeControlChannel;
[Pure, Cached, Throws,
Pref="dom.mozBrowserFramesEnabled",
CheckAnyPermissions="system-app-only-audio-channels-in-app"]
readonly attribute sequence<BrowserElementAudioChannel> allowedAudioChannels;
};