Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 17:42:36 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2001-01-21 09:10:30 +00:00
|
|
|
|
|
|
|
#include "nsIDOMUIEvent.idl"
|
|
|
|
|
2003-01-14 23:05:52 +00:00
|
|
|
/**
|
|
|
|
* The nsIDOMMouseEvent interface is the datatype for all mouse events
|
|
|
|
* in the Document Object Model.
|
|
|
|
*
|
|
|
|
* For more information on this interface please see
|
|
|
|
* http://www.w3.org/TR/DOM-Level-2-Events/
|
|
|
|
*/
|
|
|
|
|
2016-02-26 09:04:00 +00:00
|
|
|
[builtinclass, uuid(5bdab8d8-7933-4c5c-b6d1-ab34481237f7)]
|
2001-01-23 19:55:34 +00:00
|
|
|
interface nsIDOMMouseEvent : nsIDOMUIEvent
|
2001-01-21 09:10:30 +00:00
|
|
|
{
|
2012-04-11 21:55:21 +00:00
|
|
|
readonly attribute long mozMovementX;
|
|
|
|
readonly attribute long mozMovementY;
|
|
|
|
|
2001-02-09 11:56:32 +00:00
|
|
|
readonly attribute boolean ctrlKey;
|
|
|
|
readonly attribute boolean shiftKey;
|
2003-01-14 23:05:52 +00:00
|
|
|
readonly attribute boolean altKey;
|
2001-02-09 11:56:32 +00:00
|
|
|
readonly attribute boolean metaKey;
|
2001-01-22 04:34:24 +00:00
|
|
|
|
2014-02-20 18:38:13 +00:00
|
|
|
readonly attribute short button;
|
2012-04-25 03:00:01 +00:00
|
|
|
readonly attribute unsigned short buttons;
|
2001-01-22 04:34:24 +00:00
|
|
|
readonly attribute nsIDOMEventTarget relatedTarget;
|
|
|
|
|
2016-02-26 09:04:00 +00:00
|
|
|
void initMouseEvent(in DOMString typeArg,
|
|
|
|
in boolean canBubbleArg,
|
|
|
|
in boolean cancelableArg,
|
|
|
|
in mozIDOMWindow viewArg,
|
|
|
|
in long detailArg,
|
|
|
|
in long screenXArg,
|
|
|
|
in long screenYArg,
|
|
|
|
in long clientXArg,
|
|
|
|
in long clientYArg,
|
|
|
|
in boolean ctrlKeyArg,
|
|
|
|
in boolean altKeyArg,
|
|
|
|
in boolean shiftKeyArg,
|
|
|
|
in boolean metaKeyArg,
|
|
|
|
in unsigned short buttonArg,
|
|
|
|
in nsIDOMEventTarget relatedTargetArg);
|
|
|
|
|
|
|
|
|
2011-08-26 07:43:56 +00:00
|
|
|
// Finger or touch pressure event value
|
|
|
|
// ranges between 0.0 and 1.0
|
|
|
|
readonly attribute float mozPressure;
|
|
|
|
|
|
|
|
const unsigned short MOZ_SOURCE_UNKNOWN = 0;
|
|
|
|
const unsigned short MOZ_SOURCE_MOUSE = 1;
|
|
|
|
const unsigned short MOZ_SOURCE_PEN = 2;
|
|
|
|
const unsigned short MOZ_SOURCE_ERASER = 3;
|
|
|
|
const unsigned short MOZ_SOURCE_CURSOR = 4;
|
|
|
|
const unsigned short MOZ_SOURCE_TOUCH = 5;
|
|
|
|
const unsigned short MOZ_SOURCE_KEYBOARD = 6;
|
|
|
|
|
|
|
|
readonly attribute unsigned short mozInputSource;
|
|
|
|
|
2012-04-25 03:00:02 +00:00
|
|
|
bool getModifierState(in DOMString keyArg);
|
2001-01-21 09:10:30 +00:00
|
|
|
};
|