Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWindowProvider.idl
3 : */
4 :
5 : #ifndef __gen_nsIWindowProvider_h__
6 : #define __gen_nsIWindowProvider_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 mozIDOMWindowProxy; /* forward declaration */
18 :
19 : class nsIURI; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIWindowProvider */
23 : #define NS_IWINDOWPROVIDER_IID_STR "e97a3830-15ef-499b-8372-c22d128091c1"
24 :
25 : #define NS_IWINDOWPROVIDER_IID \
26 : {0xe97a3830, 0x15ef, 0x499b, \
27 : { 0x83, 0x72, 0xc2, 0x2d, 0x12, 0x80, 0x91, 0xc1 }}
28 :
29 6 : class NS_NO_VTABLE nsIWindowProvider : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWPROVIDER_IID)
33 :
34 : /* mozIDOMWindowProxy provideWindow (in mozIDOMWindowProxy aParent, in unsigned long aChromeFlags, in boolean aCalledFromJS, in boolean aPositionSpecified, in boolean aSizeSpecified, in nsIURI aURI, in AString aName, in AUTF8String aFeatures, in boolean aForceNoOpener, out boolean aWindowIsNew); */
35 : NS_IMETHOD ProvideWindow(mozIDOMWindowProxy *aParent, uint32_t aChromeFlags, bool aCalledFromJS, bool aPositionSpecified, bool aSizeSpecified, nsIURI *aURI, const nsAString & aName, const nsACString & aFeatures, bool aForceNoOpener, bool *aWindowIsNew, mozIDOMWindowProxy * *_retval) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowProvider, NS_IWINDOWPROVIDER_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIWINDOWPROVIDER \
43 : NS_IMETHOD ProvideWindow(mozIDOMWindowProxy *aParent, uint32_t aChromeFlags, bool aCalledFromJS, bool aPositionSpecified, bool aSizeSpecified, nsIURI *aURI, const nsAString & aName, const nsACString & aFeatures, bool aForceNoOpener, bool *aWindowIsNew, mozIDOMWindowProxy * *_retval) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSIWINDOWPROVIDER \
48 : nsresult ProvideWindow(mozIDOMWindowProxy *aParent, uint32_t aChromeFlags, bool aCalledFromJS, bool aPositionSpecified, bool aSizeSpecified, nsIURI *aURI, const nsAString & aName, const nsACString & aFeatures, bool aForceNoOpener, bool *aWindowIsNew, mozIDOMWindowProxy * *_retval);
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
51 : #define NS_FORWARD_NSIWINDOWPROVIDER(_to) \
52 : NS_IMETHOD ProvideWindow(mozIDOMWindowProxy *aParent, uint32_t aChromeFlags, bool aCalledFromJS, bool aPositionSpecified, bool aSizeSpecified, nsIURI *aURI, const nsAString & aName, const nsACString & aFeatures, bool aForceNoOpener, bool *aWindowIsNew, mozIDOMWindowProxy * *_retval) override { return _to ProvideWindow(aParent, aChromeFlags, aCalledFromJS, aPositionSpecified, aSizeSpecified, aURI, aName, aFeatures, aForceNoOpener, aWindowIsNew, _retval); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIWINDOWPROVIDER(_to) \
56 : NS_IMETHOD ProvideWindow(mozIDOMWindowProxy *aParent, uint32_t aChromeFlags, bool aCalledFromJS, bool aPositionSpecified, bool aSizeSpecified, nsIURI *aURI, const nsAString & aName, const nsACString & aFeatures, bool aForceNoOpener, bool *aWindowIsNew, mozIDOMWindowProxy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ProvideWindow(aParent, aChromeFlags, aCalledFromJS, aPositionSpecified, aSizeSpecified, aURI, aName, aFeatures, aForceNoOpener, aWindowIsNew, _retval); }
57 :
58 : #if 0
59 : /* Use the code below as a template for the implementation class for this interface. */
60 :
61 : /* Header file */
62 : class nsWindowProvider : public nsIWindowProvider
63 : {
64 : public:
65 : NS_DECL_ISUPPORTS
66 : NS_DECL_NSIWINDOWPROVIDER
67 :
68 : nsWindowProvider();
69 :
70 : private:
71 : ~nsWindowProvider();
72 :
73 : protected:
74 : /* additional members */
75 : };
76 :
77 : /* Implementation file */
78 : NS_IMPL_ISUPPORTS(nsWindowProvider, nsIWindowProvider)
79 :
80 : nsWindowProvider::nsWindowProvider()
81 : {
82 : /* member initializers and constructor code */
83 : }
84 :
85 : nsWindowProvider::~nsWindowProvider()
86 : {
87 : /* destructor code */
88 : }
89 :
90 : /* mozIDOMWindowProxy provideWindow (in mozIDOMWindowProxy aParent, in unsigned long aChromeFlags, in boolean aCalledFromJS, in boolean aPositionSpecified, in boolean aSizeSpecified, in nsIURI aURI, in AString aName, in AUTF8String aFeatures, in boolean aForceNoOpener, out boolean aWindowIsNew); */
91 : NS_IMETHODIMP nsWindowProvider::ProvideWindow(mozIDOMWindowProxy *aParent, uint32_t aChromeFlags, bool aCalledFromJS, bool aPositionSpecified, bool aSizeSpecified, nsIURI *aURI, const nsAString & aName, const nsACString & aFeatures, bool aForceNoOpener, bool *aWindowIsNew, mozIDOMWindowProxy * *_retval)
92 : {
93 : return NS_ERROR_NOT_IMPLEMENTED;
94 : }
95 :
96 : /* End of implementation class template. */
97 : #endif
98 :
99 :
100 : #endif /* __gen_nsIWindowProvider_h__ */
|