1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/events/nsIDOMMutationEvent.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 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 +[scriptable, builtinclass, uuid(982d9800-1402-46e5-8ad2-56fb0f4905ef)] 1.12 +interface nsIDOMMutationEvent : nsIDOMEvent 1.13 +{ 1.14 + const unsigned short MODIFICATION = 1; 1.15 + const unsigned short ADDITION = 2; 1.16 + const unsigned short REMOVAL = 3; 1.17 + 1.18 + readonly attribute nsIDOMNode relatedNode; 1.19 + readonly attribute DOMString prevValue; 1.20 + readonly attribute DOMString newValue; 1.21 + readonly attribute DOMString attrName; 1.22 + readonly attribute unsigned short attrChange; 1.23 + void initMutationEvent(in DOMString typeArg, 1.24 + in boolean canBubbleArg, 1.25 + in boolean cancelableArg, 1.26 + in nsIDOMNode relatedNodeArg, 1.27 + in DOMString prevValueArg, 1.28 + in DOMString newValueArg, 1.29 + in DOMString attrNameArg, 1.30 + in unsigned short attrChangeArg); 1.31 +};