Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMFontFaceList.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMFontFaceList_h__
6 : #define __gen_nsIDOMFontFaceList_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 nsIDOMFontFace; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMFontFaceList */
21 : #define NS_IDOMFONTFACELIST_IID_STR "2538579c-9472-4fd9-8dc1-d44ce4c1b7ba"
22 :
23 : #define NS_IDOMFONTFACELIST_IID \
24 : {0x2538579c, 0x9472, 0x4fd9, \
25 : { 0x8d, 0xc1, 0xd4, 0x4c, 0xe4, 0xc1, 0xb7, 0xba }}
26 :
27 0 : class NS_NO_VTABLE nsIDOMFontFaceList : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMFONTFACELIST_IID)
31 :
32 : /* nsIDOMFontFace item (in unsigned long index); */
33 : NS_IMETHOD Item(uint32_t index, nsIDOMFontFace * *_retval) = 0;
34 :
35 : /* readonly attribute unsigned long length; */
36 : NS_IMETHOD GetLength(uint32_t *aLength) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMFontFaceList, NS_IDOMFONTFACELIST_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIDOMFONTFACELIST \
44 : NS_IMETHOD Item(uint32_t index, nsIDOMFontFace * *_retval) override; \
45 : NS_IMETHOD GetLength(uint32_t *aLength) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIDOMFONTFACELIST \
50 : nsresult Item(uint32_t index, nsIDOMFontFace * *_retval); \
51 : nsresult GetLength(uint32_t *aLength);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDOMFONTFACELIST(_to) \
55 : NS_IMETHOD Item(uint32_t index, nsIDOMFontFace * *_retval) override { return _to Item(index, _retval); } \
56 : NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIDOMFONTFACELIST(_to) \
60 : NS_IMETHOD Item(uint32_t index, nsIDOMFontFace * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
61 : NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); }
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 nsDOMFontFaceList : public nsIDOMFontFaceList
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIDOMFONTFACELIST
72 :
73 : nsDOMFontFaceList();
74 :
75 : private:
76 : ~nsDOMFontFaceList();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsDOMFontFaceList, nsIDOMFontFaceList)
84 :
85 : nsDOMFontFaceList::nsDOMFontFaceList()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsDOMFontFaceList::~nsDOMFontFaceList()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* nsIDOMFontFace item (in unsigned long index); */
96 : NS_IMETHODIMP nsDOMFontFaceList::Item(uint32_t index, nsIDOMFontFace * *_retval)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* readonly attribute unsigned long length; */
102 : NS_IMETHODIMP nsDOMFontFaceList::GetLength(uint32_t *aLength)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIDOMFontFaceList_h__ */
|