~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSHTMLDataGridCellElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
    This library is free software; you can redistribute it and/or
 
6
    modify it under the terms of the GNU Library General Public
 
7
    License as published by the Free Software Foundation; either
 
8
    version 2 of the License, or (at your option) any later version.
 
9
 
 
10
    This library is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
    Library General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU Library General Public License
 
16
    along with this library; see the file COPYING.LIB.  If not, write to
 
17
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
    Boston, MA 02110-1301, USA.
 
19
*/
 
20
 
 
21
#include "config.h"
 
22
 
 
23
#if ENABLE(DATAGRID)
 
24
 
 
25
#include "JSHTMLDataGridCellElement.h"
 
26
 
 
27
#include "HTMLDataGridCellElement.h"
 
28
#include "KURL.h"
 
29
#include <runtime/JSNumberCell.h>
 
30
#include <runtime/JSString.h>
 
31
#include <wtf/GetPtr.h>
 
32
 
 
33
using namespace JSC;
 
34
 
 
35
namespace WebCore {
 
36
 
 
37
ASSERT_CLASS_FITS_IN_CELL(JSHTMLDataGridCellElement);
 
38
 
 
39
/* Hash table */
 
40
 
 
41
static const HashTableValue JSHTMLDataGridCellElementTableValues[7] =
 
42
{
 
43
    { "label", DontDelete, (intptr_t)jsHTMLDataGridCellElementLabel, (intptr_t)setJSHTMLDataGridCellElementLabel },
 
44
    { "focused", DontDelete, (intptr_t)jsHTMLDataGridCellElementFocused, (intptr_t)setJSHTMLDataGridCellElementFocused },
 
45
    { "checked", DontDelete, (intptr_t)jsHTMLDataGridCellElementChecked, (intptr_t)setJSHTMLDataGridCellElementChecked },
 
46
    { "indeterminate", DontDelete, (intptr_t)jsHTMLDataGridCellElementIndeterminate, (intptr_t)setJSHTMLDataGridCellElementIndeterminate },
 
47
    { "progress", DontDelete, (intptr_t)jsHTMLDataGridCellElementProgress, (intptr_t)setJSHTMLDataGridCellElementProgress },
 
48
    { "constructor", DontEnum|ReadOnly, (intptr_t)jsHTMLDataGridCellElementConstructor, (intptr_t)0 },
 
49
    { 0, 0, 0, 0 }
 
50
};
 
51
 
 
52
static JSC_CONST_HASHTABLE HashTable JSHTMLDataGridCellElementTable =
 
53
#if ENABLE(PERFECT_HASH_SIZE)
 
54
    { 63, JSHTMLDataGridCellElementTableValues, 0 };
 
55
#else
 
56
    { 17, 15, JSHTMLDataGridCellElementTableValues, 0 };
 
57
#endif
 
58
 
 
59
/* Hash table for constructor */
 
60
 
 
61
static const HashTableValue JSHTMLDataGridCellElementConstructorTableValues[1] =
 
62
{
 
63
    { 0, 0, 0, 0 }
 
64
};
 
65
 
 
66
static JSC_CONST_HASHTABLE HashTable JSHTMLDataGridCellElementConstructorTable =
 
67
#if ENABLE(PERFECT_HASH_SIZE)
 
68
    { 0, JSHTMLDataGridCellElementConstructorTableValues, 0 };
 
69
#else
 
70
    { 1, 0, JSHTMLDataGridCellElementConstructorTableValues, 0 };
 
71
#endif
 
72
 
 
73
class JSHTMLDataGridCellElementConstructor : public DOMConstructorObject {
 
74
public:
 
75
    JSHTMLDataGridCellElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
 
76
        : DOMConstructorObject(JSHTMLDataGridCellElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
 
77
    {
 
78
        putDirect(exec->propertyNames().prototype, JSHTMLDataGridCellElementPrototype::self(exec, globalObject), None);
 
79
    }
 
80
    virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
 
81
    virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
 
82
    virtual const ClassInfo* classInfo() const { return &s_info; }
 
83
    static const ClassInfo s_info;
 
84
 
 
85
    static PassRefPtr<Structure> createStructure(JSValue proto) 
 
86
    { 
 
87
        return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance)); 
 
88
    }
 
89
};
 
