summaryrefslogtreecommitdiffstats
path: root/dom/webidl/SimpleGestureEvent.webidl
blob: 76d0d20f6af46d0eb8cb98bf5163f95466610c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * For more information see nsIDOMSimpleGestureEvent.idl.
 */

interface SimpleGestureEvent : MouseEvent
{
  const unsigned long DIRECTION_UP = 1;
  const unsigned long DIRECTION_DOWN = 2;
  const unsigned long DIRECTION_LEFT = 4;
  const unsigned long DIRECTION_RIGHT = 8;

  const unsigned long ROTATION_COUNTERCLOCKWISE = 1;
  const unsigned long ROTATION_CLOCKWISE = 2;

  attribute unsigned long allowedDirections;

  readonly attribute unsigned long direction;

  readonly attribute double delta;

  readonly attribute unsigned long clickCount;

  void initSimpleGestureEvent(DOMString typeArg,
                              optional boolean canBubbleArg = false,
                              optional boolean cancelableArg = false,
                              optional Window? viewArg = null,
                              optional long detailArg = 0,
                              optional long screenXArg = 0,
                              optional long screenYArg = 0,
                              optional long clientXArg = 0,
                              optional long clientYArg = 0,
                              optional boolean ctrlKeyArg = false,
                              optional boolean altKeyArg = false,
                              optional boolean shiftKeyArg = false,
                              optional boolean metaKeyArg = false,
                              optional short buttonArg = 0,
                              optional EventTarget? relatedTargetArg = null,
                              optional unsigned long allowedDirectionsArg = 0,
                              optional unsigned long directionArg = 0,
                              optional double deltaArg = 0,
                              optional unsigned long clickCount = 0);
};