(NOT PART OF BUILD) Document Inspector

This commit is contained in:
hewitt%netscape.com 2006-07-27 14:26:58 +00:00
Родитель 76987f0415
Коммит 2c6a80d44a
1 изменённых файлов: 63 добавлений и 0 удалений

Просмотреть файл

@ -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()
{
}
};