90
 
 
91
const ClassInfo JSHTMLDataGridCellElementConstructor::s_info = { "HTMLDataGridCellElementConstructor", 0, &JSHTMLDataGridCellElementConstructorTable, 0 };
 
92
 
 
93
bool JSHTMLDataGridCellElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
 
94
{
 
95
    return getStaticValueSlot<JSHTMLDataGridCellElementConstructor, DOMObject>(exec, &JSHTMLDataGridCellElementConstructorTable, this, propertyName, slot);
 
96
}
 
97
 
 
98
bool JSHTMLDataGridCellElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
99
{
 
100
    return getStaticValueDescriptor<JSHTMLDataGridCellElementConstructor, DOMObject>(exec, &JSHTMLDataGridCellElementConstructorTable, this, propertyName, descriptor);
 
101
}
 
102
 
 
103
/* Hash table for prototype */
 
104
 
 
105
static const HashTableValue JSHTMLDataGridCellElementPrototypeTableValues[1] =
 
106
{
 
107
    { 0, 0, 0, 0 }
 
108
};
 
109
 
 
110
static JSC_CONST_HASHTABLE HashTable JSHTMLDataGridCellElementPrototypeTable =
 
111
#if ENABLE(PERFECT_HASH_SIZE)
 
112
    { 0, JSHTMLDataGridCellElementPrototypeTableValues, 0 };
 
113
#else
 
114
    { 1, 0, JSHTMLDataGridCellElementPrototypeTableValues, 0 };
 
115
#endif
 
116
 
 
117
const ClassInfo JSHTMLDataGridCellElementPrototype::s_info = { "HTMLDataGridCellElementPrototype", 0, &JSHTMLDataGridCellElementPrototypeTable, 0 };
 
118
 
 
119
JSObject* JSHTMLDataGridCellElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
 
120
{
 
121
    return getDOMPrototype<JSHTMLDataGridCellElement>(exec, globalObject);
 
122
}
 
123
 
 
124
const ClassInfo JSHTMLDataGridCellElement::s_info = { "HTMLDataGridCellElement", &JSHTMLElement::s_info, &JSHTMLDataGridCellElementTable, 0 };
 
125
 
 
126
JSHTMLDataGridCellElement::JSHTMLDataGridCellElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLDataGridCellElement> impl)
 
127
    : JSHTMLElement(structure, globalObject, impl)
 
128
{
 
129
}
 
130
 
 
131
JSObject* JSHTMLDataGridCellElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
 
132
{
 
133
    return new (exec) JSHTMLDataGridCellElementPrototype(JSHTMLDataGridCellElementPrototype::createStructure(JSHTMLElementPrototype::self(exec, globalObject)));
 
134
}
 
135
 
 
136
bool JSHTMLDataGridCellElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
 
137
{
 
138
    return getStaticValueSlot<JSHTMLDataGridCellElement, Base>(exec, &JSHTMLDataGridCellElementTable, this, propertyName, slot);
 
139
}
 
140
 
 
141
bool JSHTMLDataGridCellElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
142
{
 
143
    return getStaticValueDescriptor<JSHTMLDataGridCellElement, Base>(exec, &JSHTMLDataGridCellElementTable, this, propertyName, descriptor);
 
144
}
 
