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]

[src]

Cast this nsIPaymentUIService to one of its base interfaces.

impl nsIPaymentUIService
[src]

[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);

[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);

[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);

[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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPaymentUIService
[src]

IID: nsIID = nsID(33078613, 36887, 17291, [133, 236, 124, 21, 210, 179, 92, 220])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPaymentUIService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.