dom/webidl/PointerEvent.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/PointerEvent.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 + *
     1.9 + * For more information see nsIPointerEvent.idl.
    1.10 + *
    1.11 + * Portions Copyright 2013 Microsoft Open Technologies, Inc. */
    1.12 +
    1.13 +interface WindowProxy;
    1.14 +
    1.15 +[Pref="dom.w3c_pointer_events.enabled",
    1.16 + Constructor(DOMString type, optional PointerEventInit eventInitDict)]
    1.17 +interface PointerEvent : MouseEvent
    1.18 +{
    1.19 +  readonly attribute long pointerId;
    1.20 +  readonly attribute long width;
    1.21 +  readonly attribute long height;
    1.22 +  readonly attribute float pressure;
    1.23 +  readonly attribute long tiltX;
    1.24 +  readonly attribute long tiltY;
    1.25 +  readonly attribute DOMString pointerType;
    1.26 +  readonly attribute boolean isPrimary;
    1.27 +};
    1.28 +
    1.29 +dictionary PointerEventInit : MouseEventInit
    1.30 +{
    1.31 +  long pointerId = 0;
    1.32 +  long width = 0;
    1.33 +  long height = 0;
    1.34 +  float pressure = 0;
    1.35 +  long tiltX = 0;
    1.36 +  long tiltY = 0;
    1.37 +  DOMString pointerType = "";
    1.38 +  boolean isPrimary = false;
    1.39 +};
    1.40 +

mercurial