Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 4 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | * |
michael@0 | 6 | * For more information see nsIDOMSimpleGestureEvent.idl. |
michael@0 | 7 | */ |
michael@0 | 8 | |
michael@0 | 9 | interface WindowProxy; |
michael@0 | 10 | |
michael@0 | 11 | interface SimpleGestureEvent : MouseEvent |
michael@0 | 12 | { |
michael@0 | 13 | const unsigned long DIRECTION_UP = 1; |
michael@0 | 14 | const unsigned long DIRECTION_DOWN = 2; |
michael@0 | 15 | const unsigned long DIRECTION_LEFT = 4; |
michael@0 | 16 | const unsigned long DIRECTION_RIGHT = 8; |
michael@0 | 17 | |
michael@0 | 18 | const unsigned long ROTATION_COUNTERCLOCKWISE = 1; |
michael@0 | 19 | const unsigned long ROTATION_CLOCKWISE = 2; |
michael@0 | 20 | |
michael@0 | 21 | attribute unsigned long allowedDirections; |
michael@0 | 22 | |
michael@0 | 23 | readonly attribute unsigned long direction; |
michael@0 | 24 | |
michael@0 | 25 | readonly attribute double delta; |
michael@0 | 26 | |
michael@0 | 27 | readonly attribute unsigned long clickCount; |
michael@0 | 28 | |
michael@0 | 29 | [Throws] |
michael@0 | 30 | void initSimpleGestureEvent(DOMString typeArg, |
michael@0 | 31 | boolean canBubbleArg, |
michael@0 | 32 | boolean cancelableArg, |
michael@0 | 33 | WindowProxy? viewArg, |
michael@0 | 34 | long detailArg, |
michael@0 | 35 | long screenXArg, |
michael@0 | 36 | long screenYArg, |
michael@0 | 37 | long clientXArg, |
michael@0 | 38 | long clientYArg, |
michael@0 | 39 | boolean ctrlKeyArg, |
michael@0 | 40 | boolean altKeyArg, |
michael@0 | 41 | boolean shiftKeyArg, |
michael@0 | 42 | boolean metaKeyArg, |
michael@0 | 43 | unsigned short buttonArg, |
michael@0 | 44 | EventTarget? relatedTargetArg, |
michael@0 | 45 | unsigned long allowedDirectionsArg, |
michael@0 | 46 | unsigned long directionArg, |
michael@0 | 47 | double deltaArg, |
michael@0 | 48 | unsigned long clickCount); |
michael@0 | 49 | }; |