2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "nsIDOMEvent.idl"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDOMUIEvent interface is the datatype for all UI events in the
|
|
|
|
* Document Object Model.
|
|
|
|
*
|
|
|
|
* For more information on this interface please see
|
|
|
|
* http://www.w3.org/TR/DOM-Level-2-Events/
|
|
|
|
*/
|
|
|
|
|
2012-12-22 00:18:08 -08:00
|
|
|
[scriptable, builtinclass, uuid(d73852f8-7bd6-477d-8233-117dbf83860b)]
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIDOMUIEvent : nsIDOMEvent
|
|
|
|
{
|
2011-04-23 23:54:25 -07:00
|
|
|
readonly attribute nsIDOMWindow view;
|
2007-03-22 10:30:00 -07:00
|
|
|
readonly attribute long detail;
|
|
|
|
void initUIEvent(in DOMString typeArg,
|
|
|
|
in boolean canBubbleArg,
|
|
|
|
in boolean cancelableArg,
|
2011-04-23 23:54:25 -07:00
|
|
|
in nsIDOMWindow viewArg,
|
2007-03-22 10:30:00 -07:00
|
|
|
in long detailArg);
|
2011-08-26 00:43:49 -07:00
|
|
|
|
|
|
|
const long SCROLL_PAGE_UP = -32768;
|
|
|
|
const long SCROLL_PAGE_DOWN = 32768;
|
|
|
|
|
|
|
|
readonly attribute long layerX;
|
|
|
|
readonly attribute long layerY;
|
|
|
|
readonly attribute long pageX;
|
|
|
|
readonly attribute long pageY;
|
|
|
|
readonly attribute unsigned long which;
|
|
|
|
readonly attribute nsIDOMNode rangeParent;
|
|
|
|
readonly attribute long rangeOffset;
|
|
|
|
|
|
|
|
attribute boolean cancelBubble;
|
|
|
|
|
|
|
|
readonly attribute boolean isChar;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
2011-12-14 12:36:46 -08:00
|
|
|
|
2012-03-12 21:44:48 -07:00
|
|
|
dictionary UIEventInit : EventInit
|
2011-12-14 12:36:46 -08:00
|
|
|
{
|
2012-03-12 21:44:48 -07:00
|
|
|
nsIDOMWindow view;
|
|
|
|
long detail;
|
2011-12-14 12:36:46 -08:00
|
|
|
};
|