nsISupports
Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)Implemented by: @mozilla.org/chrome/chrome-registry;1
as a service:
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"]
.getService(Components.interfaces.nsIChromeRegistry);
void canonify(in nsIURI aChromeURL); Obsolete since Gecko 1.8 |
void checkForNewChrome(); |
nsIURI convertChromeURL(in nsIURI aChromeURL); |
boolean wrappersEnabled(in nsIURI aURI); Violates the XPCOM interface guidelines |
Constant | Value | Description |
NONE |
0 |
|
PARTIAL |
1 |
|
FULL |
2 |
convertChromeURL()
instead.Converts a chrome URL into a canonical representation by ensuring that the filename portion of the URL is included, as in chrome://package/provider/file
. This is useful because chrome URLs are allowed to be specified in "shorthand", leaving the "file" portion off. In that case, the URL is expanded to chrome://package/provider/package.ext
.
The extension, ext, is one of:
void canonify( in nsIURI aChromeURL );
aChromeURL
Refreshes the chrome list at runtime, looking for new packages and so forth.
void checkForNewChrome();
None.
Resolves a chrome URL to an loadable URI using the information in the registry. A new nsIURI
is returned; the original is left unmodified.
This lets you take a non-canonical chrome URI, such as chrome://package/provider/file
, and convert it into a canonical one. This is useful because chrome URLs are allowed to be specified in "shorthand", leaving the "file" portion off. In that case, the URL is expanded to chrome://package/provider/package.ext
.
The extension, ext
, is one of:
nsIURI convertChromeURL( in nsIURI aChromeURL );
aChromeURL
A new nsIURI
object containing the loadable URI for the specified chrome URL.
Returns whether XPCNativeWrappers are enabled for the specified URI.
boolean wrappersEnabled( in nsIURI aURI );
aURI
true
if XPCNativeWrappers are enabled for the specified URI; otherwise false
.