dom/webidl/BluetoothAttributeEvent.webidl
author Reuben Morais <reuben.morais@gmail.com>
Sun, 25 May 2014 15:31:11 -0300
changeset 192401 4136b65c1c4b1578631c18dfffff3cec2aa52b4e
parent 192302 b1f349b0ee5fde087c623f099eae7b947d79d5db
child 198301 f01c30be85be7640cede548cf4a90215ac5ab022
permissions -rw-r--r--
Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz

/* -*- 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/.
 */

[CheckPermissions="bluetooth",
 Constructor(DOMString type,
             optional BluetoothAttributeEventInit eventInitDict)]
interface BluetoothAttributeEvent : Event
{
  readonly attribute unsigned short   attr;
  readonly attribute any              value;
  // We don't support sequences in unions yet (Bug 767924)
  /* readonly attribute (BluetoothAdapter or BluetoothAdapterState or
   *                     BluetoothClassOfDevice or boolean or
   *                     DOMString or sequence<DOMString>) value;
   */
};

dictionary BluetoothAttributeEventInit : EventInit
{
  unsigned short attr  = 0;
  any            value = null;
};