michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDOMEvent.idl" michael@0: michael@0: /** michael@0: * The nsIDOMUIEvent interface is the datatype for all UI events in the michael@0: * Document Object Model. michael@0: * michael@0: * For more information on this interface please see michael@0: * http://www.w3.org/TR/DOM-Level-2-Events/ michael@0: */ michael@0: michael@0: [scriptable, builtinclass, uuid(d73852f8-7bd6-477d-8233-117dbf83860b)] michael@0: interface nsIDOMUIEvent : nsIDOMEvent michael@0: { michael@0: readonly attribute nsIDOMWindow view; michael@0: readonly attribute long detail; michael@0: void initUIEvent(in DOMString typeArg, michael@0: in boolean canBubbleArg, michael@0: in boolean cancelableArg, michael@0: in nsIDOMWindow viewArg, michael@0: in long detailArg); michael@0: michael@0: const long SCROLL_PAGE_UP = -32768; michael@0: const long SCROLL_PAGE_DOWN = 32768; michael@0: michael@0: readonly attribute long layerX; michael@0: readonly attribute long layerY; michael@0: readonly attribute long pageX; michael@0: readonly attribute long pageY; michael@0: readonly attribute unsigned long which; michael@0: readonly attribute nsIDOMNode rangeParent; michael@0: readonly attribute long rangeOffset; michael@0: michael@0: attribute boolean cancelBubble; michael@0: michael@0: readonly attribute boolean isChar; michael@0: };