示例#1
0
void WebDOMTestObj::optionsObject(const WebDOMDictionary& oo, const WebDOMDictionary& ooo)
{
    if (!impl())
        return;

    impl()->optionsObject(toWebCore(oo), toWebCore(ooo));
}
示例#2
0
void WebDOMTestObj::variadicNodeMethod(const WebDOMNode& head, const WebDOMNode& tail)
{
    if (!impl())
        return;

    impl()->variadicNodeMethod(toWebCore(head), toWebCore(tail));
}
void WebDOMNode::removeEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture)
{
    if (!impl())
        return;

    if (toWebCore(listener))
        impl()->removeEventListener(type, toWebCore(listener), useCapture);
}
WebDOMNode WebDOMNode::replaceChild(const WebDOMNode& newChild, const WebDOMNode& oldChild)
{
    if (!impl())
        return WebDOMNode();

    WebCore::ExceptionCode ec = 0;
    if (impl()->replaceChild(toWebCore(newChild), toWebCore(oldChild), ec, AttachLazily))
        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();
}
示例#6
0
void WebDOMTestObj::convert5(const WebDOMTestNode& value)
{
    if (!impl())
        return;

    impl()->convert5(toWebCore(value));
}
bool WebDOMTestCallback::callbackWithArrayParam(const WebDOMFloat32Array& arrayParam)
{
    if (!impl())
        return false;

    return impl()->callbackWithArrayParam(toWebCore(arrayParam));
}
示例#8
0
void WebDOMTestObj::methodWithEnumArg(const WebDOMTestEnumType& enumArg)
{
    if (!impl())
        return;

    impl()->methodWithEnumArg(toWebCore(enumArg));
}
示例#9
0
int WebDOMTestObj::longMethodWithArgs(int longArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
{
    if (!impl())
        return 0;

    return impl()->longMethodWithArgs(longArg, strArg, toWebCore(objArg));
}
示例#10
0
char WebDOMTestObj::byteMethodWithArgs(char byteArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
{
    if (!impl())
        return char();

    return impl()->byteMethodWithArgs(byteArg, strArg, toWebCore(objArg));
}
示例#11
0
void WebDOMTestObj::setImmutablePoint(const WebDOMSVGPoint& newImmutablePoint)
{
    if (!impl())
        return;

    impl()->setImmutablePoint(toWebCore(newImmutablePoint));
}
bool WebDOMTestCallback::callbackWithClass2Param(const WebDOMClass2& class2Param, const WebDOMString& strArg)
{
    if (!impl())
        return false;

    return impl()->callbackWithClass2Param(toWebCore(class2Param), strArg);
}
bool WebDOMTestCallback::callbackWithClass1Param(const WebDOMClass1& class1Param)
{
    if (!impl())
        return false;

    return impl()->callbackWithClass1Param(toWebCore(class1Param));
}
int WebDOMTestCallback::callbackWithNonBoolReturnType(const WebDOMClass3& class3Param)
{
    if (!impl())
        return 0;

    return impl()->callbackWithNonBoolReturnType(toWebCore(class3Param));
}
示例#15
0
void WebDOMTestObj::idbKey(const WebDOMIDBKey& key)
{
    if (!impl())
        return;

    impl()->idbKey(toWebCore(key));
}
示例#16
0
void WebDOMTestObj::setAnyAttribute(const WebDOMObject& newAnyAttribute)
{
    if (!impl())
        return;

    impl()->setAnyAttribute(toWebCore(newAnyAttribute));
}
示例#17
0
void WebDOMTestObj::convert5(const WebDOMe& )
{
    if (!impl())
        return;

    impl()->convert5(toWebCore());
}
示例#18
0
void WebDOMTestObj::voidMethodWithArgs(int longArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
{
    if (!impl())
        return;

    impl()->voidMethodWithArgs(longArg, strArg, toWebCore(objArg));
}
bool WebDOMTestCallback::callbackWithStringList(const WebDOMDOMStringList& listParam)
{
    if (!impl())
        return false;

    return impl()->callbackWithStringList(toWebCore(listParam));
}
示例#20
0
unsigned char WebDOMTestObj::octetMethodWithArgs(unsigned char octetArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
{
    if (!impl())
        return unsigned char();

    return impl()->octetMethodWithArgs(octetArg, strArg, toWebCore(objArg));
}
bool WebDOMTestCallback::callbackRequiresThisToPass(int longParam, const WebDOMTestNode& testNodeParam)
{
    if (!impl())
        return false;

    return impl()->callbackRequiresThisToPass(longParam, toWebCore(testNodeParam));
}
示例#22
0
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))));
}
示例#23
0
void WebDOMTestObj::setXMLObjAttr(const WebDOMTestObj& newXMLObjAttr)
{
    if (!impl())
        return;

    impl()->setXMLObjAttr(toWebCore(newXMLObjAttr));
}
示例#24
0
WebDOMInt32Array WebDOMFloat64Array::foo(const WebDOMFloat32Array& array)
{
    if (!impl())
        return WebDOMInt32Array();

    return toWebKit(WTF::getPtr(impl()->foo(toWebCore(array))));
}
void WebDOMTestEventTarget::addEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture)
{
    if (!impl())
        return;

    impl()->addEventListener(type, toWebCore(listener), useCapture);
}
void WebDOMEventListener::handleEvent(const WebDOMEvent& evt)
{
    if (!impl())
        return;

    impl()->handleEvent(0, toWebCore(evt));
}
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;
}
void UserMediaPermissionRequestManagerProxy::denyRequest(uint64_t userMediaID, UserMediaPermissionRequestProxy::UserMediaAccessDenialReason reason, const String& invalidConstraint)
{
    ASSERT(m_page.isValid());

#if ENABLE(MEDIA_STREAM)
    m_page.process().send(Messages::WebPage::UserMediaAccessWasDenied(userMediaID, toWebCore(reason), invalidConstraint), m_page.pageID());
#else
    UNUSED_PARAM(reason);
    UNUSED_PARAM(invalidConstraint);
#endif
}
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();
}
示例#30
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;
}