Struct xpcom::interfaces::nsIToolkitChromeRegistry
[−]
[src]
#[repr(C)]pub struct nsIToolkitChromeRegistry { /* fields omitted */ }
interface nsIToolkitChromeRegistry : nsIXULChromeRegistry
Methods
impl nsIToolkitChromeRegistry
[src]
pub fn coerce<T: nsIToolkitChromeRegistryCoerce>(&self) -> &T
[src]
Cast this nsIToolkitChromeRegistry
to one of its base interfaces.
impl nsIToolkitChromeRegistry
[src]
pub unsafe fn CheckForOSAccessibility(&self) -> nsresult
[src]
/**
* If the OS has a "high-visibility" or "disabled-friendly" theme set,
* we want to force mozilla into the classic theme, which (for the most part
* obeys the system color/font settings. We cannot do this at initialization,
* because it depends on the toolkit (GTK2) being initialized, which is
* not the case in some embedding situations. Embedders have to manually
* call this method during the startup process.
*/
void checkForOSAccessibility ();
pub unsafe fn GetLocalesForPackage(
&self,
aPackage: &nsACString,
_retval: *mut *const nsIUTF8StringEnumerator
) -> nsresult
[src]
&self,
aPackage: &nsACString,
_retval: *mut *const nsIUTF8StringEnumerator
) -> nsresult
/**
* Get a list of locales available for the specified package.
*/
nsIUTF8StringEnumerator getLocalesForPackage (in AUTF8String aPackage);
Methods from Deref<Target = nsIXULChromeRegistry>
pub fn coerce<T: nsIXULChromeRegistryCoerce>(&self) -> &T
[src]
Cast this nsIXULChromeRegistry
to one of its base interfaces.
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);
Trait Implementations
impl XpCom for nsIToolkitChromeRegistry
[src]
const IID: nsIID
IID: nsIID = nsID(2267505948, 38192, 17824, [184, 30, 14, 6, 144, 195, 12, 80])
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 nsIToolkitChromeRegistry
[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 nsIToolkitChromeRegistry
[src]
type Target = nsIXULChromeRegistry
The resulting type after dereferencing.
fn deref(&self) -> &nsIXULChromeRegistry
[src]
Dereferences the value.