tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebKitDOM_HTMLAppletElement.cpp
1 /*
2     This file is part of the WebKit open source project.
3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4
5     Copyright (C) 2011 Samsung Electronics
6
7     This library is free software; you can redistribute it and/or
8     modify it under the terms of the GNU Lesser General Public
9     License as published by the Free Software Foundation; either
10     version 2.1 of the License, or (at your option) any later version.
11
12     This library is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15     Lesser General Public License for more details.
16
17     You should have received a copy of the GNU Lesser General Public
18     License along with this library; if not, write to the Free Software
19     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20 */
21
22 #include "config.h"
23 #include "WebKitDOM_HTMLAppletElement.h"
24 #include "WebKitDOM_HTMLAppletElement_Private.h"
25
26 #include "HTMLAppletElement.h"
27 #include "HTMLNames.h"
28 #include "KURL.h"
29 #include "WebKitDOM_String.h"
30 #include "WebKitDOM_String_Private.h"
31 #include "wtf/text/AtomicString.h"
32 #include <wtf/text/CString.h>
33 #include <wtf/GetPtr.h>
34 #include <wtf/RefPtr.h>
35
36 void ewk_webkitdom_htmlappletelement_get_align(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
37 {
38     if (!self)
39         return;
40
41     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
42     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::alignAttr);
43     _to_webkit_string(&result, ret);
44 }
45
46 void ewk_webkitdom_htmlappletelement_set_align(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newAlign)
47 {
48     if (!self)
49         return;
50
51     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
52     coreObj->setAttribute(WebCore::HTMLNames::alignAttr, _to_webcore_string_value(newAlign));
53 }
54
55 void ewk_webkitdom_htmlappletelement_get_alt(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
56 {
57     if (!self)
58         return;
59
60     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
61     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::altAttr);
62     _to_webkit_string(&result, ret);
63 }
64
65 void ewk_webkitdom_htmlappletelement_set_alt(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newAlt)
66 {
67     if (!self)
68         return;
69
70     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
71     coreObj->setAttribute(WebCore::HTMLNames::altAttr, _to_webcore_string_value(newAlt));
72 }
73
74 void ewk_webkitdom_htmlappletelement_get_archive(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
75 {
76     if (!self)
77         return;
78
79     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
80     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::archiveAttr);
81     _to_webkit_string(&result, ret);
82 }
83
84 void ewk_webkitdom_htmlappletelement_set_archive(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newArchive)
85 {
86     if (!self)
87         return;
88
89     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
90     coreObj->setAttribute(WebCore::HTMLNames::archiveAttr, _to_webcore_string_value(newArchive));
91 }
92
93 void ewk_webkitdom_htmlappletelement_get_code(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
94 {
95     if (!self)
96         return;
97
98     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
99     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::codeAttr);
100     _to_webkit_string(&result, ret);
101 }
102
103 void ewk_webkitdom_htmlappletelement_set_code(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newCode)
104 {
105     if (!self)
106         return;
107
108     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
109     coreObj->setAttribute(WebCore::HTMLNames::codeAttr, _to_webcore_string_value(newCode));
110 }
111
112 void ewk_webkitdom_htmlappletelement_get_code_base(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
113 {
114     if (!self)
115         return;
116
117     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
118     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::codebaseAttr);
119     _to_webkit_string(&result, ret);
120 }
121
122 void ewk_webkitdom_htmlappletelement_set_code_base(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newCodeBase)
123 {
124     if (!self)
125         return;
126
127     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
128     coreObj->setAttribute(WebCore::HTMLNames::codebaseAttr, _to_webcore_string_value(newCodeBase));
129 }
130
131 void ewk_webkitdom_htmlappletelement_get_height(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
132 {
133     if (!self)
134         return;
135
136     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
137     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::heightAttr);
138     _to_webkit_string(&result, ret);
139 }
140
141 void ewk_webkitdom_htmlappletelement_set_height(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newHeight)
142 {
143     if (!self)
144         return;
145
146     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
147     coreObj->setAttribute(WebCore::HTMLNames::heightAttr, _to_webcore_string_value(newHeight));
148 }
149
150 int ewk_webkitdom_htmlappletelement_get_hspace(WebKitDOM_HTMLAppletElement* self)
151 {
152     if (!self)
153         return 0;
154
155     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
156     return coreObj->getIntegralAttribute(WebCore::HTMLNames::hspaceAttr);
157 }
158
159 void ewk_webkitdom_htmlappletelement_set_hspace(WebKitDOM_HTMLAppletElement* self, int newHspace)
160 {
161     if (!self)
162         return;
163
164     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
165     coreObj->setIntegralAttribute(WebCore::HTMLNames::hspaceAttr, newHspace);
166 }
167
168 void ewk_webkitdom_htmlappletelement_get_name(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
169 {
170     if (!self)
171         return;
172
173     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
174     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::nameAttr);
175     _to_webkit_string(&result, ret);
176 }
177
178 void ewk_webkitdom_htmlappletelement_set_name(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newName)
179 {
180     if (!self)
181         return;
182
183     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
184     coreObj->setAttribute(WebCore::HTMLNames::nameAttr, _to_webcore_string_value(newName));
185 }
186
187 void ewk_webkitdom_htmlappletelement_get_object(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
188 {
189     if (!self)
190         return;
191
192     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
193     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::objectAttr);
194     _to_webkit_string(&result, ret);
195 }
196
197 void ewk_webkitdom_htmlappletelement_set_object(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newObject)
198 {
199     if (!self)
200         return;
201
202     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
203     coreObj->setAttribute(WebCore::HTMLNames::objectAttr, _to_webcore_string_value(newObject));
204 }
205
206 int ewk_webkitdom_htmlappletelement_get_vspace(WebKitDOM_HTMLAppletElement* self)
207 {
208     if (!self)
209         return 0;
210
211     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
212     return coreObj->getIntegralAttribute(WebCore::HTMLNames::vspaceAttr);
213 }
214
215 void ewk_webkitdom_htmlappletelement_set_vspace(WebKitDOM_HTMLAppletElement* self, int newVspace)
216 {
217     if (!self)
218         return;
219
220     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
221     coreObj->setIntegralAttribute(WebCore::HTMLNames::vspaceAttr, newVspace);
222 }
223
224 void ewk_webkitdom_htmlappletelement_get_width(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* ret)
225 {
226     if (!self)
227         return;
228
229     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
230     WTF::String result = coreObj->getAttribute(WebCore::HTMLNames::widthAttr);
231     _to_webkit_string(&result, ret);
232 }
233
234 void ewk_webkitdom_htmlappletelement_set_width(WebKitDOM_HTMLAppletElement* self, WebKitDOM_String* newWidth)
235 {
236     if (!self)
237         return;
238
239     WebCore::HTMLAppletElement* coreObj = _to_webcore_htmlappletelement(self);
240     coreObj->setAttribute(WebCore::HTMLNames::widthAttr, _to_webcore_string_value(newWidth));
241 }
242
243
244 void ewk_webkitdom_htmlappletelement_deinit(const WebKitDOM_Object* objPtr)
245 {
246     if( WEBKITDOM_ISNULL(objPtr) )
247        return;
248     ((WebCore::HTMLAppletElement*)(objPtr->p_coreObject))->deref();
249     (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0;
250 }
251
252 void _copy_webkit_htmlappletelement(WebKitDOM_HTMLAppletElement* kitObjSrc, WebKitDOM_HTMLAppletElement* ret)
253 {
254     if (WEBKITDOM_COREOBJ(kitObjSrc) == WEBKITDOM_COREOBJ(ret))
255         return;
256     WebCore::HTMLAppletElement* tmpPtr = _to_webcore_htmlappletelement(ret);
257     if (tmpPtr)
258         tmpPtr->deref();
259     if (!WEBKITDOM_ISNULL(kitObjSrc))
260         _to_webcore_htmlappletelement(kitObjSrc)->ref();
261     ((WebKitDOM_Object*)ret)->p_coreObject = WEBKITDOM_COREOBJ(kitObjSrc);
262 }
263
264 WebCore::HTMLAppletElement* _to_webcore_htmlappletelement(const WebKitDOM_HTMLAppletElement* kitObj)
265 {
266     return (WebCore::HTMLAppletElement*)WEBKITDOM_COREOBJ(kitObj);
267 }
268
269 WebKitDOM_HTMLAppletElement* _to_webkit_htmlappletelement(WebCore::HTMLAppletElement* coreObj, WebKitDOM_HTMLAppletElement* ret)
270 {
271     WebCore::HTMLAppletElement* tmpPtr = _to_webcore_htmlappletelement(ret);
272     if (tmpPtr && tmpPtr != coreObj)
273         tmpPtr->deref();
274     if (coreObj)
275         coreObj->ref();
276     ((WebKitDOM_Object*)ret)->p_coreObject = coreObj;
277     return ret;
278 }
279