Struct xpcom::interfaces::nsIXULChromeRegistry
[−]
[src]
#[repr(C)]pub struct nsIXULChromeRegistry { /* fields omitted */ }
interface nsIXULChromeRegistry : nsIChromeRegistry
Methods
impl nsIXULChromeRegistry
[src]
pub fn coerce<T: nsIXULChromeRegistryCoerce>(&self) -> &T
[src]
Cast this nsIXULChromeRegistry
to one of its base interfaces.
impl nsIXULChromeRegistry
[src]
pub unsafe fn ReloadChrome(&self) -> nsresult
[src]
void reloadChrome ();
pub unsafe fn GetSelectedLocale(
&self,
packageName: &nsACString,
asBCP47: bool,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
packageName: &nsACString,
asBCP47: bool,
_retval: &mut nsACString
) -> nsresult
ACString getSelectedLocale (in ACString packageName, [optional] in boolean asBCP47);
pub unsafe fn IsLocaleRTL(
&self,
package: &nsACString,
_retval: *mut bool
) -> nsresult
[src]
&self,
package: &nsACString,
_retval: *mut bool
) -> nsresult
boolean isLocaleRTL (in ACString package);
pub unsafe fn RefreshSkins(&self) -> nsresult
[src]
void refreshSkins ();
pub unsafe fn AllowScriptsForPackage(
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
[src]
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
/**
* Installable skin XBL is not always granted the same privileges as other
* chrome. This asks the chrome registry whether scripts are allowed to be
* run for a particular chrome URI. Do not pass non-chrome URIs to this
* method.
*/
boolean allowScriptsForPackage (in nsIURI url);
pub unsafe fn AllowContentToAccess(
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
[src]
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
/**
* Content should only be allowed to load chrome JS from certain packages.
* This method reflects the contentaccessible flag on packages.
* Do not pass non-chrome URIs to this method.
*/
boolean allowContentToAccess (in nsIURI url);
pub unsafe fn CanLoadURLRemotely(
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
[src]
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
/**
* Returns true if the passed chrome URL is allowed to be loaded in a remote
* process. This reflects the remoteenabled flag on packages.
* Do not pass non-chrome URIs to this method.
*/
boolean canLoadURLRemotely (in nsIURI url);
pub unsafe fn MustLoadURLRemotely(
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
[src]
&self,
url: *const nsIURI,
_retval: *mut bool
) -> nsresult
/**
* Returns true if the passed chrome URL must be loaded in a remote process.
* This reflects the remoterequired flag on packages.
* Do not pass non-chrome URIs to this method.
*/
boolean mustLoadURLRemotely (in nsIURI url);
Methods from Deref<Target = nsIChromeRegistry>
pub fn coerce<T: nsIChromeRegistryCoerce>(&self) -> &T
[src]
Cast this nsIChromeRegistry
to one of its base interfaces.
pub const NONE: i64
pub const PARTIAL: i64
pub const FULL: i64
pub unsafe fn ConvertChromeURL(
&self,
aChromeURL: *const nsIURI,
_retval: *mut *const nsIURI
) -> nsresult
[src]
&self,
aChromeURL: *const nsIURI,
_retval: *mut *const nsIURI
) -> nsresult
/**
* Resolve a chrome URL to an loadable URI using the information in the
* registry. Does not modify aChromeURL.
*
* 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
*
* where "ext" is:
*
* "xul" for a "content" package,
* "css" for a "skin" package, and
* "dtd" for a "locale" package.
*
* @param aChromeURL the URL that is to be converted.
*/
nsIURI convertChromeURL (in nsIURI aChromeURL);
pub unsafe fn CheckForNewChrome(&self) -> nsresult
[src]
/**
* refresh the chrome list at runtime, looking for new packages/etc
*/
void checkForNewChrome ();
pub unsafe fn WrappersEnabled(&self, aURI: *const nsIURI) -> bool
[src]
/**
* returns whether XPCNativeWrappers are enabled for aURI.
*/
[notxpcom] boolean wrappersEnabled (in nsIURI aURI);
Trait Implementations
impl XpCom for nsIXULChromeRegistry
[src]
const IID: nsIID
IID: nsIID = nsID(2468683231, 24197, 16754, [172, 42, 49, 120, 5, 98, 151, 79])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIXULChromeRegistry
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIXULChromeRegistry
[src]
type Target = nsIChromeRegistry
The resulting type after dereferencing.
fn deref(&self) -> &nsIChromeRegistry
[src]
Dereferences the value.