toolkit/devtools/server/nsIJSInspector.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/devtools/server/nsIJSInspector.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     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 "nsISupports.idl"
     1.9 +
    1.10 +/**
    1.11 + * Utilities for integrating the JSInspector object into an XPCOM
    1.12 + * application.
    1.13 + */
    1.14 +[scriptable, uuid(6758d0d7-e96a-4c5c-bca8-3bcbe5a15943)]
    1.15 +interface nsIJSInspector : nsISupports
    1.16 +{
    1.17 +  /**
    1.18 +   * Process the thread's event queue until exit.
    1.19 +   *
    1.20 +   * @param requestor A token the requestor passes to identify the pause.
    1.21 +   *
    1.22 +   * @return depth Returns the number of times the event loop
    1.23 +   *         has been nested using this API.
    1.24 +   */
    1.25 +  unsigned long enterNestedEventLoop(in jsval requestor);
    1.26 +
    1.27 +  /**
    1.28 +   * Exits the current nested event loop.
    1.29 +   *
    1.30 +   * @return depth The number of nested event loops left after
    1.31 +   *         exiting the event loop.
    1.32 +   *
    1.33 +   * @throws NS_ERROR_FAILURE if there are no nested event loops
    1.34 +   *         running.
    1.35 +   */
    1.36 +  unsigned long exitNestedEventLoop();
    1.37 +
    1.38 +  readonly attribute unsigned long eventLoopNestLevel;
    1.39 +
    1.40 +  /**
    1.41 +   * The token provided by the actor that last requested a nested event loop.
    1.42 +   */
    1.43 +  readonly attribute jsval lastNestRequestor;
    1.44 +};

mercurial