Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | */ |
michael@0 | 6 | |
michael@0 | 7 | // AudioChannels are used by: |
michael@0 | 8 | // * HTMLMediaElement |
michael@0 | 9 | // * AudioContext (WebAudio) |
michael@0 | 10 | // When used, it has to throw an exception if the app tries to change the audio |
michael@0 | 11 | // channel type without the permission (manifest file for B2G apps). |
michael@0 | 12 | // The supported values are: |
michael@0 | 13 | // * normal (default value) |
michael@0 | 14 | // Automatically paused if "notification" or higher priority channel |
michael@0 | 15 | // is played |
michael@0 | 16 | // Use case: normal applications |
michael@0 | 17 | // * content |
michael@0 | 18 | // Automatically paused if "notification" or higher priority channel |
michael@0 | 19 | // is played. Also paused if another app starts using "content" |
michael@0 | 20 | // channel. Using this channel never affects applications using |
michael@0 | 21 | // the "normal" channel. |
michael@0 | 22 | // Use case: video/audio players |
michael@0 | 23 | // * notification |
michael@0 | 24 | // Automatically paused if "alarm" or higher priority channel is played. |
michael@0 | 25 | // Use case: New email, incoming SMS |
michael@0 | 26 | // * alarm |
michael@0 | 27 | // Automatically paused if "telephony" or higher priority channel is |
michael@0 | 28 | // played. |
michael@0 | 29 | // User case: Alarm clock, calendar alarms |
michael@0 | 30 | // * telephony |
michael@0 | 31 | // Automatically paused if "ringer" or higher priority |
michael@0 | 32 | // channel is played. |
michael@0 | 33 | // Use case: dialer, voip |
michael@0 | 34 | // * ringer |
michael@0 | 35 | // Automatically paused if "publicnotification" or higher priority |
michael@0 | 36 | // channel is played. |
michael@0 | 37 | // Use case: dialer, voip |
michael@0 | 38 | // * publicnotification |
michael@0 | 39 | // Always plays in speaker, even when headphones are plugged in. |
michael@0 | 40 | // Use case: Camera shutter sound. |
michael@0 | 41 | enum AudioChannel { |
michael@0 | 42 | "normal", |
michael@0 | 43 | "content", |
michael@0 | 44 | "notification", |
michael@0 | 45 | "alarm", |
michael@0 | 46 | "telephony", |
michael@0 | 47 | "ringer", |
michael@0 | 48 | "publicnotification", |
michael@0 | 49 | }; |