コード例 #1
0
void WebDOMTestObj::methodWithException()
{
    if (!impl())
        return;

    WebCore::ExceptionCode ec = 0;
    impl()->methodWithException(ec);
    webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
}
コード例 #2
0
void WebDOMAttr::setValue(const WebDOMString& value)
{
    if (!impl())
        return;

    WebCore::ExceptionCode ec = 0;
    impl()->setValue(value, ec);
    webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
}
コード例 #3
0
void WebDOMTestObj::setStringAttrWithSetterException(const WebDOMString& newStringAttrWithSetterException)
{
    if (!impl())
        return;

    WebCore::ExceptionCode ec = 0;
    impl()->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
    webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
}
コード例 #4
0
void WebDOMTestObj::setAttrWithGetterException(int newAttrWithGetterException)
{
    if (!impl())
        return;

    WebCore::ExceptionCode ec = 0;
    impl()->setAttrWithGetterException(newAttrWithGetterException, ec);
    webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
}
コード例 #5
0
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;
}
コード例 #6
0
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;
}
コード例 #7
0
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);
}
コード例 #8
0
int WebDOMTestObj::attrWithGetterException() const
{
    if (!impl())
        return 0;

    WebCore::ExceptionCode ec = 0;
    int result = impl()->attrWithGetterException(ec);
    webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
    return result;
}
コード例 #9
0
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;
}
コード例 #10
0
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;
}
コード例 #11
0
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;
}
コード例 #12
0
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;
}
コード例 #13
0
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();
}
コード例 #14
0
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();
}
コード例 #15
0
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();
}