michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * For more information see nsIPointerEvent.idl. michael@0: * michael@0: * Portions Copyright 2013 Microsoft Open Technologies, Inc. */ michael@0: michael@0: interface WindowProxy; michael@0: michael@0: [Pref="dom.w3c_pointer_events.enabled", michael@0: Constructor(DOMString type, optional PointerEventInit eventInitDict)] michael@0: interface PointerEvent : MouseEvent michael@0: { michael@0: readonly attribute long pointerId; michael@0: readonly attribute long width; michael@0: readonly attribute long height; michael@0: readonly attribute float pressure; michael@0: readonly attribute long tiltX; michael@0: readonly attribute long tiltY; michael@0: readonly attribute DOMString pointerType; michael@0: readonly attribute boolean isPrimary; michael@0: }; michael@0: michael@0: dictionary PointerEventInit : MouseEventInit michael@0: { michael@0: long pointerId = 0; michael@0: long width = 0; michael@0: long height = 0; michael@0: float pressure = 0; michael@0: long tiltX = 0; michael@0: long tiltY = 0; michael@0: DOMString pointerType = ""; michael@0: boolean isPrimary = false; michael@0: }; michael@0: