B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
 * A WebConsoleFrame instance is an interactive console initialized *per tab*
 * that displays console log data as well as provides an interactive terminal to
 * manipulate the current tab's document content.
 *
 * The WebConsoleFrame is responsible for the actual Web Console UI
 * implementation.
 *
 * @param object aWebConsoleOwner
 *        The WebConsole owner object.
 * @param string aPosition
 *        Tells the UI location for the Web Console.
 */
A WebConsoleFrame instance is an interactive console initialized *per tab
that displays console log data as well as provides an interactive terminal to
manipulate the current tab's document content.

The WebConsoleFrame is responsible for the actual Web Console UI
implementation.

@param object aWebConsoleOwner
The WebConsole owner object.
@param string aPosition
Tells the UI location for the Web Console.
A WebConsoleFrame instance is an interactive console initialized * per tab that displays console log data as well as provides an interactive terminal to manipulate the current tab ' s document content . The WebConsoleFrame is responsible for the actual Web Console UI implementation . @param object aWebConsoleOwner The WebConsole owner object . @param string aPosition Tells the UI location for the Web Console .
function WebConsoleFrame(aWebConsoleOwner, aPosition)
{
  this.owner = aWebConsoleOwner;
  this.hudId = this.owner.hudId;
  this._cssNodes = {};
  this._outputQueue = [];
  this._pruneCategoriesQueue = {};
  this._networkRequests = {};
  this._toggleFilter = this._toggleFilter.bind(this);
  this._onPositionConsoleCommand = this._onPositionConsoleCommand.bind(this);
  this._flushMessageQueue = this._flushMessageQueue.bind(this);
  this._outputTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
  this._outputTimerInitialized = false;
  this._initDefaultFilterPrefs();
  this._commandController = new CommandController(this);
  this.positionConsole(aPosition, window);
  this.jsterm = new JSTerm(this);
  this.jsterm.inputNode.focus();
  this._initConnection();
}
function WebConsoleFrame ( aWebConsoleOwner , aPosition ) { this . owner = aWebConsoleOwner ; this . hudId = this . owner . hudId ; this . _cssNodes = { } ; this . _outputQueue = [ ] ; this . _pruneCategoriesQueue = { } ; this . _networkRequests = { } ; this . _toggleFilter = this . _toggleFilter . bind ( this ) ; this . _onPositionConsoleCommand = this . _onPositionConsoleCommand . bind ( this ) ; this . _flushMessageQueue = this . _flushMessageQueue . bind ( this ) ; this . _outputTimer = Cc [ "@mozilla.org/timer;1" ] . createInstance ( Ci . nsITimer ) ; this . _outputTimerInitialized = false ; this . _initDefaultFilterPrefs ( ) ; this . _commandController = new CommandController ( this ) ; this . positionConsole ( aPosition , window ) ; this . jsterm = new JSTerm ( this ) ; this . jsterm . inputNode . focus ( ) ; this . _initConnection ( ) ; }
A WebConsoleFrame instance is an interactive console initialized *per tab
 that displays console log data as well as provides an interactive terminal to
 manipulate the current tab's document content.
A WebConsoleFrame instance is an interactive console initialized * per tab that displays console log data as well as provides an interactive terminal to manipulate the current tab ' s document content .