Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFormFillController.idl
3 : */
4 :
5 : #ifndef __gen_nsIFormFillController_h__
6 : #define __gen_nsIFormFillController_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIDocShell; /* forward declaration */
18 :
19 : class nsIAutoCompletePopup; /* forward declaration */
20 :
21 : class nsIDOMHTMLInputElement; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIFormFillController */
25 : #define NS_IFORMFILLCONTROLLER_IID_STR "07f0a0dc-f6e9-4cdd-a55f-56d770523a4c"
26 :
27 : #define NS_IFORMFILLCONTROLLER_IID \
28 : {0x07f0a0dc, 0xf6e9, 0x4cdd, \
29 : { 0xa5, 0x5f, 0x56, 0xd7, 0x70, 0x52, 0x3a, 0x4c }}
30 :
31 3 : class NS_NO_VTABLE nsIFormFillController : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFORMFILLCONTROLLER_IID)
35 :
36 : /* readonly attribute nsIDOMHTMLInputElement focusedInput; */
37 : NS_IMETHOD GetFocusedInput(nsIDOMHTMLInputElement * *aFocusedInput) = 0;
38 :
39 : /* void attachToBrowser (in nsIDocShell docShell, in nsIAutoCompletePopup popup); */
40 : NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) = 0;
41 :
42 : /* void detachFromBrowser (in nsIDocShell docShell); */
43 : NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) = 0;
44 :
45 : /* void markAsLoginManagerField (in nsIDOMHTMLInputElement aInput); */
46 : NS_IMETHOD MarkAsLoginManagerField(nsIDOMHTMLInputElement *aInput) = 0;
47 :
48 : /* void markAsAutofillField (in nsIDOMHTMLInputElement aInput); */
49 : NS_IMETHOD MarkAsAutofillField(nsIDOMHTMLInputElement *aInput) = 0;
50 :
51 : /* void showPopup (); */
52 : NS_IMETHOD ShowPopup(void) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFormFillController, NS_IFORMFILLCONTROLLER_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIFORMFILLCONTROLLER \
60 : NS_IMETHOD GetFocusedInput(nsIDOMHTMLInputElement * *aFocusedInput) override; \
61 : NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) override; \
62 : NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) override; \
63 : NS_IMETHOD MarkAsLoginManagerField(nsIDOMHTMLInputElement *aInput) override; \
64 : NS_IMETHOD MarkAsAutofillField(nsIDOMHTMLInputElement *aInput) override; \
65 : NS_IMETHOD ShowPopup(void) override;
66 :
67 : /* Use this macro when declaring the members of this interface when the
68 : class doesn't implement the interface. This is useful for forwarding. */
69 : #define NS_DECL_NON_VIRTUAL_NSIFORMFILLCONTROLLER \
70 : nsresult GetFocusedInput(nsIDOMHTMLInputElement * *aFocusedInput); \
71 : nsresult AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup); \
72 : nsresult DetachFromBrowser(nsIDocShell *docShell); \
73 : nsresult MarkAsLoginManagerField(nsIDOMHTMLInputElement *aInput); \
74 : nsresult MarkAsAutofillField(nsIDOMHTMLInputElement *aInput); \
75 : nsresult ShowPopup(void);
76 :
77 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
78 : #define NS_FORWARD_NSIFORMFILLCONTROLLER(_to) \
79 : NS_IMETHOD GetFocusedInput(nsIDOMHTMLInputElement * *aFocusedInput) override { return _to GetFocusedInput(aFocusedInput); } \
80 : NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) override { return _to AttachToBrowser(docShell, popup); } \
81 : NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) override { return _to DetachFromBrowser(docShell); } \
82 : NS_IMETHOD MarkAsLoginManagerField(nsIDOMHTMLInputElement *aInput) override { return _to MarkAsLoginManagerField(aInput); } \
83 : NS_IMETHOD MarkAsAutofillField(nsIDOMHTMLInputElement *aInput) override { return _to MarkAsAutofillField(aInput); } \
84 : NS_IMETHOD ShowPopup(void) override { return _to ShowPopup(); }
85 :
86 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
87 : #define NS_FORWARD_SAFE_NSIFORMFILLCONTROLLER(_to) \
88 : NS_IMETHOD GetFocusedInput(nsIDOMHTMLInputElement * *aFocusedInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedInput(aFocusedInput); } \
89 : NS_IMETHOD AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AttachToBrowser(docShell, popup); } \
90 : NS_IMETHOD DetachFromBrowser(nsIDocShell *docShell) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachFromBrowser(docShell); } \
91 : NS_IMETHOD MarkAsLoginManagerField(nsIDOMHTMLInputElement *aInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkAsLoginManagerField(aInput); } \
92 : NS_IMETHOD MarkAsAutofillField(nsIDOMHTMLInputElement *aInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkAsAutofillField(aInput); } \
93 : NS_IMETHOD ShowPopup(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowPopup(); }
94 :
95 : #if 0
96 : /* Use the code below as a template for the implementation class for this interface. */
97 :
98 : /* Header file */
99 : class nsFormFillController : public nsIFormFillController
100 : {
101 : public:
102 : NS_DECL_ISUPPORTS
103 : NS_DECL_NSIFORMFILLCONTROLLER
104 :
105 : nsFormFillController();
106 :
107 : private:
108 : ~nsFormFillController();
109 :
110 : protected:
111 : /* additional members */
112 : };
113 :
114 : /* Implementation file */
115 : NS_IMPL_ISUPPORTS(nsFormFillController, nsIFormFillController)
116 :
117 : nsFormFillController::nsFormFillController()
118 : {
119 : /* member initializers and constructor code */
120 : }
121 :
122 : nsFormFillController::~nsFormFillController()
123 : {
124 : /* destructor code */
125 : }
126 :
127 : /* readonly attribute nsIDOMHTMLInputElement focusedInput; */
128 : NS_IMETHODIMP nsFormFillController::GetFocusedInput(nsIDOMHTMLInputElement * *aFocusedInput)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* void attachToBrowser (in nsIDocShell docShell, in nsIAutoCompletePopup popup); */
134 : NS_IMETHODIMP nsFormFillController::AttachToBrowser(nsIDocShell *docShell, nsIAutoCompletePopup *popup)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* void detachFromBrowser (in nsIDocShell docShell); */
140 : NS_IMETHODIMP nsFormFillController::DetachFromBrowser(nsIDocShell *docShell)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* void markAsLoginManagerField (in nsIDOMHTMLInputElement aInput); */
146 : NS_IMETHODIMP nsFormFillController::MarkAsLoginManagerField(nsIDOMHTMLInputElement *aInput)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void markAsAutofillField (in nsIDOMHTMLInputElement aInput); */
152 : NS_IMETHODIMP nsFormFillController::MarkAsAutofillField(nsIDOMHTMLInputElement *aInput)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* void showPopup (); */
158 : NS_IMETHODIMP nsFormFillController::ShowPopup()
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* End of implementation class template. */
164 : #endif
165 :
166 :
167 : #endif /* __gen_nsIFormFillController_h__ */
|