Struct xpcom::interfaces::nsIContentPrefObserver
[−]
[src]
#[repr(C)]pub struct nsIContentPrefObserver { /* fields omitted */ }
interface nsIContentPrefObserver : nsISupports
Methods
impl nsIContentPrefObserver
[src]
pub fn coerce<T: nsIContentPrefObserverCoerce>(&self) -> &T
[src]
Cast this nsIContentPrefObserver
to one of its base interfaces.
impl nsIContentPrefObserver
[src]
pub unsafe fn OnContentPrefSet(
&self,
aGroup: &nsAString,
aName: &nsAString,
aValue: *const nsIVariant,
aIsPrivate: bool
) -> nsresult
[src]
&self,
aGroup: &nsAString,
aName: &nsAString,
aValue: *const nsIVariant,
aIsPrivate: bool
) -> nsresult
/**
* Called when a content pref is set to a different value.
*
* @param aGroup the group to which the pref belongs, or null
* if it's a global pref (applies to all sites)
* @param aName the name of the pref that was set
* @param aValue the new value of the pref
* @param aIsPrivate an optional flag determining whether the
* original context is private or not
*/
void onContentPrefSet (in AString aGroup, in AString aName, in nsIVariant aValue, [optional] in boolean aIsPrivate);
pub unsafe fn OnContentPrefRemoved(
&self,
aGroup: &nsAString,
aName: &nsAString,
aIsPrivate: bool
) -> nsresult
[src]
&self,
aGroup: &nsAString,
aName: &nsAString,
aIsPrivate: bool
) -> nsresult
/**
* Called when a content pref is removed.
*
* @param aGroup the group to which the pref belongs, or null
* if it's a global pref (applies to all sites)
* @param aName the name of the pref that was removed
* @param aIsPrivate an optional flag determining whether the
* original context is private or not
*/
void onContentPrefRemoved (in AString aGroup, in AString aName, [optional] in boolean aIsPrivate);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIContentPrefObserver
[src]
const IID: nsIID
IID: nsIID = nsID(1130585171, 46149, 19534, [140, 197, 86, 38, 151, 41, 155, 85])
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 nsIContentPrefObserver
[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 nsIContentPrefObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.