toolkit/devtools/server/nsIJSInspector.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial