diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSClipboard.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSClipboard.cpp | 63 |
1 files changed, 34 insertions, 29 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSClipboard.cpp b/src/3rdparty/webkit/WebCore/generated/JSClipboard.cpp index de87a53..115b5de 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSClipboard.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSClipboard.cpp @@ -34,7 +34,7 @@ using namespace JSC; namespace WebCore { -ASSERT_CLASS_FITS_IN_CELL(JSClipboard) +ASSERT_CLASS_FITS_IN_CELL(JSClipboard); /* Hash table */ @@ -73,13 +73,13 @@ public: JSClipboardConstructor(ExecState* exec) : DOMObject(JSClipboardConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype())) { - putDirect(exec->propertyNames().prototype, JSClipboardPrototype::self(exec), None); + putDirect(exec->propertyNames().prototype, JSClipboardPrototype::self(exec, exec->lexicalGlobalObject()), None); } virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); virtual const ClassInfo* classInfo() const { return &s_info; } static const ClassInfo s_info; - static PassRefPtr<Structure> createStructure(JSValuePtr proto) + static PassRefPtr<Structure> createStructure(JSValue proto) { return Structure::create(proto, TypeInfo(ObjectType, ImplementsHasInstance)); } @@ -112,9 +112,9 @@ static const HashTable JSClipboardPrototypeTable = const ClassInfo JSClipboardPrototype::s_info = { "ClipboardPrototype", 0, &JSClipboardPrototypeTable, 0 }; -JSObject* JSClipboardPrototype::self(ExecState* exec) +JSObject* JSClipboardPrototype::self(ExecState* exec, JSGlobalObject* globalObject) { - return getDOMPrototype<JSClipboard>(exec); + return getDOMPrototype<JSClipboard>(exec, globalObject); } bool JSClipboardPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -133,12 +133,11 @@ JSClipboard::JSClipboard(PassRefPtr<Structure> structure, PassRefPtr<Clipboard> JSClipboard::~JSClipboard() { forgetDOMObject(*Heap::heap(this)->globalData(), m_impl.get()); - } -JSObject* JSClipboard::createPrototype(ExecState* exec) +JSObject* JSClipboard::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { - return new (exec) JSClipboardPrototype(JSClipboardPrototype::createStructure(exec->lexicalGlobalObject()->objectPrototype())); + return new (exec) JSClipboardPrototype(JSClipboardPrototype::createStructure(globalObject->objectPrototype())); } bool JSClipboard::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -146,88 +145,94 @@ bool JSClipboard::getOwnPropertySlot(ExecState* exec, const Identifier& property return getStaticValueSlot<JSClipboard, Base>(exec, &JSClipboardTable, this, propertyName, slot); } -JSValuePtr jsClipboardDropEffect(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsClipboardDropEffect(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); Clipboard* imp = static_cast<Clipboard*>(static_cast<JSClipboard*>(asObject(slot.slotBase()))->impl()); return jsStringOrUndefined(exec, imp->dropEffect()); } -JSValuePtr jsClipboardEffectAllowed(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsClipboardEffectAllowed(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); Clipboard* imp = static_cast<Clipboard*>(static_cast<JSClipboard*>(asObject(slot.slotBase()))->impl()); return jsStringOrUndefined(exec, imp->effectAllowed()); } -JSValuePtr jsClipboardTypes(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsClipboardTypes(ExecState* exec, const Identifier&, const PropertySlot& slot) { return static_cast<JSClipboard*>(asObject(slot.slotBase()))->types(exec); } -JSValuePtr jsClipboardConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsClipboardConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) { return static_cast<JSClipboard*>(asObject(slot.slotBase()))->getConstructor(exec); } -void JSClipboard::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot) +void JSClipboard::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) { lookupPut<JSClipboard, Base>(exec, propertyName, value, &JSClipboardTable, this, slot); } -void setJSClipboardDropEffect(ExecState* exec, JSObject* thisObject, JSValuePtr value) +void setJSClipboardDropEffect(ExecState* exec, JSObject* thisObject, JSValue value) { Clipboard* imp = static_cast<Clipboard*>(static_cast<JSClipboard*>(thisObject)->impl()); - imp->setDropEffect(value->toString(exec)); + imp->setDropEffect(value.toString(exec)); } -void setJSClipboardEffectAllowed(ExecState* exec, JSObject* thisObject, JSValuePtr value) +void setJSClipboardEffectAllowed(ExecState* exec, JSObject* thisObject, JSValue value) { Clipboard* imp = static_cast<Clipboard*>(static_cast<JSClipboard*>(thisObject)->impl()); - imp->setEffectAllowed(value->toString(exec)); + imp->setEffectAllowed(value.toString(exec)); } -JSValuePtr JSClipboard::getConstructor(ExecState* exec) +JSValue JSClipboard::getConstructor(ExecState* exec) { return getDOMConstructor<JSClipboardConstructor>(exec); } -JSValuePtr jsClipboardPrototypeFunctionClearData(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsClipboardPrototypeFunctionClearData(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSClipboard::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSClipboard::s_info)) return throwError(exec, TypeError); JSClipboard* castedThisObj = static_cast<JSClipboard*>(asObject(thisValue)); return castedThisObj->clearData(exec, args); } -JSValuePtr jsClipboardPrototypeFunctionGetData(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsClipboardPrototypeFunctionGetData(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSClipboard::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSClipboard::s_info)) return throwError(exec, TypeError); JSClipboard* castedThisObj = static_cast<JSClipboard*>(asObject(thisValue)); return castedThisObj->getData(exec, args); } -JSValuePtr jsClipboardPrototypeFunctionSetData(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsClipboardPrototypeFunctionSetData(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSClipboard::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSClipboard::s_info)) return throwError(exec, TypeError); JSClipboard* castedThisObj = static_cast<JSClipboard*>(asObject(thisValue)); return castedThisObj->setData(exec, args); } -JSValuePtr jsClipboardPrototypeFunctionSetDragImage(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsClipboardPrototypeFunctionSetDragImage(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSClipboard::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSClipboard::s_info)) return throwError(exec, TypeError); JSClipboard* castedThisObj = static_cast<JSClipboard*>(asObject(thisValue)); return castedThisObj->setDragImage(exec, args); } -JSC::JSValuePtr toJS(JSC::ExecState* exec, Clipboard* object) +JSC::JSValue toJS(JSC::ExecState* exec, Clipboard* object) { return getDOMObjectWrapper<JSClipboard>(exec, object); } -Clipboard* toClipboard(JSC::JSValuePtr value) +Clipboard* toClipboard(JSC::JSValue value) { - return value->isObject(&JSClipboard::s_info) ? static_cast<JSClipboard*>(asObject(value))->impl() : 0; + return value.isObject(&JSClipboard::s_info) ? static_cast<JSClipboard*>(asObject(value))->impl() : 0; } } |