Struct xpcom::interfaces::nsIAnnotationObserver
[−]
[src]
#[repr(C)]pub struct nsIAnnotationObserver { /* fields omitted */ }
interface nsIAnnotationObserver : nsISupports
Methods
impl nsIAnnotationObserver
[src]
pub fn coerce<T: nsIAnnotationObserverCoerce>(&self) -> &T
[src]
Cast this nsIAnnotationObserver
to one of its base interfaces.
impl nsIAnnotationObserver
[src]
pub unsafe fn OnPageAnnotationSet(
&self,
aPage: *const nsIURI,
aName: &nsACString
) -> nsresult
[src]
&self,
aPage: *const nsIURI,
aName: &nsACString
) -> nsresult
/**
* Called when an annotation value is set. It could be a new annotation,
* or it could be a new value for an existing annotation.
*/
void onPageAnnotationSet (in nsIURI aPage, in AUTF8String aName);
pub unsafe fn OnItemAnnotationSet(
&self,
aItemId: int64_t,
aName: &nsACString,
aSource: uint16_t,
aDontUpdateLastModified: bool
) -> nsresult
[src]
&self,
aItemId: int64_t,
aName: &nsACString,
aSource: uint16_t,
aDontUpdateLastModified: bool
) -> nsresult
void onItemAnnotationSet (in long long aItemId, in AUTF8String aName, in unsigned short aSource, in boolean aDontUpdateLastModified);
pub unsafe fn OnPageAnnotationRemoved(
&self,
aURI: *const nsIURI,
aName: &nsACString
) -> nsresult
[src]
&self,
aURI: *const nsIURI,
aName: &nsACString
) -> nsresult
/**
* Called when an annotation is deleted. If aName is empty, then ALL
* annotations for the given URI have been deleted. This is not called when
* annotations are expired (normally happens when the app exits).
*/
void onPageAnnotationRemoved (in nsIURI aURI, in AUTF8String aName);
pub unsafe fn OnItemAnnotationRemoved(
&self,
aItemId: int64_t,
aName: &nsACString,
aSource: uint16_t
) -> nsresult
[src]
&self,
aItemId: int64_t,
aName: &nsACString,
aSource: uint16_t
) -> nsresult
void onItemAnnotationRemoved (in long long aItemId, in AUTF8String aName, in unsigned short aSource);
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 nsIAnnotationObserver
[src]
const IID: nsIID
IID: nsIID = nsID(1677629664, 26761, 19500, [172, 159, 112, 62, 75, 194, 80, 39])
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 nsIAnnotationObserver
[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 nsIAnnotationObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.