1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/xtf/public/nsIXTFElementWrapper.idl
3 : */
4 :
5 : #ifndef __gen_nsIXTFElementWrapper_h__
6 : #define __gen_nsIXTFElementWrapper_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 nsIAtom; /* forward declaration */
18 :
19 : class nsIDOMElement; /* forward declaration */
20 :
21 : class nsIDOMDocument; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIXTFElementWrapper */
25 : #define NS_IXTFELEMENTWRAPPER_IID_STR "3697f9ed-d8bc-4c00-890f-7a702d5b4005"
26 :
27 : #define NS_IXTFELEMENTWRAPPER_IID \
28 : {0x3697f9ed, 0xd8bc, 0x4c00, \
29 : { 0x89, 0x0f, 0x7a, 0x70, 0x2d, 0x5b, 0x40, 0x05 }}
30 :
31 2 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXTFElementWrapper : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXTFELEMENTWRAPPER_IID)
35 :
36 : /* readonly attribute nsIDOMElement elementNode; */
37 : NS_SCRIPTABLE NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode) = 0;
38 :
39 : /* readonly attribute nsIDOMElement documentFrameElement; */
40 : NS_SCRIPTABLE NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement) = 0;
41 :
42 : /* attribute unsigned long notificationMask; */
43 : NS_SCRIPTABLE NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask) = 0;
44 : NS_SCRIPTABLE NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask) = 0;
45 :
46 : /* void setIntrinsicState (in unsigned long long newState); */
47 : NS_SCRIPTABLE NS_IMETHOD SetIntrinsicState(PRUint64 newState) = 0;
48 :
49 : /* void setClassAttributeName (in nsIAtom name); */
50 : NS_SCRIPTABLE NS_IMETHOD SetClassAttributeName(nsIAtom *name) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXTFElementWrapper, NS_IXTFELEMENTWRAPPER_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSIXTFELEMENTWRAPPER \
58 : NS_SCRIPTABLE NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode); \
59 : NS_SCRIPTABLE NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement); \
60 : NS_SCRIPTABLE NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask); \
61 : NS_SCRIPTABLE NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask); \
62 : NS_SCRIPTABLE NS_IMETHOD SetIntrinsicState(PRUint64 newState); \
63 : NS_SCRIPTABLE NS_IMETHOD SetClassAttributeName(nsIAtom *name);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSIXTFELEMENTWRAPPER(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode) { return _to GetElementNode(aElementNode); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement) { return _to GetDocumentFrameElement(aDocumentFrameElement); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask) { return _to GetNotificationMask(aNotificationMask); } \
70 : NS_SCRIPTABLE NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask) { return _to SetNotificationMask(aNotificationMask); } \
71 : NS_SCRIPTABLE NS_IMETHOD SetIntrinsicState(PRUint64 newState) { return _to SetIntrinsicState(newState); } \
72 : NS_SCRIPTABLE NS_IMETHOD SetClassAttributeName(nsIAtom *name) { return _to SetClassAttributeName(name); }
73 :
74 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
75 : #define NS_FORWARD_SAFE_NSIXTFELEMENTWRAPPER(_to) \
76 : NS_SCRIPTABLE NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementNode(aElementNode); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentFrameElement(aDocumentFrameElement); } \
78 : NS_SCRIPTABLE NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationMask(aNotificationMask); } \
79 : NS_SCRIPTABLE NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationMask(aNotificationMask); } \
80 : NS_SCRIPTABLE NS_IMETHOD SetIntrinsicState(PRUint64 newState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntrinsicState(newState); } \
81 : NS_SCRIPTABLE NS_IMETHOD SetClassAttributeName(nsIAtom *name) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClassAttributeName(name); }
82 :
83 : #if 0
84 : /* Use the code below as a template for the implementation class for this interface. */
85 :
86 : /* Header file */
87 : class nsXTFElementWrapper : public nsIXTFElementWrapper
88 : {
89 : public:
90 : NS_DECL_ISUPPORTS
91 : NS_DECL_NSIXTFELEMENTWRAPPER
92 :
93 : nsXTFElementWrapper();
94 :
95 : private:
96 : ~nsXTFElementWrapper();
97 :
98 : protected:
99 : /* additional members */
100 : };
101 :
102 : /* Implementation file */
103 : NS_IMPL_ISUPPORTS1(nsXTFElementWrapper, nsIXTFElementWrapper)
104 :
105 : nsXTFElementWrapper::nsXTFElementWrapper()
106 : {
107 : /* member initializers and constructor code */
108 : }
109 :
110 : nsXTFElementWrapper::~nsXTFElementWrapper()
111 : {
112 : /* destructor code */
113 : }
114 :
115 : /* readonly attribute nsIDOMElement elementNode; */
116 : NS_IMETHODIMP nsXTFElementWrapper::GetElementNode(nsIDOMElement * *aElementNode)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* readonly attribute nsIDOMElement documentFrameElement; */
122 : NS_IMETHODIMP nsXTFElementWrapper::GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* attribute unsigned long notificationMask; */
128 : NS_IMETHODIMP nsXTFElementWrapper::GetNotificationMask(PRUint32 *aNotificationMask)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 : NS_IMETHODIMP nsXTFElementWrapper::SetNotificationMask(PRUint32 aNotificationMask)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void setIntrinsicState (in unsigned long long newState); */
138 : NS_IMETHODIMP nsXTFElementWrapper::SetIntrinsicState(PRUint64 newState)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void setClassAttributeName (in nsIAtom name); */
144 : NS_IMETHODIMP nsXTFElementWrapper::SetClassAttributeName(nsIAtom *name)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* End of implementation class template. */
150 : #endif
151 :
152 :
153 : #endif /* __gen_nsIXTFElementWrapper_h__ */
|