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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * For more information see nsIDOMSimpleGestureEvent.idl. michael@0: */ michael@0: michael@0: interface WindowProxy; michael@0: michael@0: interface SimpleGestureEvent : MouseEvent michael@0: { michael@0: const unsigned long DIRECTION_UP = 1; michael@0: const unsigned long DIRECTION_DOWN = 2; michael@0: const unsigned long DIRECTION_LEFT = 4; michael@0: const unsigned long DIRECTION_RIGHT = 8; michael@0: michael@0: const unsigned long ROTATION_COUNTERCLOCKWISE = 1; michael@0: const unsigned long ROTATION_CLOCKWISE = 2; michael@0: michael@0: attribute unsigned long allowedDirections; michael@0: michael@0: readonly attribute unsigned long direction; michael@0: michael@0: readonly attribute double delta; michael@0: michael@0: readonly attribute unsigned long clickCount; michael@0: michael@0: [Throws] michael@0: void initSimpleGestureEvent(DOMString typeArg, michael@0: boolean canBubbleArg, michael@0: boolean cancelableArg, michael@0: WindowProxy? viewArg, michael@0: long detailArg, michael@0: long screenXArg, michael@0: long screenYArg, michael@0: long clientXArg, michael@0: long clientYArg, michael@0: boolean ctrlKeyArg, michael@0: boolean altKeyArg, michael@0: boolean shiftKeyArg, michael@0: boolean metaKeyArg, michael@0: unsigned short buttonArg, michael@0: EventTarget? relatedTargetArg, michael@0: unsigned long allowedDirectionsArg, michael@0: unsigned long directionArg, michael@0: double deltaArg, michael@0: unsigned long clickCount); michael@0: };