1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/browser/webBrowser/nsIWebBrowserFocus.idl
3 : */
4 :
5 : #ifndef __gen_nsIWebBrowserFocus_h__
6 : #define __gen_nsIWebBrowserFocus_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 nsIDOMWindow; /* forward declaration */
18 :
19 : class nsIDOMElement; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIWebBrowserFocus */
23 : #define NS_IWEBBROWSERFOCUS_IID_STR "9c5d3c58-1dd1-11b2-a1c9-f3699284657a"
24 :
25 : #define NS_IWEBBROWSERFOCUS_IID \
26 : {0x9c5d3c58, 0x1dd1, 0x11b2, \
27 : { 0xa1, 0xc9, 0xf3, 0x69, 0x92, 0x84, 0x65, 0x7a }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIWebBrowserFocus : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERFOCUS_IID)
33 :
34 : /* void activate (); */
35 : NS_SCRIPTABLE NS_IMETHOD Activate(void) = 0;
36 :
37 : /* void deactivate (); */
38 : NS_SCRIPTABLE NS_IMETHOD Deactivate(void) = 0;
39 :
40 : /* void setFocusAtFirstElement (); */
41 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtFirstElement(void) = 0;
42 :
43 : /* void setFocusAtLastElement (); */
44 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtLastElement(void) = 0;
45 :
46 : /* attribute nsIDOMWindow focusedWindow; */
47 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) = 0;
48 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow) = 0;
49 :
50 : /* attribute nsIDOMElement focusedElement; */
51 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) = 0;
52 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserFocus, NS_IWEBBROWSERFOCUS_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIWEBBROWSERFOCUS \
60 : NS_SCRIPTABLE NS_IMETHOD Activate(void); \
61 : NS_SCRIPTABLE NS_IMETHOD Deactivate(void); \
62 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtFirstElement(void); \
63 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtLastElement(void); \
64 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow); \
65 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow); \
66 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement); \
67 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement);
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
70 : #define NS_FORWARD_NSIWEBBROWSERFOCUS(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD Activate(void) { return _to Activate(); } \
72 : NS_SCRIPTABLE NS_IMETHOD Deactivate(void) { return _to Deactivate(); } \
73 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtFirstElement(void) { return _to SetFocusAtFirstElement(); } \
74 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtLastElement(void) { return _to SetFocusAtLastElement(); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) { return _to GetFocusedWindow(aFocusedWindow); } \
76 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow) { return _to SetFocusedWindow(aFocusedWindow); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) { return _to GetFocusedElement(aFocusedElement); } \
78 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) { return _to SetFocusedElement(aFocusedElement); }
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81 : #define NS_FORWARD_SAFE_NSIWEBBROWSERFOCUS(_to) \
82 : NS_SCRIPTABLE NS_IMETHOD Activate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Activate(); } \
83 : NS_SCRIPTABLE NS_IMETHOD Deactivate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Deactivate(); } \
84 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtFirstElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusAtFirstElement(); } \
85 : NS_SCRIPTABLE NS_IMETHOD SetFocusAtLastElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusAtLastElement(); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetFocusedWindow(nsIDOMWindow * *aFocusedWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedWindow(aFocusedWindow); } \
87 : NS_SCRIPTABLE NS_IMETHOD SetFocusedWindow(nsIDOMWindow *aFocusedWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedWindow(aFocusedWindow); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetFocusedElement(nsIDOMElement * *aFocusedElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedElement(aFocusedElement); } \
89 : NS_SCRIPTABLE NS_IMETHOD SetFocusedElement(nsIDOMElement *aFocusedElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocusedElement(aFocusedElement); }
90 :
91 : #if 0
92 : /* Use the code below as a template for the implementation class for this interface. */
93 :
94 : /* Header file */
95 : class nsWebBrowserFocus : public nsIWebBrowserFocus
96 : {
97 : public:
98 : NS_DECL_ISUPPORTS
99 : NS_DECL_NSIWEBBROWSERFOCUS
100 :
101 : nsWebBrowserFocus();
102 :
103 : private:
104 : ~nsWebBrowserFocus();
105 :
106 : protected:
107 : /* additional members */
108 : };
109 :
110 : /* Implementation file */
111 : NS_IMPL_ISUPPORTS1(nsWebBrowserFocus, nsIWebBrowserFocus)
112 :
113 : nsWebBrowserFocus::nsWebBrowserFocus()
114 : {
115 : /* member initializers and constructor code */
116 : }
117 :
118 : nsWebBrowserFocus::~nsWebBrowserFocus()
119 : {
120 : /* destructor code */
121 : }
122 :
123 : /* void activate (); */
124 : NS_IMETHODIMP nsWebBrowserFocus::Activate()
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* void deactivate (); */
130 : NS_IMETHODIMP nsWebBrowserFocus::Deactivate()
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* void setFocusAtFirstElement (); */
136 : NS_IMETHODIMP nsWebBrowserFocus::SetFocusAtFirstElement()
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void setFocusAtLastElement (); */
142 : NS_IMETHODIMP nsWebBrowserFocus::SetFocusAtLastElement()
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* attribute nsIDOMWindow focusedWindow; */
148 : NS_IMETHODIMP nsWebBrowserFocus::GetFocusedWindow(nsIDOMWindow * *aFocusedWindow)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 : NS_IMETHODIMP nsWebBrowserFocus::SetFocusedWindow(nsIDOMWindow *aFocusedWindow)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* attribute nsIDOMElement focusedElement; */
158 : NS_IMETHODIMP nsWebBrowserFocus::GetFocusedElement(nsIDOMElement * *aFocusedElement)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 : NS_IMETHODIMP nsWebBrowserFocus::SetFocusedElement(nsIDOMElement *aFocusedElement)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* End of implementation class template. */
168 : #endif
169 :
170 :
171 : #endif /* __gen_nsIWebBrowserFocus_h__ */
|