2013-05-31 23:53:06 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2011-12-04 23:58:27 -08:00
|
|
|
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
2012-01-09 14:28:47 -08:00
|
|
|
|
2011-12-04 23:58:27 -08:00
|
|
|
interface nsIDOMEventListener;
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMTelephonyCall;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2013-05-31 23:53:06 -07:00
|
|
|
[scriptable, builtinclass, uuid(dd9f3957-b0fe-4d3d-b738-79782f76f05d)]
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMTelephony : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
nsIDOMTelephonyCall dial(in DOMString number);
|
2012-07-20 05:08:24 -07:00
|
|
|
nsIDOMTelephonyCall dialEmergency(in DOMString number);
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2011-12-12 10:30:43 -08:00
|
|
|
attribute boolean muted;
|
2012-01-09 14:28:47 -08:00
|
|
|
attribute boolean speakerEnabled;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
// The call that is "active", i.e. receives microphone input and tones
|
|
|
|
// generated via startTone.
|
2013-05-31 23:53:06 -07:00
|
|
|
readonly attribute nsIDOMTelephonyCall active;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
// Array of all calls that are currently connected.
|
2012-02-23 07:09:11 -08:00
|
|
|
readonly attribute jsval calls;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
void startTone(in DOMString tone);
|
|
|
|
void stopTone();
|
2011-12-06 22:57:19 -08:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onincoming;
|
|
|
|
[implicit_jscontext] attribute jsval oncallschanged;
|
2011-12-06 22:57:19 -08:00
|
|
|
};
|