1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/windowwatcher/public/nsPIWindowWatcher.idl
3 : */
4 :
5 : #ifndef __gen_nsPIWindowWatcher_h__
6 : #define __gen_nsPIWindowWatcher_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 nsISimpleEnumerator; /* forward declaration */
20 :
21 : class nsIWebBrowserChrome; /* forward declaration */
22 :
23 : class nsIDocShellTreeItem; /* forward declaration */
24 :
25 : class nsIArray; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsPIWindowWatcher */
29 : #define NS_PIWINDOWWATCHER_IID_STR "8624594a-28d7-4bc3-8d12-b1c2b9eefd90"
30 :
31 : #define NS_PIWINDOWWATCHER_IID \
32 : {0x8624594a, 0x28d7, 0x4bc3, \
33 : { 0x8d, 0x12, 0xb1, 0xc2, 0xb9, 0xee, 0xfd, 0x90 }}
34 :
35 103 : class NS_NO_VTABLE nsPIWindowWatcher : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_PIWINDOWWATCHER_IID)
39 :
40 : /* void addWindow (in nsIDOMWindow aWindow, in nsIWebBrowserChrome aChrome); */
41 : NS_IMETHOD AddWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome *aChrome) = 0;
42 :
43 : /* void removeWindow (in nsIDOMWindow aWindow); */
44 : NS_IMETHOD RemoveWindow(nsIDOMWindow *aWindow) = 0;
45 :
46 : /* nsIDOMWindow openWindowJS (in nsIDOMWindow aParent, in string aUrl, in string aName, in string aFeatures, in boolean aDialog, in nsIArray aArgs); */
47 : NS_IMETHOD OpenWindowJS(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, bool aDialog, nsIArray *aArgs, nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
48 :
49 : /* nsIDocShellTreeItem findItemWithName (in wstring aName, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor); */
50 : NS_IMETHOD FindItemWithName(const PRUnichar * aName, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsPIWindowWatcher, NS_PIWINDOWWATCHER_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSPIWINDOWWATCHER \
58 : NS_IMETHOD AddWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome *aChrome); \
59 : NS_IMETHOD RemoveWindow(nsIDOMWindow *aWindow); \
60 : NS_IMETHOD OpenWindowJS(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, bool aDialog, nsIArray *aArgs, nsIDOMWindow * *_retval NS_OUTPARAM); \
61 : NS_IMETHOD FindItemWithName(const PRUnichar * aName, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM);
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
64 : #define NS_FORWARD_NSPIWINDOWWATCHER(_to) \
65 : NS_IMETHOD AddWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome *aChrome) { return _to AddWindow(aWindow, aChrome); } \
66 : NS_IMETHOD RemoveWindow(nsIDOMWindow *aWindow) { return _to RemoveWindow(aWindow); } \
67 : NS_IMETHOD OpenWindowJS(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, bool aDialog, nsIArray *aArgs, nsIDOMWindow * *_retval NS_OUTPARAM) { return _to OpenWindowJS(aParent, aUrl, aName, aFeatures, aDialog, aArgs, _retval); } \
68 : NS_IMETHOD FindItemWithName(const PRUnichar * aName, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM) { return _to FindItemWithName(aName, aRequestor, aOriginalRequestor, _retval); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSPIWINDOWWATCHER(_to) \
72 : NS_IMETHOD AddWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome *aChrome) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddWindow(aWindow, aChrome); } \
73 : NS_IMETHOD RemoveWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveWindow(aWindow); } \
74 : NS_IMETHOD OpenWindowJS(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, bool aDialog, nsIArray *aArgs, nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenWindowJS(aParent, aUrl, aName, aFeatures, aDialog, aArgs, _retval); } \
75 : NS_IMETHOD FindItemWithName(const PRUnichar * aName, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindItemWithName(aName, aRequestor, aOriginalRequestor, _retval); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class _MYCLASS_ : public nsPIWindowWatcher
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSPIWINDOWWATCHER
86 :
87 : _MYCLASS_();
88 :
89 : private:
90 : ~_MYCLASS_();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIWindowWatcher)
98 :
99 : _MYCLASS_::_MYCLASS_()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : _MYCLASS_::~_MYCLASS_()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* void addWindow (in nsIDOMWindow aWindow, in nsIWebBrowserChrome aChrome); */
110 : NS_IMETHODIMP _MYCLASS_::AddWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome *aChrome)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* void removeWindow (in nsIDOMWindow aWindow); */
116 : NS_IMETHODIMP _MYCLASS_::RemoveWindow(nsIDOMWindow *aWindow)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* nsIDOMWindow openWindowJS (in nsIDOMWindow aParent, in string aUrl, in string aName, in string aFeatures, in boolean aDialog, in nsIArray aArgs); */
122 : NS_IMETHODIMP _MYCLASS_::OpenWindowJS(nsIDOMWindow *aParent, const char * aUrl, const char * aName, const char * aFeatures, bool aDialog, nsIArray *aArgs, nsIDOMWindow * *_retval NS_OUTPARAM)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* nsIDocShellTreeItem findItemWithName (in wstring aName, in nsIDocShellTreeItem aRequestor, in nsIDocShellTreeItem aOriginalRequestor); */
128 : NS_IMETHODIMP _MYCLASS_::FindItemWithName(const PRUnichar * aName, nsIDocShellTreeItem *aRequestor, nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem * *_retval NS_OUTPARAM)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* End of implementation class template. */
134 : #endif
135 :
136 :
137 : #endif /* __gen_nsPIWindowWatcher_h__ */
|