Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | interface nsIScriptElement; |
michael@0 | 9 | interface nsIURI; |
michael@0 | 10 | |
michael@0 | 11 | [scriptable, uuid(7b787204-76fb-4764-96f1-fb7a666db4f4)] |
michael@0 | 12 | interface nsIScriptLoaderObserver : nsISupports { |
michael@0 | 13 | |
michael@0 | 14 | /** |
michael@0 | 15 | * The script is available for evaluation. For inline scripts, this |
michael@0 | 16 | * method will be called synchronously. For externally loaded scripts, |
michael@0 | 17 | * this method will be called when the load completes. |
michael@0 | 18 | * |
michael@0 | 19 | * @param aResult A result code representing the result of loading |
michael@0 | 20 | * a script. If this is a failure code, script evaluation |
michael@0 | 21 | * will not occur. |
michael@0 | 22 | * @param aElement The element being processed. |
michael@0 | 23 | * @param aIsInline Is this an inline script or externally loaded? |
michael@0 | 24 | * @param aURI What is the URI of the script (the document URI if |
michael@0 | 25 | * it is inline). |
michael@0 | 26 | * @param aLineNo At what line does the script appear (generally 1 |
michael@0 | 27 | * if it is a loaded script). |
michael@0 | 28 | */ |
michael@0 | 29 | void scriptAvailable(in nsresult aResult, |
michael@0 | 30 | in nsIScriptElement aElement, |
michael@0 | 31 | in boolean aIsInline, |
michael@0 | 32 | in nsIURI aURI, |
michael@0 | 33 | in int32_t aLineNo); |
michael@0 | 34 | |
michael@0 | 35 | /** |
michael@0 | 36 | * The script has been evaluated. |
michael@0 | 37 | * |
michael@0 | 38 | * @param aResult A result code representing the success or failure of |
michael@0 | 39 | * the script evaluation. |
michael@0 | 40 | * @param aElement The element being processed. |
michael@0 | 41 | * @param aIsInline Is this an inline script or externally loaded? |
michael@0 | 42 | */ |
michael@0 | 43 | void scriptEvaluated(in nsresult aResult, |
michael@0 | 44 | in nsIScriptElement aElement, |
michael@0 | 45 | in boolean aIsInline); |
michael@0 | 46 | |
michael@0 | 47 | }; |