UNPKG

selenium-webdriver

Version:

The official WebDriver JavaScript bindings from the Selenium project

17 lines (15 loc) 6.57 kB
<!DOCTYPE html><meta charset="UTF-8"><meta http-equiv="Content-Language" content="en" /><title>goog.debug.entryPointRegistry</title><link href="dossier.css" rel="stylesheet" type="text/css"><div id="main-wrapper"><input type="checkbox" id="sidenav-toggle" /><main><header><h1>Namespace goog.debug.entryPointRegistry</h1><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l29">code &raquo;</a></header><section></section><div id="visibility-controls"><b>Show:</b><label for="show-public"><span><input type="checkbox" id="show-public" checked/></span>Public</label><label for="show-protected"><span><input type="checkbox" id="show-protected"/></span>Protected</label><label for="show-private"><span><input type="checkbox" id="show-private"/></span>Private</label></div><section id="static-functions"><h2>Global Functions</h2><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l129">code &raquo;</a><span class="member"><a name="goog.debug.entryPointRegistry.monitorAll">goog.debug.entryPointRegistry.monitorAll</a> <span class="args">( monitor )</span></span></div><p>Configures a monitor to wrap all entry points. Entry points that have already been registered are immediately wrapped by the monitor. When an entry point is registered in the future, it will also be wrapped by the monitor when it is registered.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>monitor: <code class="type">!<a href="interface_goog_debug_EntryPointMonitor.html">goog.debug.EntryPointMonitor</a></code><dd>An entry point monitor.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l106">code &raquo;</a><span class="member"><a name="goog.debug.entryPointRegistry.register">goog.debug.entryPointRegistry.register</a> <span class="args">( callback )</span></span></div><p>Register an entry point with this module. The entry point will be instrumented when a monitor is passed to goog.debug.entryPointRegistry.monitorAll. If this has already occurred, the entry point is instrumented immediately.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>callback: <code class="type">function(!<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function">Function</a>)</code><dd>A callback function which is called with a transforming function to instrument the entry point. The callback is responsible for wrapping the relevant entry point with the transforming function.</dl></table></div></details></div></div><div class="wrap-details public"><div><details class="function"><summary><div><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l149">code &raquo;</a><span class="member"><a name="goog.debug.entryPointRegistry.unmonitorAllIfPossible">goog.debug.entryPointRegistry.unmonitorAllIfPossible</a> <span class="args">( monitor )</span></span></div><p>Try to unmonitor all the entry points that have already been registered. If an entry point is registered in the future, it will not be wrapped by the monitor when it is registered. Note that this may fail if the entry points have additional wrapping.</summary><div class="info"><table><tbody><tr><th>Parameters<tr><td><dl><dt>monitor: <code class="type">!<a href="interface_goog_debug_EntryPointMonitor.html">goog.debug.EntryPointMonitor</a></code><dd>The last monitor to wrap the entry points.</dl><tr><th>Throws<tr><td><dl><dt><code class="type"><a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Error">Error</a></code><dd>If the monitor is not the most recently configured monitor.</dl></table></div></details></div></div></section><section id="static-properties"><h2>Global Properties</h2><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l91">code &raquo;</a><span class="member"><a name="goog.debug.entryPointRegistry.monitorsMayExist_">goog.debug.entryPointRegistry.monitorsMayExist_</a> : <code class="type"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code></span></div><p>Whether goog.debug.entryPointRegistry.monitorAll has ever been called. Checking this allows the compiler to optimize out the registrations.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l82">code &raquo;</a><span class="member"><a name="goog.debug.entryPointRegistry.monitors_">goog.debug.entryPointRegistry.monitors_</a> : <code class="type">!<a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></code></span></div><p>Monitors that should wrap all the entry points.</summary></details></div></div><div class="wrap-details private"><div><details><summary><div><a class="source" href="source/lib/goog/debug/entrypointregistry.js.src.html#l74">code &raquo;</a><span class="member"><a name="goog.debug.entryPointRegistry.refList_">goog.debug.entryPointRegistry.refList_</a> : <code class="type">!<a href="http://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></code></span></div><p>An array of entry point callbacks.</summary></details></div></div></section></main><nav id="topnav"><div><div id="menubutton"><label for="sidenav-toggle">Menu</label></div><form id="searchbox"><div><input type="search" placeholder="Search" tabindex="1"></div></form></div></nav><nav id="sidenav"><input type="checkbox" id="sidenav-types-ctrl" /><input type="checkbox" id="sidenav-files-ctrl" /><input type="checkbox" id="sidenav-modules-ctrl" /><a id="sidenav-overview"><div><h4>Overview</h4></div></a><div id="sidenav-types"><label for="sidenav-types-ctrl"><h4>Types</h4></label><i>Loading</i></div><div id="sidenav-modules"><label for="sidenav-modules-ctrl"><h4>Modules</h4></label><i>Loading</i></div><div id="sidenav-files"><label for="sidenav-files-ctrl"><h4>Files</h4></label><i>Loading</i></div><a href="license.html"><div><h4>License</h4></div></a></nav><div id="push-footer"></div></div><footer><a href="https://github.com/jleyba/js-dossier">Generated by dossier</a></footer><script src="types.js"></script><script src="dossier.js"></script>