WebDOMNode WebDOMTestEventTarget::item(unsigned index) { if (!impl()) return WebDOMNode(); return toWebKit(WTF::getPtr(impl()->item(index))); }
WebDOMTestObj WebDOMTestObj::objMethod() { if (!impl()) return WebDOMTestObj(); return toWebKit(WTF::getPtr(impl()->objMethod())); }
WebDOMTestObj WebDOMTestObj::treatReturnedNullObjectAsUndefined() { if (!impl()) return WebDOMTestObj(); return toWebKit(WTF::getPtr(impl()->treatReturnedNullObjectAsUndefined())); }
WebDOMTestObj WebDOMTestObj::objMethodWithArgs(int longArg, const WebDOMString& strArg, const WebDOMTestObj& objArg) { if (!impl()) return WebDOMTestObj(); return toWebKit(WTF::getPtr(impl()->objMethodWithArgs(longArg, strArg, toWebCore(objArg)))); }
WebDOMDocument WebDOMTestObj::contentDocument() const { if (!impl()) return WebDOMDocument(); return toWebKit(WTF::getPtr(impl()->contentDocument())); }
WebDOMSVGPoint WebDOMTestObj::immutablePoint() const { if (!impl()) return WebDOMSVGPoint(); return toWebKit(WTF::getPtr(impl()->immutablePoint())); }
WebDOMTestObj WebDOMTestObj::XMLObjAttr() const { if (!impl()) return WebDOMTestObj(); return toWebKit(WTF::getPtr(impl()->xmlObjAttr())); }
WebDOMObject WebDOMTestObj::anyAttribute() const { if (!impl()) return WebDOMObject(); return toWebKit(WTF::getPtr(impl()->anyAttribute())); }
WebDOMTestObj WebDOMTestObj::readOnlyTestObjAttr() const { if (!impl()) return WebDOMTestObj(); return toWebKit(WTF::getPtr(impl()->readOnlyTestObjAttr())); }
WebDOMSVGPoint WebDOMTestObj::mutablePointFunction() { if (!impl()) return WebDOMSVGPoint(); return toWebKit(WTF::getPtr(impl()->mutablePointFunction())); }
WebDOMInt32Array WebDOMFloat64Array::foo(const WebDOMFloat32Array& array) { if (!impl()) return WebDOMInt32Array(); return toWebKit(WTF::getPtr(impl()->foo(toWebCore(array)))); }
WebDOMTestObj WebDOMTestObj::methodThatRequiresAllArgsAndThrows(const WebDOMString& strArg, const WebDOMTestObj& objArg) { if (!impl()) return WebDOMTestObj(); WebCore::ExceptionCode ec = 0; WebDOMTestObj result = toWebKit(WTF::getPtr(impl()->methodThatRequiresAllArgsAndThrows(strArg, toWebCore(objArg), ec))); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return result; }
WebDOMbool WebDOMTestObj::strictFunction(const WebDOMString& str, float a, int b) { if (!impl()) return WebDOMbool(); WebCore::ExceptionCode ec = 0; WebDOMbool result = toWebKit(WTF::getPtr(impl()->strictFunction(str, a, b, ec))); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return result; }
void WebNativeEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event* event) { m_listener->handleEvent(toWebKit(event)); }