1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/events/nsIDOMUIEvent.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsIDOMEvent.idl" 1.10 + 1.11 +/** 1.12 + * The nsIDOMUIEvent interface is the datatype for all UI events in the 1.13 + * Document Object Model. 1.14 + * 1.15 + * For more information on this interface please see 1.16 + * http://www.w3.org/TR/DOM-Level-2-Events/ 1.17 + */ 1.18 + 1.19 +[scriptable, builtinclass, uuid(d73852f8-7bd6-477d-8233-117dbf83860b)] 1.20 +interface nsIDOMUIEvent : nsIDOMEvent 1.21 +{ 1.22 + readonly attribute nsIDOMWindow view; 1.23 + readonly attribute long detail; 1.24 + void initUIEvent(in DOMString typeArg, 1.25 + in boolean canBubbleArg, 1.26 + in boolean cancelableArg, 1.27 + in nsIDOMWindow viewArg, 1.28 + in long detailArg); 1.29 + 1.30 + const long SCROLL_PAGE_UP = -32768; 1.31 + const long SCROLL_PAGE_DOWN = 32768; 1.32 + 1.33 + readonly attribute long layerX; 1.34 + readonly attribute long layerY; 1.35 + readonly attribute long pageX; 1.36 + readonly attribute long pageY; 1.37 + readonly attribute unsigned long which; 1.38 + readonly attribute nsIDOMNode rangeParent; 1.39 + readonly attribute long rangeOffset; 1.40 + 1.41 + attribute boolean cancelBubble; 1.42 + 1.43 + readonly attribute boolean isChar; 1.44 +};