Struct xpcom::interfaces::nsILoginManagerPrompter [] [src]

#[repr(C)]
pub struct nsILoginManagerPrompter { /* fields omitted */ }

interface nsILoginManagerPrompter : nsISupports

Methods

impl nsILoginManagerPrompter
[src]

[src]

Cast this nsILoginManagerPrompter to one of its base interfaces.

impl nsILoginManagerPrompter
[src]

[src]

/**
   * Initialize the prompter. Must be called before using other interfaces.
   *
   * @param aWindow
   *        The window in which the user is doing some login-related action that's
   *        resulting in a need to prompt them for something. The prompt
   *        will be associated with this window (or, if a notification bar
   *        is being used, topmost opener in some cases).
   *
   *        aWindow can be null if there is no associated window, e.g. in a JSM
   *        or Sandbox. In this case there will be no checkbox to save the login
   *        since the window is needed to know if this is a private context.
   *
   *        If this window is a content window, the corresponding window and browser
   *        elements will be calculated. If this window is a chrome window, the
   *        corresponding browser element needs to be set using setBrowser.
   */

void init (in nsIDOMWindow aWindow);

[src]

/**
   * The browser this prompter is being created for.
   * This is required if the init function received a chrome window as argument.
   */

attribute nsIDOMElement browser;

[src]

/**
   * The browser this prompter is being created for.
   * This is required if the init function received a chrome window as argument.
   */

attribute nsIDOMElement browser;

[src]

/**
   * The opener that was used to open the window passed to init.
   * The opener can be used to determine in which window the prompt
   * should be shown. Must be a content window that is not a frame window,
   * make sure to pass the top window using e.g. window.top.
   */

attribute nsIDOMWindow opener;

[src]

/**
   * The opener that was used to open the window passed to init.
   * The opener can be used to determine in which window the prompt
   * should be shown. Must be a content window that is not a frame window,
   * make sure to pass the top window using e.g. window.top.
   */

attribute nsIDOMWindow opener;

[src]

/**
   * Ask the user if they want to save a login (Yes, Never, Not Now)
   *
   * @param aLogin
   *        The login to be saved.
   */

void promptToSavePassword (in nsILoginInfo aLogin);

[src]

/**
   * Ask the user if they want to change a login's password or username.
   * If the user consents, modifyLogin() will be called.
   *
   * @param aOldLogin
   *        The existing login (with the old password).
   * @param aNewLogin
   *        The new login.
   */

void promptToChangePassword (in nsILoginInfo aOldLogin, in nsILoginInfo aNewLogin);

[src]

/**
   * Ask the user if they want to change the password for one of
   * multiple logins, when the caller can't determine exactly which
   * login should be changed. If the user consents, modifyLogin() will
   * be called.
   *
   * @param logins
   *        An array of existing logins.
   * @param count
   *        (length of the array)
   * @param aNewLogin
   *        The new login.
   *
   * Note: Because the caller does not know the username of the login
   *       to be changed, aNewLogin.username and aNewLogin.usernameField
   *       will be set (using the user's selection) before modifyLogin()
   *       is called.
   */

void promptToChangePasswordWithUsernames ([array, size_is (count)] in nsILoginInfo logins, in uint32_t count, in nsILoginInfo aNewLogin);

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

IID: nsIID = nsID(1113551801, 45787, 20106, [136, 197, 154, 194, 81, 41, 52, 206])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsILoginManagerPrompter
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.