Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWebNavigationInfo.idl
3 : */
4 :
5 : #ifndef __gen_nsIWebNavigationInfo_h__
6 : #define __gen_nsIWebNavigationInfo_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 nsIWebNavigation; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIWebNavigationInfo */
21 : #define NS_IWEBNAVIGATIONINFO_IID_STR "62a93afb-93a1-465c-84c8-0432264229de"
22 :
23 : #define NS_IWEBNAVIGATIONINFO_IID \
24 : {0x62a93afb, 0x93a1, 0x465c, \
25 : { 0x84, 0xc8, 0x04, 0x32, 0x26, 0x42, 0x29, 0xde }}
26 :
27 2 : class NS_NO_VTABLE nsIWebNavigationInfo : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBNAVIGATIONINFO_IID)
31 :
32 : enum {
33 : UNSUPPORTED = 0U,
34 : IMAGE = 1U,
35 : PLUGIN = 2U,
36 : OTHER = 32768U
37 : };
38 :
39 : /* unsigned long isTypeSupported (in ACString aType, in nsIWebNavigation aWebNav); */
40 : NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, uint32_t *_retval) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebNavigationInfo, NS_IWEBNAVIGATIONINFO_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIWEBNAVIGATIONINFO \
48 : NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, uint32_t *_retval) override;
49 :
50 : /* Use this macro when declaring the members of this interface when the
51 : class doesn't implement the interface. This is useful for forwarding. */
52 : #define NS_DECL_NON_VIRTUAL_NSIWEBNAVIGATIONINFO \
53 : nsresult IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, uint32_t *_retval);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIWEBNAVIGATIONINFO(_to) \
57 : NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, uint32_t *_retval) override { return _to IsTypeSupported(aType, aWebNav, _retval); }
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
60 : #define NS_FORWARD_SAFE_NSIWEBNAVIGATIONINFO(_to) \
61 : NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTypeSupported(aType, aWebNav, _retval); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsWebNavigationInfo : public nsIWebNavigationInfo
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIWEBNAVIGATIONINFO
72 :
73 : nsWebNavigationInfo();
74 :
75 : private:
76 : ~nsWebNavigationInfo();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsWebNavigationInfo, nsIWebNavigationInfo)
84 :
85 : nsWebNavigationInfo::nsWebNavigationInfo()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsWebNavigationInfo::~nsWebNavigationInfo()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* unsigned long isTypeSupported (in ACString aType, in nsIWebNavigation aWebNav); */
96 : NS_IMETHODIMP nsWebNavigationInfo::IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, uint32_t *_retval)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIWebNavigationInfo_h__ */
|