RetroZilla/extensions/inspector/resources/content/res/viewer-registry.rdf
2015-10-20 23:03:22 -04:00

90 lines
3.2 KiB
XML

<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ins="http://www.mozilla.org/inspector#">
<!-- Inspector-specific RDF attributes
xmlns:ins Sets the ins: prefix to an Inspector-specific namespace URI.
ins:uid Sets the basic viewer filename Inspector uses to find the viewer XUL file.
For example, ins:uid="dom" leads to chrome://inspector/content/viewers/dom/dom.xul
(ViewerRegistry.js#getEntryURL())
ins:panels This determines which DOM Inspector panels, by id, the viewer referenced is valid for.
For example, ins:panels="bxObjectPanel bxObjPanel" means the panel id must be
bxObjectPanel or bxObjPanel.
ins:description
This sets a title for the viewer.
ins:icon This sets an icon for the viewer. Currently unused.
ins:filter This determines which nodes (or in the case of JavaScript Object
viewer, values), the viewer referenced is valid for. For example,
ins:filter="return object instanceof Components.interfaces.nsIDOMDocument;"
is a JavaScript fragment ViewerRegistry.js uses to define a filter
function if the panel's subject node is an instance of nsIDOMDocument.
-->
<rdf:Seq about="inspector:viewers">
<rdf:li><rdf:Description
ins:uid="dom"
ins:panels="bxDocPanel"
ins:description="DOM Nodes"
ins:icon="chrome://inspector/content/viewers/dom/dom-icon.gif"
ins:filter="return object instanceof Components.interfaces.nsIDOMDocument;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="stylesheets"
ins:panels="bxDocPanel"
ins:description="Stylesheets"
ins:filter="return object instanceof Components.interfaces.nsIDOMDocument;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="domNode"
ins:panels="bxObjectPanel bxObjPanel"
ins:description="DOM Node"
ins:filter="return object instanceof Components.interfaces.nsIDOMNode;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="boxModel"
ins:panels="bxObjectPanel bxObjPanel"
ins:description="Box Model"
ins:filter="return object instanceof Components.interfaces.nsIDOMElement;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="xblBindings"
ins:panels="bxObjectPanel bxObjPanel"
ins:description="XBL Bindings"
ins:filter="return object instanceof Components.interfaces.nsIDOMElement;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="styleRules"
ins:panels="bxObjectPanel bxObjPanel"
ins:description="CSS Style Rules"
ins:filter="return object instanceof Components.interfaces.nsIDOMElement || object instanceof Components.interfaces.nsIDOMCSSStyleSheet;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="computedStyle"
ins:panels="bxObjectPanel bxObjPanel"
ins:description="Computed Style"
ins:filter="return object instanceof Components.interfaces.nsIDOMElement;"/>
</rdf:li>
<rdf:li><rdf:Description
ins:uid="jsObject"
ins:panels="bxDocPanel bxObjectPanel bxObjPanel"
ins:description="Javascript Object"
ins:filter="return true;"/>
</rdf:li>
</rdf:Seq>
</rdf:RDF>