145
 
 
146
JSValue jsHTMLDataGridCellElementLabel(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
147
{
 
148
    JSHTMLDataGridCellElement* castedThis = static_cast<JSHTMLDataGridCellElement*>(asObject(slot.slotBase()));
 
149
    UNUSED_PARAM(exec);
 
150
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(castedThis->impl());
 
151
    return jsString(exec, imp->label());
 
152
}
 
153
 
 
154
JSValue jsHTMLDataGridCellElementFocused(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
155
{
 
156
    JSHTMLDataGridCellElement* castedThis = static_cast<JSHTMLDataGridCellElement*>(asObject(slot.slotBase()));
 
157
    UNUSED_PARAM(exec);
 
158
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(castedThis->impl());
 
159
    return jsBoolean(imp->focused());
 
160
}
 
161
 
 
162
JSValue jsHTMLDataGridCellElementChecked(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
163
{
 
164
    JSHTMLDataGridCellElement* castedThis = static_cast<JSHTMLDataGridCellElement*>(asObject(slot.slotBase()));
 
165
    UNUSED_PARAM(exec);
 
166
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(castedThis->impl());
 
167
    return jsBoolean(imp->checked());
 
168
}
 
169
 
 
170
JSValue jsHTMLDataGridCellElementIndeterminate(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
171
{
 
172
    JSHTMLDataGridCellElement* castedThis = static_cast<JSHTMLDataGridCellElement*>(asObject(slot.slotBase()));
 
173
    UNUSED_PARAM(exec);
 
174
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(castedThis->impl());
 
175
    return jsBoolean(imp->indeterminate());
 
176
}
 
177
 
 
178
JSValue jsHTMLDataGridCellElementProgress(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
179
{
 
180
    JSHTMLDataGridCellElement* castedThis = static_cast<JSHTMLDataGridCellElement*>(asObject(slot.slotBase()));
 
181
    UNUSED_PARAM(exec);
 
182
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(castedThis->impl());
 
183
    return jsNumber(exec, imp->progress());
 
184
}
 
185
 
 
186
JSValue jsHTMLDataGridCellElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
187
{
 
188
    JSHTMLDataGridCellElement* domObject = static_cast<JSHTMLDataGridCellElement*>(asObject(slot.slotBase()));
 
189
    return JSHTMLDataGridCellElement::getConstructor(exec, domObject->globalObject());
 
190
}
 
191
void JSHTMLDataGridCellElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
 
192
{
 
193
    lookupPut<JSHTMLDataGridCellElement, Base>(exec, propertyName, value, &JSHTMLDataGridCellElementTable, this, slot);
 
194
}
 
195
 
 
196
void setJSHTMLDataGridCellElementLabel(ExecState* exec, JSObject* thisObject, JSValue value)
 
197
{
 
198
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(static_cast<JSHTMLDataGridCellElement*>(thisObject)->impl());
 
199
    imp->setLabel(value.toString(exec));
 
200
}
 
201
 
 
202
void setJSHTMLDataGridCellElementFocused(ExecState* exec, JSObject* thisObject, JSValue value)
 
203
{
 
204
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(static_cast<JSHTMLDataGridCellElement*>(thisObject)->impl());
 
205
    imp->setFocused(value.toBoolean(exec));
 
206
}
 
207
 
 
208
void setJSHTMLDataGridCellElementChecked(ExecState* exec, JSObject* thisObject, JSValue value)
 
209
{
 
210
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(static_cast<JSHTMLDataGridCellElement*>(thisObject)->impl());
 
211
    imp->setChecked(value.toBoolean(exec));
 
212
}
 
213
 
 
214
void setJSHTMLDataGridCellElementIndeterminate(ExecState* exec, JSObject* thisObject, JSValue value)
 
215
{
 
216
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(static_cast<JSHTMLDataGridCellElement*>(thisObject)->impl());
 
217
    imp->setIndeterminate(value.toBoolean(exec));
 
218
}
 
219
 
 
220
void setJSHTMLDataGridCellElementProgress(ExecState* exec, JSObject* thisObject, JSValue value)
 
221
{
 
222
    HTMLDataGridCellElement* imp = static_cast<HTMLDataGridCellElement*>(static_cast<JSHTMLDataGridCellElement*>(thisObject)->impl());
 
223
    imp->setProgress(value.toFloat(exec));
 
224
}
 
225
 
 
226
JSValue JSHTMLDataGridCellElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
 
227
{
 
228
    return getDOMConstructor<JSHTMLDataGridCellElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
 
229
}
 
230
 
 
231
 
 
232
}
 
233
 
 
234
#endif // ENABLE(DATAGRID)