mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
(NOT PART OF BUILD) Document Inspector
This commit is contained in:
parent
76987f0415
commit
2c6a80d44a
@ -0,0 +1,63 @@
|
||||
/***************************************************************
|
||||
* JSObjectViewer --------------------------------------------
|
||||
* The viewer for all facets of a javascript object.
|
||||
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
* REQUIRED IMPORTS:
|
||||
* chrome://inspector/content/jsutil/xpcom/XPCU.js
|
||||
****************************************************************/
|
||||
|
||||
//////////// global variables /////////////////////
|
||||
|
||||
var viewer;
|
||||
|
||||
//////////// global constants ////////////////////
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
window.addEventListener("load", JSObjectViewer_initialize, false);
|
||||
|
||||
function JSObjectViewer_initialize()
|
||||
{
|
||||
viewer = new JSObjectViewer();
|
||||
viewer.initialize(parent.FrameExchange.receiveData(window));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//// class JSObjectViewer
|
||||
|
||||
function JSObjectViewer()
|
||||
{
|
||||
this.mURL = window.location;
|
||||
}
|
||||
|
||||
JSObjectViewer.prototype =
|
||||
{
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//// Initialization
|
||||
|
||||
mViewee: null,
|
||||
mPane: null,
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//// interface inIViewer
|
||||
|
||||
get uid() { return "computedStyle" },
|
||||
get pane() { return this.mPane },
|
||||
|
||||
get viewee() { return this.mViewee },
|
||||
set viewee(aObject)
|
||||
{
|
||||
},
|
||||
|
||||
initialize: function(aPane)
|
||||
{
|
||||
this.mPane = aPane;
|
||||
aPane.onViewerConstructed(this);
|
||||
},
|
||||
|
||||
destroy: function()
|
||||
{
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user