DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/toolkit/components/passwordmgr/nsILoginManagerPrompter.idl
 */

#ifndef __gen_nsILoginManagerPrompter_h__
#define __gen_nsILoginManagerPrompter_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsILoginInfo; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla


/* starting interface:    nsILoginManagerPrompter */
#define NS_ILOGINMANAGERPROMPTER_IID_STR "425f73b9-b2db-4e8a-88c5-9ac2512934ce"

#define NS_ILOGINMANAGERPROMPTER_IID \
  {0x425f73b9, 0xb2db, 0x4e8a, \
    { 0x88, 0xc5, 0x9a, 0xc2, 0x51, 0x29, 0x34, 0xce }}

class NS_NO_VTABLE nsILoginManagerPrompter : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOGINMANAGERPROMPTER_IID)

  /* void init (in nsIDOMWindow aWindow); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(nsIDOMWindow *aWindow) = 0;

  /* attribute Element browser; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBrowser(mozilla::dom::Element **aBrowser) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetBrowser(mozilla::dom::Element *aBrowser) = 0;

  /* attribute nsIDOMWindow opener; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOpener(nsIDOMWindow **aOpener) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) = 0;

  /* void promptToSavePassword (in nsILoginInfo aLogin); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptToSavePassword(nsILoginInfo *aLogin) = 0;

  /* void promptToChangePassword (in nsILoginInfo aOldLogin, in nsILoginInfo aNewLogin); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptToChangePassword(nsILoginInfo *aOldLogin, nsILoginInfo *aNewLogin) = 0;

  /* void promptToChangePasswordWithUsernames ([array, size_is (count)] in nsILoginInfo logins, in uint32_t count, in nsILoginInfo aNewLogin); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PromptToChangePasswordWithUsernames(nsILoginInfo **logins, uint32_t count, nsILoginInfo *aNewLogin) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsILoginManagerPrompter, NS_ILOGINMANAGERPROMPTER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSILOGINMANAGERPROMPTER \
  NS_IMETHOD Init(nsIDOMWindow *aWindow) override; \
  NS_IMETHOD GetBrowser(mozilla::dom::Element **aBrowser) override; \
  NS_IMETHOD SetBrowser(mozilla::dom::Element *aBrowser) override; \
  NS_IMETHOD GetOpener(nsIDOMWindow **aOpener) override; \
  NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) override; \
  NS_IMETHOD PromptToSavePassword(nsILoginInfo *aLogin) override; \
  NS_IMETHOD PromptToChangePassword(nsILoginInfo *aOldLogin, nsILoginInfo *aNewLogin) override; \
  NS_IMETHOD PromptToChangePasswordWithUsernames(nsILoginInfo **logins, uint32_t count, nsILoginInfo *aNewLogin) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSILOGINMANAGERPROMPTER \
  nsresult Init(nsIDOMWindow *aWindow); \
  nsresult GetBrowser(mozilla::dom::Element **aBrowser); \
  nsresult SetBrowser(mozilla::dom::Element *aBrowser); \
  nsresult GetOpener(nsIDOMWindow **aOpener); \
  nsresult SetOpener(nsIDOMWindow *aOpener); \
  nsresult PromptToSavePassword(nsILoginInfo *aLogin); \
  nsresult PromptToChangePassword(nsILoginInfo *aOldLogin, nsILoginInfo *aNewLogin); \
  nsresult PromptToChangePasswordWithUsernames(nsILoginInfo **logins, uint32_t count, nsILoginInfo *aNewLogin); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSILOGINMANAGERPROMPTER(_to) \
  NS_IMETHOD Init(nsIDOMWindow *aWindow) override { return _to Init(aWindow); } \
  NS_IMETHOD GetBrowser(mozilla::dom::Element **aBrowser) override { return _to GetBrowser(aBrowser); } \
  NS_IMETHOD SetBrowser(mozilla::dom::Element *aBrowser) override { return _to SetBrowser(aBrowser); } \
  NS_IMETHOD GetOpener(nsIDOMWindow **aOpener) override { return _to GetOpener(aOpener); } \
  NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) override { return _to SetOpener(aOpener); } \
  NS_IMETHOD PromptToSavePassword(nsILoginInfo *aLogin) override { return _to PromptToSavePassword(aLogin); } \
  NS_IMETHOD PromptToChangePassword(nsILoginInfo *aOldLogin, nsILoginInfo *aNewLogin) override { return _to PromptToChangePassword(aOldLogin, aNewLogin); } \
  NS_IMETHOD PromptToChangePasswordWithUsernames(nsILoginInfo **logins, uint32_t count, nsILoginInfo *aNewLogin) override { return _to PromptToChangePasswordWithUsernames(logins, count, aNewLogin); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSILOGINMANAGERPROMPTER(_to) \
  NS_IMETHOD Init(nsIDOMWindow *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aWindow); } \
  NS_IMETHOD GetBrowser(mozilla::dom::Element **aBrowser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBrowser(aBrowser); } \
  NS_IMETHOD SetBrowser(mozilla::dom::Element *aBrowser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBrowser(aBrowser); } \
  NS_IMETHOD GetOpener(nsIDOMWindow **aOpener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpener(aOpener); } \
  NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOpener(aOpener); } \
  NS_IMETHOD PromptToSavePassword(nsILoginInfo *aLogin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptToSavePassword(aLogin); } \
  NS_IMETHOD PromptToChangePassword(nsILoginInfo *aOldLogin, nsILoginInfo *aNewLogin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptToChangePassword(aOldLogin, aNewLogin); } \
  NS_IMETHOD PromptToChangePasswordWithUsernames(nsILoginInfo **logins, uint32_t count, nsILoginInfo *aNewLogin) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PromptToChangePasswordWithUsernames(logins, count, aNewLogin); } 


#define NS_LOGINMANAGERPROMPTER_CONTRACTID "@mozilla.org/login-manager/prompter/;1"

#endif /* __gen_nsILoginManagerPrompter_h__ */