Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | * Utilities for integrating the JSInspector object into an XPCOM |
michael@0 | 9 | * application. |
michael@0 | 10 | */ |
michael@0 | 11 | [scriptable, uuid(6758d0d7-e96a-4c5c-bca8-3bcbe5a15943)] |
michael@0 | 12 | interface nsIJSInspector : nsISupports |
michael@0 | 13 | { |
michael@0 | 14 | /** |
michael@0 | 15 | * Process the thread's event queue until exit. |
michael@0 | 16 | * |
michael@0 | 17 | * @param requestor A token the requestor passes to identify the pause. |
michael@0 | 18 | * |
michael@0 | 19 | * @return depth Returns the number of times the event loop |
michael@0 | 20 | * has been nested using this API. |
michael@0 | 21 | */ |
michael@0 | 22 | unsigned long enterNestedEventLoop(in jsval requestor); |
michael@0 | 23 | |
michael@0 | 24 | /** |
michael@0 | 25 | * Exits the current nested event loop. |
michael@0 | 26 | * |
michael@0 | 27 | * @return depth The number of nested event loops left after |
michael@0 | 28 | * exiting the event loop. |
michael@0 | 29 | * |
michael@0 | 30 | * @throws NS_ERROR_FAILURE if there are no nested event loops |
michael@0 | 31 | * running. |
michael@0 | 32 | */ |
michael@0 | 33 | unsigned long exitNestedEventLoop(); |
michael@0 | 34 | |
michael@0 | 35 | readonly attribute unsigned long eventLoopNestLevel; |
michael@0 | 36 | |
michael@0 | 37 | /** |
michael@0 | 38 | * The token provided by the actor that last requested a nested event loop. |
michael@0 | 39 | */ |
michael@0 | 40 | readonly attribute jsval lastNestRequestor; |
michael@0 | 41 | }; |