void setJSMessagePortOnmessage(ExecState* exec, JSObject* thisObject, JSValue value) { UNUSED_PARAM(exec); JSMessagePort* castedThis = static_cast<JSMessagePort*>(thisObject); MessagePort* imp = static_cast<MessagePort*>(castedThis->impl()); imp->setOnmessage(createJSAttributeEventListener(exec, value, thisObject)); }
void setJSDOMApplicationCacheOnobsolete(ExecState* exec, JSObject* thisObject, JSValue value) { UNUSED_PARAM(exec); JSDOMApplicationCache* castedThis = static_cast<JSDOMApplicationCache*>(thisObject); DOMApplicationCache* imp = static_cast<DOMApplicationCache*>(castedThis->impl()); imp->setOnobsolete(createJSAttributeEventListener(exec, value, thisObject)); }
void setJSSharedWorkerContextOnconnect(ExecState* exec, JSObject* thisObject, JSValue value) { UNUSED_PARAM(exec); JSSharedWorkerContext* castedThis = static_cast<JSSharedWorkerContext*>(thisObject); SharedWorkerContext* imp = static_cast<SharedWorkerContext*>(castedThis->impl()); imp->setOnconnect(createJSAttributeEventListener(exec, value, thisObject)); }
void setJSFileReaderOnloadend(ExecState* exec, JSObject* thisObject, JSValue value) { UNUSED_PARAM(exec); JSFileReader* castedThis = static_cast<JSFileReader*>(thisObject); FileReader* imp = static_cast<FileReader*>(castedThis->impl()); imp->setOnloadend(createJSAttributeEventListener(exec, value, thisObject)); }
void setJSDedicatedWorkerGlobalScopeOnmessage(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue encodedValue) { JSValue value = JSValue::decode(encodedValue); UNUSED_PARAM(exec); JSDedicatedWorkerGlobalScope* castedThis = jsDynamicCast<JSDedicatedWorkerGlobalScope*>(JSValue::decode(thisValue)); if (!castedThis) { throwVMTypeError(exec); return; } UNUSED_PARAM(exec); DedicatedWorkerGlobalScope& impl = castedThis->impl(); impl.setOnmessage(createJSAttributeEventListener(exec, value, castedThis)); }
void setJSAbstractWorkerOnerror(ExecState* exec, JSObject* thisObject, JSValue value) { UNUSED_PARAM(exec); AbstractWorker* imp = static_cast<AbstractWorker*>(static_cast<JSAbstractWorker*>(thisObject)->impl()); imp->setOnerror(createJSAttributeEventListener(exec, value, thisObject)); }