void WebDOMTestObj::methodWithException() { if (!impl()) return; WebCore::ExceptionCode ec = 0; impl()->methodWithException(ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); }
void WebDOMAttr::setValue(const WebDOMString& value) { if (!impl()) return; WebCore::ExceptionCode ec = 0; impl()->setValue(value, ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); }
void WebDOMTestObj::setStringAttrWithSetterException(const WebDOMString& newStringAttrWithSetterException) { if (!impl()) return; WebCore::ExceptionCode ec = 0; impl()->setStringAttrWithSetterException(newStringAttrWithSetterException, ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); }
void WebDOMTestObj::setAttrWithGetterException(int newAttrWithGetterException) { if (!impl()) return; WebCore::ExceptionCode ec = 0; impl()->setAttrWithGetterException(newAttrWithGetterException, ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); }
bool WebDOMTestEventTarget::dispatchEvent(const WebDOMEvent& evt) { if (!impl()) return false; WebCore::ExceptionCode ec = 0; bool result = impl()->dispatchEvent(toWebCore(evt), ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return result; }
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; }
WebDOMString WebDOMTestObj::stringAttrWithGetterException() const { if (!impl()) return WebDOMString(); WebCore::ExceptionCode ec = 0; WebDOMString result = impl()->stringAttrWithGetterException(ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return static_cast<const WTF::String&>(result); }
int WebDOMTestObj::attrWithGetterException() const { if (!impl()) return 0; WebCore::ExceptionCode ec = 0; int result = impl()->attrWithGetterException(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; }
WebDOMNode WebDOMNodeIterator::previousNode() { if (!impl()) return WebDOMNode(); WebCore::ExceptionCode ec = 0; WebDOMNode result = webKit(WTF::getPtr(impl()->previousNode(ec))); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return result; }
WebDOMNode WebDOMNamedNodeMap::setNamedItem(const WebDOMNode& node) { if (!impl()) return WebDOMNode(); WebCore::ExceptionCode ec = 0; WebDOMNode result = webKit(WTF::getPtr(impl()->setNamedItem(webCore(node), ec))); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return result; }
int WebDOMTestObj::nullableStringValue() const { if (!impl()) return 0; bool isNull = false; WebCore::ExceptionCode ec = 0; int result = impl()->nullableStringValue(isNull, ec); webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return result; }
WebDOMNode WebDOMNode::appendChild(const WebDOMNode& newChild) { if (!impl()) return WebDOMNode(); WebCore::ExceptionCode ec = 0; if (impl()->appendChild(toWebCore(newChild), ec, AttachLazily)) return newChild; webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return WebDOMNode(); }
WebDOMNode WebDOMNode::removeChild(const WebDOMNode& oldChild) { if (!impl()) return WebDOMNode(); WebCore::ExceptionCode ec = 0; if (impl()->removeChild(toWebCore(oldChild), ec)) return oldChild; webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return WebDOMNode(); }
WebDOMNode WebDOMNode::insertBefore(const WebDOMNode& newChild, const WebDOMNode& refChild) { if (!impl()) return WebDOMNode(); WebCore::ExceptionCode ec = 0; if (impl()->insertBefore(toWebCore(newChild), toWebCore(refChild), ec, AttachLazily)) return newChild; webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec)); return WebDOMNode(); }