dom/webidl/DeviceOrientationEvent.webidl

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     4  * You can obtain one at http://mozilla.org/MPL/2.0/.
     5  */
     7 [Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
     8 interface DeviceOrientationEvent : Event
     9 {
    10   readonly attribute double alpha;
    11   readonly attribute double beta;
    12   readonly attribute double gamma;
    13   readonly attribute boolean absolute;
    15   // initDeviceOrientationEvent is a Gecko specific deprecated method.
    16   [Throws]
    17   void initDeviceOrientationEvent(DOMString type,
    18                                   boolean canBubble,
    19                                   boolean cancelable,
    20                                   double alpha,
    21                                   double beta,
    22                                   double gamma,
    23                                   boolean absolute);
    24 };
    26 dictionary DeviceOrientationEventInit : EventInit
    27 {
    28   double alpha = 0;
    29   double beta = 0;
    30   double gamma = 0;
    31   boolean absolute = false;
    32 };

mercurial