Struct xpcom::interfaces::nsIWebContentHandlerRegistrar
[−]
[src]
#[repr(C)]pub struct nsIWebContentHandlerRegistrar { /* fields omitted */ }
interface nsIWebContentHandlerRegistrar : nsISupports
/**
* nsIWebContentHandlerRegistrar
*
* Applications wishing to use web content handlers need to implement this
* interface. Typically they will prompt the user to confirm adding an entry
* to the local list.
*
* The component must have the contract id defined below so that nsNavigator
* can invoke it.
*/
Methods
impl nsIWebContentHandlerRegistrar
[src]
pub fn coerce<T: nsIWebContentHandlerRegistrarCoerce>(&self) -> &T
[src]
Cast this nsIWebContentHandlerRegistrar
to one of its base interfaces.
impl nsIWebContentHandlerRegistrar
[src]
pub unsafe fn RegisterContentHandler(
&self,
mimeType: &nsAString,
uri: &nsAString,
title: &nsAString,
windowOrBrowser: *const nsISupports
) -> nsresult
[src]
&self,
mimeType: &nsAString,
uri: &nsAString,
title: &nsAString,
windowOrBrowser: *const nsISupports
) -> nsresult
/**
* See documentation in Navigator.webidl
* The additional contentWindow param for both methods represents the dom
* content window from which the method has been called.
*/
void registerContentHandler (in DOMString mimeType, in DOMString uri, in DOMString title, in nsISupports windowOrBrowser);
pub unsafe fn RegisterProtocolHandler(
&self,
protocol: &nsAString,
uri: &nsAString,
title: &nsAString,
windowOrBrowser: *const nsISupports
) -> nsresult
[src]
&self,
protocol: &nsAString,
uri: &nsAString,
title: &nsAString,
windowOrBrowser: *const nsISupports
) -> nsresult
void registerProtocolHandler (in DOMString protocol, in DOMString uri, in DOMString title, in nsISupports windowOrBrowser);
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 nsIWebContentHandlerRegistrar
[src]
const IID: nsIID
IID: nsIID = nsID(1705245437, 3658, 19206, [139, 78, 106, 97, 29, 166, 61, 152])
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 nsIWebContentHandlerRegistrar
[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 nsIWebContentHandlerRegistrar
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.