1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/layout/inspector/public/nsIDOMFontFace.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMFontFace_h__
6 : #define __gen_nsIDOMFontFace_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 nsIDOMCSSFontFaceRule; /* forward declaration */
18 :
19 : class nsIDOMCSSStyleDeclaration; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDOMFontFace */
23 : #define NS_IDOMFONTFACE_IID_STR "9a3b1272-6585-4f41-b08f-fdc5da444cd0"
24 :
25 : #define NS_IDOMFONTFACE_IID \
26 : {0x9a3b1272, 0x6585, 0x4f41, \
27 : { 0xb0, 0x8f, 0xfd, 0xc5, 0xda, 0x44, 0x4c, 0xd0 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMFontFace : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMFONTFACE_IID)
33 :
34 : /* readonly attribute boolean fromFontGroup; */
35 : NS_SCRIPTABLE NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) = 0;
36 :
37 : /* readonly attribute boolean fromLanguagePrefs; */
38 : NS_SCRIPTABLE NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) = 0;
39 :
40 : /* readonly attribute boolean fromSystemFallback; */
41 : NS_SCRIPTABLE NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) = 0;
42 :
43 : /* readonly attribute DOMString name; */
44 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
45 :
46 : /* readonly attribute DOMString CSSFamilyName; */
47 : NS_SCRIPTABLE NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) = 0;
48 :
49 : /* readonly attribute nsIDOMCSSFontFaceRule rule; */
50 : NS_SCRIPTABLE NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) = 0;
51 :
52 : /* readonly attribute long srcIndex; */
53 : NS_SCRIPTABLE NS_IMETHOD GetSrcIndex(PRInt32 *aSrcIndex) = 0;
54 :
55 : /* readonly attribute DOMString URI; */
56 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsAString & aURI) = 0;
57 :
58 : /* readonly attribute DOMString localName; */
59 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(nsAString & aLocalName) = 0;
60 :
61 : /* readonly attribute DOMString format; */
62 : NS_SCRIPTABLE NS_IMETHOD GetFormat(nsAString & aFormat) = 0;
63 :
64 : /* readonly attribute DOMString metadata; */
65 : NS_SCRIPTABLE NS_IMETHOD GetMetadata(nsAString & aMetadata) = 0;
66 :
67 : };
68 :
69 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMFontFace, NS_IDOMFONTFACE_IID)
70 :
71 : /* Use this macro when declaring classes that implement this interface. */
72 : #define NS_DECL_NSIDOMFONTFACE \
73 : NS_SCRIPTABLE NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup); \
74 : NS_SCRIPTABLE NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs); \
75 : NS_SCRIPTABLE NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback); \
76 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
77 : NS_SCRIPTABLE NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName); \
78 : NS_SCRIPTABLE NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule); \
79 : NS_SCRIPTABLE NS_IMETHOD GetSrcIndex(PRInt32 *aSrcIndex); \
80 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsAString & aURI); \
81 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(nsAString & aLocalName); \
82 : NS_SCRIPTABLE NS_IMETHOD GetFormat(nsAString & aFormat); \
83 : NS_SCRIPTABLE NS_IMETHOD GetMetadata(nsAString & aMetadata);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSIDOMFONTFACE(_to) \
87 : NS_SCRIPTABLE NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) { return _to GetFromFontGroup(aFromFontGroup); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) { return _to GetFromLanguagePrefs(aFromLanguagePrefs); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) { return _to GetFromSystemFallback(aFromSystemFallback); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) { return _to GetCSSFamilyName(aCSSFamilyName); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) { return _to GetRule(aRule); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetSrcIndex(PRInt32 *aSrcIndex) { return _to GetSrcIndex(aSrcIndex); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsAString & aURI) { return _to GetURI(aURI); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(nsAString & aLocalName) { return _to GetLocalName(aLocalName); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetFormat(nsAString & aFormat) { return _to GetFormat(aFormat); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetMetadata(nsAString & aMetadata) { return _to GetMetadata(aMetadata); }
98 :
99 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
100 : #define NS_FORWARD_SAFE_NSIDOMFONTFACE(_to) \
101 : NS_SCRIPTABLE NS_IMETHOD GetFromFontGroup(bool *aFromFontGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromFontGroup(aFromFontGroup); } \
102 : NS_SCRIPTABLE NS_IMETHOD GetFromLanguagePrefs(bool *aFromLanguagePrefs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromLanguagePrefs(aFromLanguagePrefs); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetFromSystemFallback(bool *aFromSystemFallback) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFromSystemFallback(aFromSystemFallback); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetCSSFamilyName(nsAString & aCSSFamilyName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCSSFamilyName(aCSSFamilyName); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetRule(nsIDOMCSSFontFaceRule * *aRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRule(aRule); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetSrcIndex(PRInt32 *aSrcIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrcIndex(aSrcIndex); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetURI(nsAString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(nsAString & aLocalName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalName(aLocalName); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetFormat(nsAString & aFormat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFormat(aFormat); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetMetadata(nsAString & aMetadata) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetadata(aMetadata); }
112 :
113 : #if 0
114 : /* Use the code below as a template for the implementation class for this interface. */
115 :
116 : /* Header file */
117 : class nsDOMFontFace : public nsIDOMFontFace
118 : {
119 : public:
120 : NS_DECL_ISUPPORTS
121 : NS_DECL_NSIDOMFONTFACE
122 :
123 : nsDOMFontFace();
124 :
125 : private:
126 : ~nsDOMFontFace();
127 :
128 : protected:
129 : /* additional members */
130 : };
131 :
132 : /* Implementation file */
133 : NS_IMPL_ISUPPORTS1(nsDOMFontFace, nsIDOMFontFace)
134 :
135 : nsDOMFontFace::nsDOMFontFace()
136 : {
137 : /* member initializers and constructor code */
138 : }
139 :
140 : nsDOMFontFace::~nsDOMFontFace()
141 : {
142 : /* destructor code */
143 : }
144 :
145 : /* readonly attribute boolean fromFontGroup; */
146 : NS_IMETHODIMP nsDOMFontFace::GetFromFontGroup(bool *aFromFontGroup)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* readonly attribute boolean fromLanguagePrefs; */
152 : NS_IMETHODIMP nsDOMFontFace::GetFromLanguagePrefs(bool *aFromLanguagePrefs)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* readonly attribute boolean fromSystemFallback; */
158 : NS_IMETHODIMP nsDOMFontFace::GetFromSystemFallback(bool *aFromSystemFallback)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* readonly attribute DOMString name; */
164 : NS_IMETHODIMP nsDOMFontFace::GetName(nsAString & aName)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* readonly attribute DOMString CSSFamilyName; */
170 : NS_IMETHODIMP nsDOMFontFace::GetCSSFamilyName(nsAString & aCSSFamilyName)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* readonly attribute nsIDOMCSSFontFaceRule rule; */
176 : NS_IMETHODIMP nsDOMFontFace::GetRule(nsIDOMCSSFontFaceRule * *aRule)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* readonly attribute long srcIndex; */
182 : NS_IMETHODIMP nsDOMFontFace::GetSrcIndex(PRInt32 *aSrcIndex)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* readonly attribute DOMString URI; */
188 : NS_IMETHODIMP nsDOMFontFace::GetURI(nsAString & aURI)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* readonly attribute DOMString localName; */
194 : NS_IMETHODIMP nsDOMFontFace::GetLocalName(nsAString & aLocalName)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* readonly attribute DOMString format; */
200 : NS_IMETHODIMP nsDOMFontFace::GetFormat(nsAString & aFormat)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* readonly attribute DOMString metadata; */
206 : NS_IMETHODIMP nsDOMFontFace::GetMetadata(nsAString & aMetadata)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* End of implementation class template. */
212 : #endif
213 :
214 :
215 : #endif /* __gen_nsIDOMFontFace_h__ */
|