Struct xpcom::interfaces::nsIPaymentUIService
[−]
[src]
#[repr(C)]pub struct nsIPaymentUIService { /* fields omitted */ }
interface nsIPaymentUIService : nsISupports
/**
* nsIPaymentUIService is the interface used by Gecko to communicate with the
* payment UI.
* In general, the implementation of this interface should be a service that
* manages all payment UI components and receives the requested payment actions
* from Gecko and perform the corresponding UI behavior.
*/
Methods
impl nsIPaymentUIService
[src]
pub fn coerce<T: nsIPaymentUIServiceCoerce>(&self) -> &T
[src]
Cast this nsIPaymentUIService
to one of its base interfaces.
impl nsIPaymentUIService
[src]
pub unsafe fn ShowPayment(&self, requestId: &nsAString) -> nsresult
[src]
/**
* Show the payment UI to users.
* The implementation gets the payment data through nsIPaymentRequestService
* by the passed in requestId, then shows the payment UI and start to interact
* with users.
* According to user's action, nsIPaymentRequestService's APIs respondPayment,
* changeShippingAddress, or changeShippingOtpion is possible to called in the
* implementation.
* @param requestId - the request identify of the payment request.
* Notice that this requestId is an internal request Id
* generated by Gecko
*/
void showPayment (in AString requestId);
pub unsafe fn AbortPayment(&self, requestId: &nsAString) -> nsresult
[src]
/**
* Abort the payment.
* The implementation must abort and close the showing payment UI then call
* nsIPaymentRequestService respondPayment with nsIPaymentAbortActionResponse
* to inform Gecko of the abort status.
* @param requestId - the request identify of the payment request.
* Notice that this requestId is an internal request Id
* generated by Gecko
*/
void abortPayment (in AString requestId);
pub unsafe fn CompletePayment(&self, requestId: &nsAString) -> nsresult
[src]
/**
* Complete the payment.
* The implementation should close the showing payment UI, then call
* nsIPaymentRequestService respondPayment with nsIPaymentCompleteActionResponse
* to inform Gecko of the complete status.
* @param requestId - the request identify of the payment request.
* Notice that this requestId is an internal request Id
* generated by Gecko
*/
void completePayment (in AString requestId);
pub unsafe fn UpdatePayment(&self, requestId: &nsAString) -> nsresult
[src]
/**
* Update the payment data in the payment UI.
* The implementation should get the updated payment data through the
* nsIPaymentRequestService again, and update the UI.
* @param requestId - the request identify of the payment request.
* Notice that this requestId is an internal request Id
* generated by Gecko
*/
void updatePayment (in AString requestId);
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 nsIPaymentUIService
[src]
const IID: nsIID
IID: nsIID = nsID(33078613, 36887, 17291, [133, 236, 124, 21, 210, 179, 92, 220])
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 nsIPaymentUIService
[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 nsIPaymentUIService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.