2015-07-10 19:38:44 +03:00
|
|
|
/* -*- 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/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
interface mozIDOMWindowProxy;
|
2015-07-10 19:38:44 +03:00
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
[scriptable, builtinclass, uuid(5cb24dbc-36c7-46a4-9966-ac73141dc795)]
|
2015-07-10 19:38:44 +03:00
|
|
|
interface nsIAudioChannelService : nsISupports
|
|
|
|
{
|
2016-01-30 20:05:36 +03:00
|
|
|
float getAudioChannelVolume(in mozIDOMWindowProxy window,
|
2015-07-10 19:38:44 +03:00
|
|
|
in unsigned short audioChannel);
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
void setAudioChannelVolume(in mozIDOMWindowProxy window,
|
2015-07-10 19:38:44 +03:00
|
|
|
in unsigned short audioChannel,
|
|
|
|
in float volume);
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
boolean getAudioChannelMuted(in mozIDOMWindowProxy window,
|
2015-07-10 19:38:44 +03:00
|
|
|
in unsigned short audioChannel);
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
void setAudioChannelMuted(in mozIDOMWindowProxy window,
|
2015-07-10 19:38:44 +03:00
|
|
|
in unsigned short audioChannel,
|
|
|
|
in boolean muted);
|
|
|
|
|
2016-01-30 20:05:36 +03:00
|
|
|
boolean isAudioChannelActive(in mozIDOMWindowProxy window,
|
2015-07-10 19:38:44 +03:00
|
|
|
in unsigned short audioChannel);
|
|
|
|
};
|