author Kartikaya Gupta <>
Fri, 04 Jan 2013 16:32:58 -0500
changeset 117678 5a7b468178a28e1bd2b761f8781414f9b7c0c940
parent 103955 0a1f4d81635adf13c29c71aa80d4e44198125119
child 126762 c99f1fd792db545e16245f64d9e27952258e99bf
permissions -rw-r--r--
Bug 826381 - Update more tests to go with cset 11f420dd6b47. r=fix-test

/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
/* vim: set ts=2 et sw=2 tw=40: */
/* 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 */

#include "nsIDOMEventTarget.idl"
#include "nsIDOMDOMError.idl"

interface nsIDOMEventListener;

[scriptable, builtinclass, uuid(0662d161-6df7-41fc-a044-0ab0c668680c)]
interface nsIDOMTelephonyCall : nsIDOMEventTarget
  readonly attribute DOMString number;

  readonly attribute DOMString state;

  readonly attribute nsIDOMDOMError error;

  void answer();
  void hangUp();
  void hold();
  void resume();

  [implicit_jscontext] attribute jsval onstatechange;

  [implicit_jscontext] attribute jsval ondialing;
  [implicit_jscontext] attribute jsval onalerting;
  [implicit_jscontext] attribute jsval onbusy;
  [implicit_jscontext] attribute jsval onconnecting;
  [implicit_jscontext] attribute jsval onconnected;
  [implicit_jscontext] attribute jsval ondisconnecting;
  [implicit_jscontext] attribute jsval ondisconnected;
  [implicit_jscontext] attribute jsval onholding;
  [implicit_jscontext] attribute jsval onheld;
  [implicit_jscontext] attribute jsval onresuming;

  [implicit_jscontext] attribute jsval onerror;