1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/interfaces/core/nsIDOMUserDataHandler.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "domstubs.idl" 1.9 +#include "nsIVariant.idl" 1.10 + 1.11 + 1.12 +// Introduced in DOM Level 3: 1.13 + 1.14 +[scriptable, function, uuid(91afebdd-a201-4db0-b728-9d59580f0cfd)] 1.15 +interface nsIDOMUserDataHandler : nsISupports 1.16 +{ 1.17 + // OperationType 1.18 + const unsigned short NODE_CLONED = 1; 1.19 + const unsigned short NODE_IMPORTED = 2; 1.20 + const unsigned short NODE_DELETED = 3; 1.21 + const unsigned short NODE_RENAMED = 4; 1.22 + const unsigned short NODE_ADOPTED = 5; 1.23 + 1.24 + void handle(in unsigned short operation, 1.25 + in DOMString key, 1.26 + in nsIVariant data, 1.27 + in nsIDOMNode src, 1.28 + in nsIDOMNode dst); 1.29 +};