dom/interfaces/events/nsIDOMMouseEvent.idl

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #include "nsIDOMUIEvent.idl"
michael@0 7
michael@0 8 /**
michael@0 9 * The nsIDOMMouseEvent interface is the datatype for all mouse events
michael@0 10 * in the Document Object Model.
michael@0 11 *
michael@0 12 * For more information on this interface please see
michael@0 13 * http://www.w3.org/TR/DOM-Level-2-Events/
michael@0 14 */
michael@0 15
michael@0 16 [scriptable, builtinclass, uuid(df068636-9a5b-11e3-b71f-2c27d728e7f9)]
michael@0 17 interface nsIDOMMouseEvent : nsIDOMUIEvent
michael@0 18 {
michael@0 19 readonly attribute long screenX;
michael@0 20 readonly attribute long screenY;
michael@0 21
michael@0 22 readonly attribute long mozMovementX;
michael@0 23 readonly attribute long mozMovementY;
michael@0 24
michael@0 25 readonly attribute long clientX;
michael@0 26 readonly attribute long clientY;
michael@0 27
michael@0 28 readonly attribute boolean ctrlKey;
michael@0 29 readonly attribute boolean shiftKey;
michael@0 30 readonly attribute boolean altKey;
michael@0 31 readonly attribute boolean metaKey;
michael@0 32
michael@0 33 readonly attribute short button;
michael@0 34 readonly attribute unsigned short buttons;
michael@0 35 readonly attribute nsIDOMEventTarget relatedTarget;
michael@0 36
michael@0 37 void initMouseEvent(in DOMString typeArg,
michael@0 38 in boolean canBubbleArg,
michael@0 39 in boolean cancelableArg,
michael@0 40 in nsIDOMWindow viewArg,
michael@0 41 in long detailArg,
michael@0 42 in long screenXArg,
michael@0 43 in long screenYArg,
michael@0 44 in long clientXArg,
michael@0 45 in long clientYArg,
michael@0 46 in boolean ctrlKeyArg,
michael@0 47 in boolean altKeyArg,
michael@0 48 in boolean shiftKeyArg,
michael@0 49 in boolean metaKeyArg,
michael@0 50 in unsigned short buttonArg,
michael@0 51 in nsIDOMEventTarget relatedTargetArg);
michael@0 52
michael@0 53 // Finger or touch pressure event value
michael@0 54 // ranges between 0.0 and 1.0
michael@0 55 readonly attribute float mozPressure;
michael@0 56
michael@0 57 const unsigned short MOZ_SOURCE_UNKNOWN = 0;
michael@0 58 const unsigned short MOZ_SOURCE_MOUSE = 1;
michael@0 59 const unsigned short MOZ_SOURCE_PEN = 2;
michael@0 60 const unsigned short MOZ_SOURCE_ERASER = 3;
michael@0 61 const unsigned short MOZ_SOURCE_CURSOR = 4;
michael@0 62 const unsigned short MOZ_SOURCE_TOUCH = 5;
michael@0 63 const unsigned short MOZ_SOURCE_KEYBOARD = 6;
michael@0 64
michael@0 65 readonly attribute unsigned short mozInputSource;
michael@0 66
michael@0 67 void initNSMouseEvent(in DOMString typeArg,
michael@0 68 in boolean canBubbleArg,
michael@0 69 in boolean cancelableArg,
michael@0 70 in nsIDOMWindow viewArg,
michael@0 71 in long detailArg,
michael@0 72 in long screenXArg,
michael@0 73 in long screenYArg,
michael@0 74 in long clientXArg,
michael@0 75 in long clientYArg,
michael@0 76 in boolean ctrlKeyArg,
michael@0 77 in boolean altKeyArg,
michael@0 78 in boolean shiftKeyArg,
michael@0 79 in boolean metaKeyArg,
michael@0 80 in unsigned short buttonArg,
michael@0 81 in nsIDOMEventTarget relatedTargetArg,
michael@0 82 in float pressure,
michael@0 83 in unsigned short inputSourceArg);
michael@0 84
michael@0 85 bool getModifierState(in DOMString keyArg);
michael@0 86 };

mercurial