Struct xpcom::interfaces::nsIApplicationChooser
[−]
[src]
#[repr(C)]pub struct nsIApplicationChooser { /* fields omitted */ }
interface nsIApplicationChooser : nsISupports
Methods
impl nsIApplicationChooser
[src]
pub fn coerce<T: nsIApplicationChooserCoerce>(&self) -> &T
[src]
Cast this nsIApplicationChooser
to one of its base interfaces.
impl nsIApplicationChooser
[src]
pub unsafe fn Init(
&self,
parent: *const mozIDOMWindowProxy,
title: &nsACString
) -> nsresult
[src]
&self,
parent: *const mozIDOMWindowProxy,
title: &nsACString
) -> nsresult
/**
* Initialize the application chooser picker widget. The application chooser
* is not valid until this method is called.
*
* @param parent nsIDOMWindow parent. This dialog will be dependent
* on this parent. parent must be non-null.
* @param title The title for the file widget
*
*/
void init (in mozIDOMWindowProxy parent, in ACString title);
pub unsafe fn Open(
&self,
contentType: &nsACString,
applicationChooserFinishedCallback: *const nsIApplicationChooserFinishedCallback
) -> nsresult
[src]
&self,
contentType: &nsACString,
applicationChooserFinishedCallback: *const nsIApplicationChooserFinishedCallback
) -> nsresult
/**
* Open application chooser dialog.
*
* @param contentType content type of file to open
* @param applicationChooserFinishedCallback callback fuction to run when dialog is closed
*/
void open (in ACString contentType, in nsIApplicationChooserFinishedCallback applicationChooserFinishedCallback);
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 nsIApplicationChooser
[src]
const IID: nsIID
IID: nsIID = nsID(4154542554, 24874, 18106, [138, 47, 84, 120, 111, 194, 135, 145])
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 nsIApplicationChooser
[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 nsIApplicationChooser
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.