1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/SimpleGestureEvent.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 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 file, 1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + * 1.9 + * For more information see nsIDOMSimpleGestureEvent.idl. 1.10 + */ 1.11 + 1.12 +interface WindowProxy; 1.13 + 1.14 +interface SimpleGestureEvent : MouseEvent 1.15 +{ 1.16 + const unsigned long DIRECTION_UP = 1; 1.17 + const unsigned long DIRECTION_DOWN = 2; 1.18 + const unsigned long DIRECTION_LEFT = 4; 1.19 + const unsigned long DIRECTION_RIGHT = 8; 1.20 + 1.21 + const unsigned long ROTATION_COUNTERCLOCKWISE = 1; 1.22 + const unsigned long ROTATION_CLOCKWISE = 2; 1.23 + 1.24 + attribute unsigned long allowedDirections; 1.25 + 1.26 + readonly attribute unsigned long direction; 1.27 + 1.28 + readonly attribute double delta; 1.29 + 1.30 + readonly attribute unsigned long clickCount; 1.31 + 1.32 + [Throws] 1.33 + void initSimpleGestureEvent(DOMString typeArg, 1.34 + boolean canBubbleArg, 1.35 + boolean cancelableArg, 1.36 + WindowProxy? viewArg, 1.37 + long detailArg, 1.38 + long screenXArg, 1.39 + long screenYArg, 1.40 + long clientXArg, 1.41 + long clientYArg, 1.42 + boolean ctrlKeyArg, 1.43 + boolean altKeyArg, 1.44 + boolean shiftKeyArg, 1.45 + boolean metaKeyArg, 1.46 + unsigned short buttonArg, 1.47 + EventTarget? relatedTargetArg, 1.48 + unsigned long allowedDirectionsArg, 1.49 + unsigned long directionArg, 1.50 + double deltaArg, 1.51 + unsigned long clickCount); 1.52 +};