1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/svg/nsIDOMSVGImageElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMSVGImageElement_h__
6 : #define __gen_nsIDOMSVGImageElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMSVGElement_h__
10 : #include "nsIDOMSVGElement.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 nsIDOMSVGAnimatedLength; /* forward declaration */
18 :
19 : class nsIDOMSVGAnimatedPreserveAspectRatio; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDOMSVGImageElement */
23 : #define NS_IDOMSVGIMAGEELEMENT_IID_STR "c06f8f78-d499-42ae-b186-15aa7552628d"
24 :
25 : #define NS_IDOMSVGIMAGEELEMENT_IID \
26 : {0xc06f8f78, 0xd499, 0x42ae, \
27 : { 0xb1, 0x86, 0x15, 0xaa, 0x75, 0x52, 0x62, 0x8d }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMSVGImageElement : public nsIDOMSVGElement {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSVGIMAGEELEMENT_IID)
33 :
34 : /* readonly attribute nsIDOMSVGAnimatedLength x; */
35 : NS_SCRIPTABLE NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX) = 0;
36 :
37 : /* readonly attribute nsIDOMSVGAnimatedLength y; */
38 : NS_SCRIPTABLE NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY) = 0;
39 :
40 : /* readonly attribute nsIDOMSVGAnimatedLength width; */
41 : NS_SCRIPTABLE NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth) = 0;
42 :
43 : /* readonly attribute nsIDOMSVGAnimatedLength height; */
44 : NS_SCRIPTABLE NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight) = 0;
45 :
46 : /* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
47 : NS_SCRIPTABLE NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMSVGImageElement, NS_IDOMSVGIMAGEELEMENT_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIDOMSVGIMAGEELEMENT \
55 : NS_SCRIPTABLE NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX); \
56 : NS_SCRIPTABLE NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY); \
57 : NS_SCRIPTABLE NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth); \
58 : NS_SCRIPTABLE NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight); \
59 : NS_SCRIPTABLE NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSIDOMSVGIMAGEELEMENT(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX) { return _to GetX(aX); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY) { return _to GetY(aY); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth) { return _to GetWidth(aWidth); } \
66 : NS_SCRIPTABLE NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight) { return _to GetHeight(aHeight); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) { return _to GetPreserveAspectRatio(aPreserveAspectRatio); }
68 :
69 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
70 : #define NS_FORWARD_SAFE_NSIDOMSVGIMAGEELEMENT(_to) \
71 : NS_SCRIPTABLE NS_IMETHOD GetX(nsIDOMSVGAnimatedLength * *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetY(nsIDOMSVGAnimatedLength * *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
73 : NS_SCRIPTABLE NS_IMETHOD GetWidth(nsIDOMSVGAnimatedLength * *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetHeight(nsIDOMSVGAnimatedLength * *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreserveAspectRatio(aPreserveAspectRatio); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class nsDOMSVGImageElement : public nsIDOMSVGImageElement
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSIDOMSVGIMAGEELEMENT
86 :
87 : nsDOMSVGImageElement();
88 :
89 : private:
90 : ~nsDOMSVGImageElement();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS1(nsDOMSVGImageElement, nsIDOMSVGImageElement)
98 :
99 : nsDOMSVGImageElement::nsDOMSVGImageElement()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsDOMSVGImageElement::~nsDOMSVGImageElement()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* readonly attribute nsIDOMSVGAnimatedLength x; */
110 : NS_IMETHODIMP nsDOMSVGImageElement::GetX(nsIDOMSVGAnimatedLength * *aX)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* readonly attribute nsIDOMSVGAnimatedLength y; */
116 : NS_IMETHODIMP nsDOMSVGImageElement::GetY(nsIDOMSVGAnimatedLength * *aY)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* readonly attribute nsIDOMSVGAnimatedLength width; */
122 : NS_IMETHODIMP nsDOMSVGImageElement::GetWidth(nsIDOMSVGAnimatedLength * *aWidth)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* readonly attribute nsIDOMSVGAnimatedLength height; */
128 : NS_IMETHODIMP nsDOMSVGImageElement::GetHeight(nsIDOMSVGAnimatedLength * *aHeight)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* readonly attribute nsIDOMSVGAnimatedPreserveAspectRatio preserveAspectRatio; */
134 : NS_IMETHODIMP nsDOMSVGImageElement::GetPreserveAspectRatio(nsIDOMSVGAnimatedPreserveAspectRatio * *aPreserveAspectRatio)
135 : {
136 : return NS_ERROR_NOT_IMPLEMENTED;
137 : }
138 :
139 : /* End of implementation class template. */
140 : #endif
141 :
142 :
143 : #endif /* __gen_nsIDOMSVGImageElement_h__ */
|