1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/xul/nsIDOMXULCommandDispatcher.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMXULCommandDispatcher_h__
6 : #define __gen_nsIDOMXULCommandDispatcher_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 nsIDOMElement; /* forward declaration */
18 :
19 : class nsIController; /* forward declaration */
20 :
21 : class nsIControllers; /* forward declaration */
22 :
23 : class nsIDOMWindow; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIDOMXULCommandDispatcher */
27 : #define NS_IDOMXULCOMMANDDISPATCHER_IID_STR "f3c50361-14fe-11d3-bf87-00105a1b0627"
28 :
29 : #define NS_IDOMXULCOMMANDDISPATCHER_IID \
30 : {0xf3c50361, 0x14fe, 0x11d3, \
31 : { 0xbf, 0x87, 0x00, 0x10, 0x5a, 0x1b, 0x06, 0x27 }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMXULCommandDispatcher : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMXULCOMMANDDISPATCHER_IID)
37 :
38 : /* attribute nsIDOMElement focusedElement; */
39 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) = 0;
41 :
42 : /* attribute nsIDOMWindow focusedWindow; */
43 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) = 0;
44 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow) = 0;
45 :
46 : /* void addCommandUpdater (in nsIDOMElement updater, in DOMString events, in DOMString targets); */
47 : NS_SCRIPTABLE NS_IMETHOD AddCommandUpdater(nsIDOMElement *updater, const nsAString & events, const nsAString & targets) = 0;
48 :
49 : /* void removeCommandUpdater (in nsIDOMElement updater); */
50 : NS_SCRIPTABLE NS_IMETHOD RemoveCommandUpdater(nsIDOMElement *updater) = 0;
51 :
52 : /* void updateCommands (in DOMString eventName); */
53 : NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & eventName) = 0;
54 :
55 : /* nsIController getControllerForCommand (in string command); */
56 : NS_SCRIPTABLE NS_IMETHOD GetControllerForCommand(const char * command, nsIController * *_retval NS_OUTPARAM) = 0;
57 :
58 : /* nsIControllers getControllers (); */
59 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *_retval NS_OUTPARAM) = 0;
60 :
61 : /* void advanceFocus (); */
62 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocus(void) = 0;
63 :
64 : /* void rewindFocus (); */
65 : NS_SCRIPTABLE NS_IMETHOD RewindFocus(void) = 0;
66 :
67 : /* void advanceFocusIntoSubtree (in nsIDOMElement elt); */
68 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocusIntoSubtree(nsIDOMElement *elt) = 0;
69 :
70 : /* attribute boolean suppressFocusScroll; */
71 : NS_SCRIPTABLE NS_IMETHOD GetSuppressFocusScroll(bool *aSuppressFocusScroll) = 0;
72 : NS_SCRIPTABLE NS_IMETHOD SetSuppressFocusScroll(bool aSuppressFocusScroll) = 0;
73 :
74 : };
75 :
76 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMXULCommandDispatcher, NS_IDOMXULCOMMANDDISPATCHER_IID)
77 :
78 : /* Use this macro when declaring classes that implement this interface. */
79 : #define NS_DECL_NSIDOMXULCOMMANDDISPATCHER \
80 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement); \
81 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement); \
82 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow); \
83 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow); \
84 : NS_SCRIPTABLE NS_IMETHOD AddCommandUpdater(nsIDOMElement *updater, const nsAString & events, const nsAString & targets); \
85 : NS_SCRIPTABLE NS_IMETHOD RemoveCommandUpdater(nsIDOMElement *updater); \
86 : NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & eventName); \
87 : NS_SCRIPTABLE NS_IMETHOD GetControllerForCommand(const char * command, nsIController * *_retval NS_OUTPARAM); \
88 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *_retval NS_OUTPARAM); \
89 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocus(void); \
90 : NS_SCRIPTABLE NS_IMETHOD RewindFocus(void); \
91 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocusIntoSubtree(nsIDOMElement *elt); \
92 : NS_SCRIPTABLE NS_IMETHOD GetSuppressFocusScroll(bool *aSuppressFocusScroll); \
93 : NS_SCRIPTABLE NS_IMETHOD SetSuppressFocusScroll(bool aSuppressFocusScroll);
94 :
95 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
96 : #define NS_FORWARD_NSIDOMXULCOMMANDDISPATCHER(_to) \
97 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) { return _to GetFocusedElement(aFocusedElement); } \
98 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) { return _to SetFocusedElement(aFocusedElement); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) { return _to GetFocusedWindow(aFocusedWindow); } \
100 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow) { return _to SetFocusedWindow(aFocusedWindow); } \
101 : NS_SCRIPTABLE NS_IMETHOD AddCommandUpdater(nsIDOMElement *updater, const nsAString & events, const nsAString & targets) { return _to AddCommandUpdater(updater, events, targets); } \
102 : NS_SCRIPTABLE NS_IMETHOD RemoveCommandUpdater(nsIDOMElement *updater) { return _to RemoveCommandUpdater(updater); } \
103 : NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & eventName) { return _to UpdateCommands(eventName); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetControllerForCommand(const char * command, nsIController * *_retval NS_OUTPARAM) { return _to GetControllerForCommand(command, _retval); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *_retval NS_OUTPARAM) { return _to GetControllers(_retval); } \
106 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocus(void) { return _to AdvanceFocus(); } \
107 : NS_SCRIPTABLE NS_IMETHOD RewindFocus(void) { return _to RewindFocus(); } \
108 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocusIntoSubtree(nsIDOMElement *elt) { return _to AdvanceFocusIntoSubtree(elt); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetSuppressFocusScroll(bool *aSuppressFocusScroll) { return _to GetSuppressFocusScroll(aSuppressFocusScroll); } \
110 : NS_SCRIPTABLE NS_IMETHOD SetSuppressFocusScroll(bool aSuppressFocusScroll) { return _to SetSuppressFocusScroll(aSuppressFocusScroll); }
111 :
112 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
113 : #define NS_FORWARD_SAFE_NSIDOMXULCOMMANDDISPATCHER(_to) \
114 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedElement(aFocusedElement); } \
115 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedElement(aFocusedElement); } \
116 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedWindow(aFocusedWindow); } \
117 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedWindow(aFocusedWindow); } \
118 : NS_SCRIPTABLE NS_IMETHOD AddCommandUpdater(nsIDOMElement *updater, const nsAString & events, const nsAString & targets) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCommandUpdater(updater, events, targets); } \
119 : NS_SCRIPTABLE NS_IMETHOD RemoveCommandUpdater(nsIDOMElement *updater) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCommandUpdater(updater); } \
120 : NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & eventName) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommands(eventName); } \
121 : NS_SCRIPTABLE NS_IMETHOD GetControllerForCommand(const char * command, nsIController * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControllerForCommand(command, _retval); } \
122 : NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControllers(_retval); } \
123 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->AdvanceFocus(); } \
124 : NS_SCRIPTABLE NS_IMETHOD RewindFocus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RewindFocus(); } \
125 : NS_SCRIPTABLE NS_IMETHOD AdvanceFocusIntoSubtree(nsIDOMElement *elt) { return !_to ? NS_ERROR_NULL_POINTER : _to->AdvanceFocusIntoSubtree(elt); } \
126 : NS_SCRIPTABLE NS_IMETHOD GetSuppressFocusScroll(bool *aSuppressFocusScroll) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSuppressFocusScroll(aSuppressFocusScroll); } \
127 : NS_SCRIPTABLE NS_IMETHOD SetSuppressFocusScroll(bool aSuppressFocusScroll) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSuppressFocusScroll(aSuppressFocusScroll); }
128 :
129 : #if 0
130 : /* Use the code below as a template for the implementation class for this interface. */
131 :
132 : /* Header file */
133 : class nsDOMXULCommandDispatcher : public nsIDOMXULCommandDispatcher
134 : {
135 : public:
136 : NS_DECL_ISUPPORTS
137 : NS_DECL_NSIDOMXULCOMMANDDISPATCHER
138 :
139 : nsDOMXULCommandDispatcher();
140 :
141 : private:
142 : ~nsDOMXULCommandDispatcher();
143 :
144 : protected:
145 : /* additional members */
146 : };
147 :
148 : /* Implementation file */
149 : NS_IMPL_ISUPPORTS1(nsDOMXULCommandDispatcher, nsIDOMXULCommandDispatcher)
150 :
151 : nsDOMXULCommandDispatcher::nsDOMXULCommandDispatcher()
152 : {
153 : /* member initializers and constructor code */
154 : }
155 :
156 : nsDOMXULCommandDispatcher::~nsDOMXULCommandDispatcher()
157 : {
158 : /* destructor code */
159 : }
160 :
161 : /* attribute nsIDOMElement focusedElement; */
162 : NS_IMETHODIMP nsDOMXULCommandDispatcher::GetFocusedElement(nsIDOMElement * *aFocusedElement)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 : NS_IMETHODIMP nsDOMXULCommandDispatcher::SetFocusedElement(nsIDOMElement *aFocusedElement)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* attribute nsIDOMWindow focusedWindow; */
172 : NS_IMETHODIMP nsDOMXULCommandDispatcher::GetFocusedWindow(nsIDOMWindow * *aFocusedWindow)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 : NS_IMETHODIMP nsDOMXULCommandDispatcher::SetFocusedWindow(nsIDOMWindow *aFocusedWindow)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* void addCommandUpdater (in nsIDOMElement updater, in DOMString events, in DOMString targets); */
182 : NS_IMETHODIMP nsDOMXULCommandDispatcher::AddCommandUpdater(nsIDOMElement *updater, const nsAString & events, const nsAString & targets)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* void removeCommandUpdater (in nsIDOMElement updater); */
188 : NS_IMETHODIMP nsDOMXULCommandDispatcher::RemoveCommandUpdater(nsIDOMElement *updater)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* void updateCommands (in DOMString eventName); */
194 : NS_IMETHODIMP nsDOMXULCommandDispatcher::UpdateCommands(const nsAString & eventName)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* nsIController getControllerForCommand (in string command); */
200 : NS_IMETHODIMP nsDOMXULCommandDispatcher::GetControllerForCommand(const char * command, nsIController * *_retval NS_OUTPARAM)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* nsIControllers getControllers (); */
206 : NS_IMETHODIMP nsDOMXULCommandDispatcher::GetControllers(nsIControllers * *_retval NS_OUTPARAM)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* void advanceFocus (); */
212 : NS_IMETHODIMP nsDOMXULCommandDispatcher::AdvanceFocus()
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* void rewindFocus (); */
218 : NS_IMETHODIMP nsDOMXULCommandDispatcher::RewindFocus()
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* void advanceFocusIntoSubtree (in nsIDOMElement elt); */
224 : NS_IMETHODIMP nsDOMXULCommandDispatcher::AdvanceFocusIntoSubtree(nsIDOMElement *elt)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* attribute boolean suppressFocusScroll; */
230 : NS_IMETHODIMP nsDOMXULCommandDispatcher::GetSuppressFocusScroll(bool *aSuppressFocusScroll)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 : NS_IMETHODIMP nsDOMXULCommandDispatcher::SetSuppressFocusScroll(bool aSuppressFocusScroll)
235 : {
236 : return NS_ERROR_NOT_IMPLEMENTED;
237 : }
238 :
239 : /* End of implementation class template. */
240 : #endif
241 :
242 :
243 : #endif /* __gen_nsIDOMXULCommandDispatcher_h__ */
|