summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/scripts/test
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/scripts/test')
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp120
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h66
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp87
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h57
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp92
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h55
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp834
-rw-r--r--WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h174
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp206
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.h60
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h39
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp150
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h51
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h39
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp147
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h51
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h39
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp1812
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h324
-rw-r--r--WebCore/bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h39
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestCallback.cpp98
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestCallback.h58
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestInterface.cpp185
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestInterface.h86
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp194
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h87
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestObj.cpp1646
-rw-r--r--WebCore/bindings/scripts/test/JS/JSTestObj.h208
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h45
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm127
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h38
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h34
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm92
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h38
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h37
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm95
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h38
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestObj.h157
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm712
-rw-r--r--WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h38
-rw-r--r--WebCore/bindings/scripts/test/TestCallback.idl41
-rw-r--r--WebCore/bindings/scripts/test/TestInterface.idl38
-rw-r--r--WebCore/bindings/scripts/test/TestMediaQueryListListener.idl32
-rw-r--r--WebCore/bindings/scripts/test/TestObj.idl175
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestCallback.cpp113
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestCallback.h64
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestInterface.cpp99
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestInterface.h77
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp106
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h72
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestObj.cpp1392
-rw-r--r--WebCore/bindings/scripts/test/V8/V8TestObj.h76
52 files changed, 0 insertions, 10740 deletions
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp b/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp
deleted file mode 100644
index a58da40..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include "config.h"
-
-#if ENABLE(DATABASE)
-
-#include "WebDOMTestCallback.h"
-
-#include "Class1.h"
-#include "Class2.h"
-#include "Class3.h"
-#include "KURL.h"
-#include "TestCallback.h"
-#include "WebDOMClass1.h"
-#include "WebDOMClass2.h"
-#include "WebDOMClass3.h"
-#include "WebDOMString.h"
-#include "WebExceptionHandler.h"
-#include "wtf/text/AtomicString.h"
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-
-struct WebDOMTestCallback::WebDOMTestCallbackPrivate {
- WebDOMTestCallbackPrivate(WebCore::TestCallback* object = 0)
- : impl(object)
- {
- }
-
- RefPtr<WebCore::TestCallback> impl;
-};
-
-WebDOMTestCallback::WebDOMTestCallback()
- : WebDOMObject()
- , m_impl(0)
-{
-}
-
-WebDOMTestCallback::WebDOMTestCallback(WebCore::TestCallback* impl)
- : WebDOMObject()
- , m_impl(new WebDOMTestCallbackPrivate(impl))
-{
-}
-
-WebDOMTestCallback::WebDOMTestCallback(const WebDOMTestCallback& copy)
- : WebDOMObject()
-{
- m_impl = copy.impl() ? new WebDOMTestCallbackPrivate(copy.impl()) : 0;
-}
-
-WebDOMTestCallback& WebDOMTestCallback::operator=(const WebDOMTestCallback& copy)
-{
- delete m_impl;
- m_impl = copy.impl() ? new WebDOMTestCallbackPrivate(copy.impl()) : 0;
- return *this;
-}
-
-WebCore::TestCallback* WebDOMTestCallback::impl() const
-{
- return m_impl ? m_impl->impl.get() : 0;
-}
-
-WebDOMTestCallback::~WebDOMTestCallback()
-{
- delete m_impl;
- m_impl = 0;
-}
-
-bool WebDOMTestCallback::callbackWithClass1Param(const WebDOMClass1& class1Param)
-{
- if (!impl())
- return false;
-
- return impl()->callbackWithClass1Param(toWebCore(class1Param));
-}
-
-bool WebDOMTestCallback::callbackWithClass2Param(const WebDOMClass2& class2Param, const WebDOMString& strArg)
-{
- if (!impl())
- return false;
-
- return impl()->callbackWithClass2Param(toWebCore(class2Param), strArg);
-}
-
-int WebDOMTestCallback::callbackWithNonBoolReturnType(const WebDOMClass3& class3Param)
-{
- if (!impl())
- return 0;
-
- return impl()->callbackWithNonBoolReturnType(toWebCore(class3Param));
-}
-
-WebCore::TestCallback* toWebCore(const WebDOMTestCallback& wrapper)
-{
- return wrapper.impl();
-}
-
-WebDOMTestCallback toWebKit(WebCore::TestCallback* value)
-{
- return WebDOMTestCallback(value);
-}
-
-#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h b/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h
deleted file mode 100644
index 91ff787..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef WebDOMTestCallback_h
-#define WebDOMTestCallback_h
-
-#if ENABLE(DATABASE)
-
-#include <WebDOMObject.h>
-#include <WebDOMString.h>
-
-namespace WebCore {
-class TestCallback;
-};
-
-class WebDOMClass1;
-class WebDOMClass2;
-class WebDOMClass3;
-class WebDOMClass5;
-class WebDOMClass6;
-
-class WebDOMTestCallback : public WebDOMObject {
-public:
- WebDOMTestCallback();
- explicit WebDOMTestCallback(WebCore::TestCallback*);
- WebDOMTestCallback(const WebDOMTestCallback&);
- WebDOMTestCallback& operator=(const WebDOMTestCallback&);
- virtual ~WebDOMTestCallback();
-
- bool callbackWithClass1Param(const WebDOMClass1& class1Param);
- bool callbackWithClass2Param(const WebDOMClass2& class2Param, const WebDOMString& strArg);
- int callbackWithNonBoolReturnType(const WebDOMClass3& class3Param);
- int customCallback(const WebDOMClass5& class5Param, const WebDOMClass6& class6Param);
-
- WebCore::TestCallback* impl() const;
-
-protected:
- struct WebDOMTestCallbackPrivate;
- WebDOMTestCallbackPrivate* m_impl;
-};
-
-WebCore::TestCallback* toWebCore(const WebDOMTestCallback&);
-WebDOMTestCallback toWebKit(WebCore::TestCallback*);
-
-#endif
-#endif // ENABLE(DATABASE)
-
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp b/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp
deleted file mode 100644
index 7fa4af3..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include "config.h"
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#include "WebDOMTestInterface.h"
-
-#include "TestInterface.h"
-#include "WebExceptionHandler.h"
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-
-struct WebDOMTestInterface::WebDOMTestInterfacePrivate {
- WebDOMTestInterfacePrivate(WebCore::TestInterface* object = 0)
- : impl(object)
- {
- }
-
- RefPtr<WebCore::TestInterface> impl;
-};
-
-WebDOMTestInterface::WebDOMTestInterface()
- : WebDOMObject()
- , m_impl(0)
-{
-}
-
-WebDOMTestInterface::WebDOMTestInterface(WebCore::TestInterface* impl)
- : WebDOMObject()
- , m_impl(new WebDOMTestInterfacePrivate(impl))
-{
-}
-
-WebDOMTestInterface::WebDOMTestInterface(const WebDOMTestInterface& copy)
- : WebDOMObject()
-{
- m_impl = copy.impl() ? new WebDOMTestInterfacePrivate(copy.impl()) : 0;
-}
-
-WebDOMTestInterface& WebDOMTestInterface::operator=(const WebDOMTestInterface& copy)
-{
- delete m_impl;
- m_impl = copy.impl() ? new WebDOMTestInterfacePrivate(copy.impl()) : 0;
- return *this;
-}
-
-WebCore::TestInterface* WebDOMTestInterface::impl() const
-{
- return m_impl ? m_impl->impl.get() : 0;
-}
-
-WebDOMTestInterface::~WebDOMTestInterface()
-{
- delete m_impl;
- m_impl = 0;
-}
-
-WebCore::TestInterface* toWebCore(const WebDOMTestInterface& wrapper)
-{
- return wrapper.impl();
-}
-
-WebDOMTestInterface toWebKit(WebCore::TestInterface* value)
-{
- return WebDOMTestInterface(value);
-}
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h b/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h
deleted file mode 100644
index 5db5db8..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef WebDOMTestInterface_h
-#define WebDOMTestInterface_h
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#include <WebDOMObject.h>
-#include <WebDOMString.h>
-
-namespace WebCore {
-class TestInterface;
-};
-
-
-class WebDOMTestInterface : public WebDOMObject {
-public:
- WebDOMTestInterface();
- explicit WebDOMTestInterface(WebCore::TestInterface*);
- WebDOMTestInterface(const WebDOMTestInterface&);
- WebDOMTestInterface& operator=(const WebDOMTestInterface&);
- virtual ~WebDOMTestInterface();
-
-
- WebCore::TestInterface* impl() const;
-
-protected:
- struct WebDOMTestInterfacePrivate;
- WebDOMTestInterfacePrivate* m_impl;
-};
-
-WebCore::TestInterface* toWebCore(const WebDOMTestInterface&);
-WebDOMTestInterface toWebKit(WebCore::TestInterface*);
-
-#endif
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
-
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp
deleted file mode 100644
index 7543fc4..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include "config.h"
-#include "WebDOMTestMediaQueryListListener.h"
-
-#include "MediaQueryListListener.h"
-#include "TestMediaQueryListListener.h"
-#include "WebDOMMediaQueryListListener.h"
-#include "WebExceptionHandler.h"
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-
-struct WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListenerPrivate {
- WebDOMTestMediaQueryListListenerPrivate(WebCore::TestMediaQueryListListener* object = 0)
- : impl(object)
- {
- }
-
- RefPtr<WebCore::TestMediaQueryListListener> impl;
-};
-
-WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListener()
- : WebDOMObject()
- , m_impl(0)
-{
-}
-
-WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListener(WebCore::TestMediaQueryListListener* impl)
- : WebDOMObject()
- , m_impl(new WebDOMTestMediaQueryListListenerPrivate(impl))
-{
-}
-
-WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListener(const WebDOMTestMediaQueryListListener& copy)
- : WebDOMObject()
-{
- m_impl = copy.impl() ? new WebDOMTestMediaQueryListListenerPrivate(copy.impl()) : 0;
-}
-
-WebDOMTestMediaQueryListListener& WebDOMTestMediaQueryListListener::operator=(const WebDOMTestMediaQueryListListener& copy)
-{
- delete m_impl;
- m_impl = copy.impl() ? new WebDOMTestMediaQueryListListenerPrivate(copy.impl()) : 0;
- return *this;
-}
-
-WebCore::TestMediaQueryListListener* WebDOMTestMediaQueryListListener::impl() const
-{
- return m_impl ? m_impl->impl.get() : 0;
-}
-
-WebDOMTestMediaQueryListListener::~WebDOMTestMediaQueryListListener()
-{
- delete m_impl;
- m_impl = 0;
-}
-
-void WebDOMTestMediaQueryListListener::method(const WebDOMMediaQueryListListener& listener)
-{
- if (!impl())
- return;
-
- impl()->method(toWebCore(listener));
-}
-
-WebCore::TestMediaQueryListListener* toWebCore(const WebDOMTestMediaQueryListListener& wrapper)
-{
- return wrapper.impl();
-}
-
-WebDOMTestMediaQueryListListener toWebKit(WebCore::TestMediaQueryListListener* value)
-{
- return WebDOMTestMediaQueryListListener(value);
-}
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h
deleted file mode 100644
index 8f89836..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef WebDOMTestMediaQueryListListener_h
-#define WebDOMTestMediaQueryListListener_h
-
-#include <WebDOMObject.h>
-#include <WebDOMString.h>
-
-namespace WebCore {
-class TestMediaQueryListListener;
-};
-
-class WebDOMMediaQueryListListener;
-
-class WebDOMTestMediaQueryListListener : public WebDOMObject {
-public:
- WebDOMTestMediaQueryListListener();
- explicit WebDOMTestMediaQueryListListener(WebCore::TestMediaQueryListListener*);
- WebDOMTestMediaQueryListListener(const WebDOMTestMediaQueryListListener&);
- WebDOMTestMediaQueryListListener& operator=(const WebDOMTestMediaQueryListListener&);
- virtual ~WebDOMTestMediaQueryListListener();
-
- void method(const WebDOMMediaQueryListListener& listener);
-
- WebCore::TestMediaQueryListListener* impl() const;
-
-protected:
- struct WebDOMTestMediaQueryListListenerPrivate;
- WebDOMTestMediaQueryListListenerPrivate* m_impl;
-};
-
-WebCore::TestMediaQueryListListener* toWebCore(const WebDOMTestMediaQueryListListener&);
-WebDOMTestMediaQueryListListener toWebKit(WebCore::TestMediaQueryListListener*);
-
-#endif
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp b/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp
deleted file mode 100644
index 65e5bf3..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp
+++ /dev/null
@@ -1,834 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#include "config.h"
-#include "WebDOMTestObj.h"
-
-#include "HTMLNames.h"
-#include "IDBKey.h"
-#include "KURL.h"
-#include "OptionsObject.h"
-#include "SerializedScriptValue.h"
-#include "TestObj.h"
-#include "WebDOMIDBKey.h"
-#include "WebDOMOptionsObject.h"
-#include "WebDOMString.h"
-#include "WebExceptionHandler.h"
-#include "WebNativeEventListener.h"
-#include "wtf/text/AtomicString.h"
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-
-struct WebDOMTestObj::WebDOMTestObjPrivate {
- WebDOMTestObjPrivate(WebCore::TestObj* object = 0)
- : impl(object)
- {
- }
-
- RefPtr<WebCore::TestObj> impl;
-};
-
-WebDOMTestObj::WebDOMTestObj()
- : WebDOMObject()
- , m_impl(0)
-{
-}
-
-WebDOMTestObj::WebDOMTestObj(WebCore::TestObj* impl)
- : WebDOMObject()
- , m_impl(new WebDOMTestObjPrivate(impl))
-{
-}
-
-WebDOMTestObj::WebDOMTestObj(const WebDOMTestObj& copy)
- : WebDOMObject()
-{
- m_impl = copy.impl() ? new WebDOMTestObjPrivate(copy.impl()) : 0;
-}
-
-WebDOMTestObj& WebDOMTestObj::operator=(const WebDOMTestObj& copy)
-{
- delete m_impl;
- m_impl = copy.impl() ? new WebDOMTestObjPrivate(copy.impl()) : 0;
- return *this;
-}
-
-WebCore::TestObj* WebDOMTestObj::impl() const
-{
- return m_impl ? m_impl->impl.get() : 0;
-}
-
-WebDOMTestObj::~WebDOMTestObj()
-{
- delete m_impl;
- m_impl = 0;
-}
-
-int WebDOMTestObj::readOnlyIntAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->readOnlyIntAttr();
-}
-
-WebDOMString WebDOMTestObj::readOnlyStringAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->readOnlyStringAttr());
-}
-
-WebDOMTestObj WebDOMTestObj::readOnlyTestObjAttr() const
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->readOnlyTestObjAttr()));
-}
-
-short WebDOMTestObj::shortAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->shortAttr();
-}
-
-void WebDOMTestObj::setShortAttr(short newShortAttr)
-{
- if (!impl())
- return;
-
- impl()->setShortAttr(newShortAttr);
-}
-
-unsigned short WebDOMTestObj::unsignedShortAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->unsignedShortAttr();
-}
-
-void WebDOMTestObj::setUnsignedShortAttr(unsigned short newUnsignedShortAttr)
-{
- if (!impl())
- return;
-
- impl()->setUnsignedShortAttr(newUnsignedShortAttr);
-}
-
-int WebDOMTestObj::intAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->intAttr();
-}
-
-void WebDOMTestObj::setIntAttr(int newIntAttr)
-{
- if (!impl())
- return;
-
- impl()->setIntAttr(newIntAttr);
-}
-
-long long WebDOMTestObj::longLongAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->longLongAttr();
-}
-
-void WebDOMTestObj::setLongLongAttr(long long newLongLongAttr)
-{
- if (!impl())
- return;
-
- impl()->setLongLongAttr(newLongLongAttr);
-}
-
-unsigned long long WebDOMTestObj::unsignedLongLongAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->unsignedLongLongAttr();
-}
-
-void WebDOMTestObj::setUnsignedLongLongAttr(unsigned long long newUnsignedLongLongAttr)
-{
- if (!impl())
- return;
-
- impl()->setUnsignedLongLongAttr(newUnsignedLongLongAttr);
-}
-
-WebDOMString WebDOMTestObj::stringAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->stringAttr());
-}
-
-void WebDOMTestObj::setStringAttr(const WebDOMString& newStringAttr)
-{
- if (!impl())
- return;
-
- impl()->setStringAttr(newStringAttr);
-}
-
-WebDOMTestObj WebDOMTestObj::testObjAttr() const
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->testObjAttr()));
-}
-
-void WebDOMTestObj::setTestObjAttr(const WebDOMTestObj& newTestObjAttr)
-{
- if (!impl())
- return;
-
- impl()->setTestObjAttr(toWebCore(newTestObjAttr));
-}
-
-WebDOMTestObj WebDOMTestObj::XMLObjAttr() const
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->xmlObjAttr()));
-}
-
-void WebDOMTestObj::setXMLObjAttr(const WebDOMTestObj& newXMLObjAttr)
-{
- if (!impl())
- return;
-
- impl()->setXMLObjAttr(toWebCore(newXMLObjAttr));
-}
-
-bool WebDOMTestObj::create() const
-{
- if (!impl())
- return false;
-
- return impl()->isCreate();
-}
-
-void WebDOMTestObj::setCreate(bool newCreate)
-{
- if (!impl())
- return;
-
- impl()->setCreate(newCreate);
-}
-
-WebDOMString WebDOMTestObj::reflectedStringAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
-}
-
-void WebDOMTestObj::setReflectedStringAttr(const WebDOMString& newReflectedStringAttr)
-{
- if (!impl())
- return;
-
- impl()->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr);
-}
-
-int WebDOMTestObj::reflectedIntegralAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
-}
-
-void WebDOMTestObj::setReflectedIntegralAttr(int newReflectedIntegralAttr)
-{
- if (!impl())
- return;
-
- impl()->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr);
-}
-
-unsigned WebDOMTestObj::reflectedUnsignedIntegralAttr() const
-{
- if (!impl())
- return unsigned();
-
- return impl()->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
-}
-
-void WebDOMTestObj::setReflectedUnsignedIntegralAttr(unsigned newReflectedUnsignedIntegralAttr)
-{
- if (!impl())
- return;
-
- impl()->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr);
-}
-
-bool WebDOMTestObj::reflectedBooleanAttr() const
-{
- if (!impl())
- return false;
-
- return impl()->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
-}
-
-void WebDOMTestObj::setReflectedBooleanAttr(bool newReflectedBooleanAttr)
-{
- if (!impl())
- return;
-
- impl()->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr);
-}
-
-WebDOMString WebDOMTestObj::reflectedURLAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
-}
-
-void WebDOMTestObj::setReflectedURLAttr(const WebDOMString& newReflectedURLAttr)
-{
- if (!impl())
- return;
-
- impl()->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr);
-}
-
-WebDOMString WebDOMTestObj::reflectedNonEmptyURLAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr));
-}
-
-void WebDOMTestObj::setReflectedNonEmptyURLAttr(const WebDOMString& newReflectedNonEmptyURLAttr)
-{
- if (!impl())
- return;
-
- impl()->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, newReflectedNonEmptyURLAttr);
-}
-
-WebDOMString WebDOMTestObj::reflectedStringAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
-}
-
-void WebDOMTestObj::setReflectedStringAttr(const WebDOMString& newReflectedStringAttr)
-{
- if (!impl())
- return;
-
- impl()->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr);
-}
-
-int WebDOMTestObj::reflectedCustomIntegralAttr() const
-{
- if (!impl())
- return 0;
-
- return impl()->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
-}
-
-void WebDOMTestObj::setReflectedCustomIntegralAttr(int newReflectedCustomIntegralAttr)
-{
- if (!impl())
- return;
-
- impl()->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr);
-}
-
-bool WebDOMTestObj::reflectedCustomBooleanAttr() const
-{
- if (!impl())
- return false;
-
- return impl()->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
-}
-
-void WebDOMTestObj::setReflectedCustomBooleanAttr(bool newReflectedCustomBooleanAttr)
-{
- if (!impl())
- return;
-
- impl()->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr);
-}
-
-WebDOMString WebDOMTestObj::reflectedCustomURLAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
-}
-
-void WebDOMTestObj::setReflectedCustomURLAttr(const WebDOMString& newReflectedCustomURLAttr)
-{
- if (!impl())
- return;
-
- impl()->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr);
-}
-
-WebDOMString WebDOMTestObj::reflectedCustomNonEmptyURLAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr));
-}
-
-void WebDOMTestObj::setReflectedCustomNonEmptyURLAttr(const WebDOMString& newReflectedCustomNonEmptyURLAttr)
-{
- if (!impl())
- return;
-
- impl()->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, newReflectedCustomNonEmptyURLAttr);
-}
-
-int WebDOMTestObj::attrWithGetterException() const
-{
- if (!impl())
- return 0;
-
- WebCore::ExceptionCode ec = 0;
- int result = impl()->attrWithGetterException(ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
- return result;
-}
-
-void WebDOMTestObj::setAttrWithGetterException(int newAttrWithGetterException)
-{
- if (!impl())
- return;
-
- WebCore::ExceptionCode ec = 0;
- impl()->setAttrWithGetterException(newAttrWithGetterException, ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
-}
-
-int WebDOMTestObj::attrWithSetterException() const
-{
- if (!impl())
- return 0;
-
- return impl()->attrWithSetterException();
-}
-
-void WebDOMTestObj::setAttrWithSetterException(int newAttrWithSetterException)
-{
- if (!impl())
- return;
-
- WebCore::ExceptionCode ec = 0;
- impl()->setAttrWithSetterException(newAttrWithSetterException, ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
-}
-
-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);
-}
-
-void WebDOMTestObj::setStringAttrWithGetterException(const WebDOMString& newStringAttrWithGetterException)
-{
- if (!impl())
- return;
-
- WebCore::ExceptionCode ec = 0;
- impl()->setStringAttrWithGetterException(newStringAttrWithGetterException, ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
-}
-
-WebDOMString WebDOMTestObj::stringAttrWithSetterException() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->stringAttrWithSetterException());
-}
-
-void WebDOMTestObj::setStringAttrWithSetterException(const WebDOMString& newStringAttrWithSetterException)
-{
- if (!impl())
- return;
-
- WebCore::ExceptionCode ec = 0;
- impl()->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
-}
-
-WebDOMString WebDOMTestObj::scriptStringAttr() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->scriptStringAttr());
-}
-
-#if ENABLE(Condition1)
-int WebDOMTestObj::conditionalAttr1() const
-{
- if (!impl())
- return 0;
-
- return impl()->conditionalAttr1();
-}
-
-void WebDOMTestObj::setConditionalAttr1(int newConditionalAttr1)
-{
- if (!impl())
- return;
-
- impl()->setConditionalAttr1(newConditionalAttr1);
-}
-
-#endif
-#if ENABLE(Condition1) && ENABLE(Condition2)
-int WebDOMTestObj::conditionalAttr2() const
-{
- if (!impl())
- return 0;
-
- return impl()->conditionalAttr2();
-}
-
-void WebDOMTestObj::setConditionalAttr2(int newConditionalAttr2)
-{
- if (!impl())
- return;
-
- impl()->setConditionalAttr2(newConditionalAttr2);
-}
-
-#endif
-#if ENABLE(Condition1) || ENABLE(Condition2)
-int WebDOMTestObj::conditionalAttr3() const
-{
- if (!impl())
- return 0;
-
- return impl()->conditionalAttr3();
-}
-
-void WebDOMTestObj::setConditionalAttr3(int newConditionalAttr3)
-{
- if (!impl())
- return;
-
- impl()->setConditionalAttr3(newConditionalAttr3);
-}
-
-#endif
-int WebDOMTestObj::description() const
-{
- if (!impl())
- return 0;
-
- return impl()->description();
-}
-
-int WebDOMTestObj::id() const
-{
- if (!impl())
- return 0;
-
- return impl()->id();
-}
-
-void WebDOMTestObj::setId(int newId)
-{
- if (!impl())
- return;
-
- impl()->setId(newId);
-}
-
-WebDOMString WebDOMTestObj::hash() const
-{
- if (!impl())
- return WebDOMString();
-
- return static_cast<const WTF::String&>(impl()->hash());
-}
-
-void WebDOMTestObj::voidMethod()
-{
- if (!impl())
- return;
-
- impl()->voidMethod();
-}
-
-void WebDOMTestObj::voidMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
-{
- if (!impl())
- return;
-
- impl()->voidMethodWithArgs(intArg, strArg, toWebCore(objArg));
-}
-
-int WebDOMTestObj::intMethod()
-{
- if (!impl())
- return 0;
-
- return impl()->intMethod();
-}
-
-int WebDOMTestObj::intMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
-{
- if (!impl())
- return 0;
-
- return impl()->intMethodWithArgs(intArg, strArg, toWebCore(objArg));
-}
-
-WebDOMTestObj WebDOMTestObj::objMethod()
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->objMethod()));
-}
-
-WebDOMTestObj WebDOMTestObj::objMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg)
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->objMethodWithArgs(intArg, strArg, toWebCore(objArg))));
-}
-
-WebDOMTestObj WebDOMTestObj::methodThatRequiresAllArgs(const WebDOMString& strArg, const WebDOMTestObj& objArg)
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->methodThatRequiresAllArgs(strArg, toWebCore(objArg))));
-}
-
-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;
-}
-
-void WebDOMTestObj::serializedValue(const WebDOMString& serializedArg)
-{
- if (!impl())
- return;
-
- impl()->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg)));
-}
-
-void WebDOMTestObj::idbKey(const WebDOMIDBKey& key)
-{
- if (!impl())
- return;
-
- impl()->idbKey(toWebCore(key));
-}
-
-void WebDOMTestObj::optionsObject(const WebDOMOptionsObject& oo, const WebDOMOptionsObject& ooo)
-{
- if (!impl())
- return;
-
- impl()->optionsObject(toWebCore(oo), toWebCore(ooo));
-}
-
-void WebDOMTestObj::methodWithException()
-{
- if (!impl())
- return;
-
- WebCore::ExceptionCode ec = 0;
- impl()->methodWithException(ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
-}
-
-void WebDOMTestObj::addEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture)
-{
- if (!impl())
- return;
-
- impl()->addEventListener(type, toWebCore(listener), useCapture);
-}
-
-void WebDOMTestObj::removeEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture)
-{
- if (!impl())
- return;
-
- impl()->removeEventListener(type, toWebCore(listener), useCapture);
-}
-
-void WebDOMTestObj::withDynamicFrame()
-{
- if (!impl())
- return;
-
- impl()->withDynamicFrame();
-}
-
-void WebDOMTestObj::withDynamicFrameAndArg(int intArg)
-{
- if (!impl())
- return;
-
- impl()->withDynamicFrameAndArg(intArg);
-}
-
-void WebDOMTestObj::withDynamicFrameAndOptionalArg(int intArg, int optionalArg)
-{
- if (!impl())
- return;
-
- impl()->withDynamicFrameAndOptionalArg(intArg, optionalArg);
-}
-
-void WebDOMTestObj::withScriptStateVoid()
-{
- if (!impl())
- return;
-
- impl()->withScriptStateVoid();
-}
-
-WebDOMTestObj WebDOMTestObj::withScriptStateObj()
-{
- if (!impl())
- return WebDOMTestObj();
-
- return toWebKit(WTF::getPtr(impl()->withScriptStateObj()));
-}
-
-void WebDOMTestObj::withScriptStateVoidException()
-{
- if (!impl())
- return;
-
- WebCore::ExceptionCode ec = 0;
- impl()->withScriptStateVoidException(ec);
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
-}
-
-WebDOMTestObj WebDOMTestObj::withScriptStateObjException()
-{
- if (!impl())
- return WebDOMTestObj();
-
- WebCore::ExceptionCode ec = 0;
- WebDOMTestObj result = toWebKit(WTF::getPtr(impl()->withScriptStateObjException(ec)));
- webDOMRaiseError(static_cast<WebDOMExceptionCode>(ec));
- return result;
-}
-
-void WebDOMTestObj::withScriptExecutionContext()
-{
- if (!impl())
- return;
-
- impl()->withScriptExecutionContext();
-}
-
-void WebDOMTestObj::methodWithOptionalArg(int opt)
-{
- if (!impl())
- return;
-
- impl()->methodWithOptionalArg(opt);
-}
-
-void WebDOMTestObj::methodWithNonOptionalArgAndOptionalArg(int nonOpt, int opt)
-{
- if (!impl())
- return;
-
- impl()->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
-}
-
-void WebDOMTestObj::methodWithNonOptionalArgAndTwoOptionalArgs(int nonOpt, int opt1, int opt2)
-{
- if (!impl())
- return;
-
- impl()->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
-}
-
-void WebDOMTestObj::classMethod()
-{
- if (!impl())
- return;
-
- impl()->classMethod();
-}
-
-int WebDOMTestObj::classMethodWithOptional(int arg)
-{
- if (!impl())
- return 0;
-
- return impl()->classMethodWithOptional(arg);
-}
-
-WebCore::TestObj* toWebCore(const WebDOMTestObj& wrapper)
-{
- return wrapper.impl();
-}
-
-WebDOMTestObj toWebKit(WebCore::TestObj* value)
-{
- return WebDOMTestObj(value);
-}
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h b/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h
deleted file mode 100644
index abbbf2f..0000000
--- a/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h
+++ /dev/null
@@ -1,174 +0,0 @@
-/*
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- * Copyright (C) Research In Motion Limited 2010. All rights reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
-
-#ifndef WebDOMTestObj_h
-#define WebDOMTestObj_h
-
-#include <WebDOMObject.h>
-#include <WebDOMString.h>
-
-namespace WebCore {
-class TestObj;
-};
-
-class WebDOMEventListener;
-class WebDOMIDBKey;
-class WebDOMOptionsObject;
-class WebDOMString;
-class WebDOMTestObj;
-
-class WebDOMTestObj : public WebDOMObject {
-public:
- WebDOMTestObj();
- explicit WebDOMTestObj(WebCore::TestObj*);
- WebDOMTestObj(const WebDOMTestObj&);
- WebDOMTestObj& operator=(const WebDOMTestObj&);
- virtual ~WebDOMTestObj();
-
- enum {
- WEBDOM_CONST_VALUE_0 = 0,
- WEBDOM_CONST_VALUE_1 = 1,
- WEBDOM_CONST_VALUE_2 = 2,
- WEBDOM_CONST_VALUE_4 = 4,
- WEBDOM_CONST_VALUE_8 = 8,
- WEBDOM_CONST_VALUE_9 = -1,
- WEBDOM_CONST_VALUE_10 = "my constant string",
- WEBDOM_CONST_VALUE_11 = 0xffffffff,
- WEBDOM_CONST_VALUE_12 = 0x01,
- WEBDOM_CONST_VALUE_13 = 0X20,
- WEBDOM_CONST_VALUE_14 = 0x1abc
- };
-
- int readOnlyIntAttr() const;
- WebDOMString readOnlyStringAttr() const;
- WebDOMTestObj readOnlyTestObjAttr() const;
- short shortAttr() const;
- void setShortAttr(short);
- unsigned short unsignedShortAttr() const;
- void setUnsignedShortAttr(unsigned short);
- int intAttr() const;
- void setIntAttr(int);
- long long longLongAttr() const;
- void setLongLongAttr(long long);
- unsigned long long unsignedLongLongAttr() const;
- void setUnsignedLongLongAttr(unsigned long long);
- WebDOMString stringAttr() const;
- void setStringAttr(const WebDOMString&);
- WebDOMTestObj testObjAttr() const;
- void setTestObjAttr(const WebDOMTestObj&);
- WebDOMTestObj XMLObjAttr() const;
- void setXMLObjAttr(const WebDOMTestObj&);
- bool create() const;
- void setCreate(bool);
- WebDOMString reflectedStringAttr() const;
- void setReflectedStringAttr(const WebDOMString&);
- int reflectedIntegralAttr() const;
- void setReflectedIntegralAttr(int);
- unsigned reflectedUnsignedIntegralAttr() const;
- void setReflectedUnsignedIntegralAttr(unsigned);
- bool reflectedBooleanAttr() const;
- void setReflectedBooleanAttr(bool);
- WebDOMString reflectedURLAttr() const;
- void setReflectedURLAttr(const WebDOMString&);
- WebDOMString reflectedNonEmptyURLAttr() const;
- void setReflectedNonEmptyURLAttr(const WebDOMString&);
- WebDOMString reflectedStringAttr() const;
- void setReflectedStringAttr(const WebDOMString&);
- int reflectedCustomIntegralAttr() const;
- void setReflectedCustomIntegralAttr(int);
- bool reflectedCustomBooleanAttr() const;
- void setReflectedCustomBooleanAttr(bool);
- WebDOMString reflectedCustomURLAttr() const;
- void setReflectedCustomURLAttr(const WebDOMString&);
- WebDOMString reflectedCustomNonEmptyURLAttr() const;
- void setReflectedCustomNonEmptyURLAttr(const WebDOMString&);
- int attrWithGetterException() const;
- void setAttrWithGetterException(int);
- int attrWithSetterException() const;
- void setAttrWithSetterException(int);
- WebDOMString stringAttrWithGetterException() const;
- void setStringAttrWithGetterException(const WebDOMString&);
- WebDOMString stringAttrWithSetterException() const;
- void setStringAttrWithSetterException(const WebDOMString&);
- int customAttr() const;
- void setCustomAttr(int);
- WebDOMString scriptStringAttr() const;
-#if ENABLE(Condition1)
- int conditionalAttr1() const;
- void setConditionalAttr1(int);
-#endif
-#if ENABLE(Condition1) && ENABLE(Condition2)
- int conditionalAttr2() const;
- void setConditionalAttr2(int);
-#endif
-#if ENABLE(Condition1) || ENABLE(Condition2)
- int conditionalAttr3() const;
- void setConditionalAttr3(int);
-#endif
- int description() const;
- int id() const;
- void setId(int);
- WebDOMString hash() const;
-
- void voidMethod();
- void voidMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg);
- int intMethod();
- int intMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg);
- WebDOMTestObj objMethod();
- WebDOMTestObj objMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg);
- WebDOMTestObj methodThatRequiresAllArgs(const WebDOMString& strArg, const WebDOMTestObj& objArg);
- WebDOMTestObj methodThatRequiresAllArgsAndThrows(const WebDOMString& strArg, const WebDOMTestObj& objArg);
- void serializedValue(const WebDOMString& serializedArg);
- void idbKey(const WebDOMIDBKey& key);
- void optionsObject(const WebDOMOptionsObject& oo, const WebDOMOptionsObject& ooo);
- void methodWithException();
- void customMethod();
- void customMethodWithArgs(int intArg, const WebDOMString& strArg, const WebDOMTestObj& objArg);
- void addEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture);
- void removeEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture);
- void withDynamicFrame();
- void withDynamicFrameAndArg(int intArg);
- void withDynamicFrameAndOptionalArg(int intArg, int optionalArg);
- void withDynamicFrameAndUserGesture(int intArg);
- void withDynamicFrameAndUserGestureASAD(int intArg, int optionalArg);
- void withScriptStateVoid();
- WebDOMTestObj withScriptStateObj();
- void withScriptStateVoidException();
- WebDOMTestObj withScriptStateObjException();
- void withScriptExecutionContext();
- void methodWithOptionalArg(int opt);
- void methodWithNonOptionalArgAndOptionalArg(int nonOpt, int opt);
- void methodWithNonOptionalArgAndTwoOptionalArgs(int nonOpt, int opt1, int opt2);
- void classMethod();
- int classMethodWithOptional(int arg);
-
- WebCore::TestObj* impl() const;
-
-protected:
- struct WebDOMTestObjPrivate;
- WebDOMTestObjPrivate* m_impl;
-};
-
-WebCore::TestObj* toWebCore(const WebDOMTestObj&);
-WebDOMTestObj toWebKit(WebCore::TestObj*);
-
-#endif
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp
deleted file mode 100644
index 9c8fa59..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.cpp
+++ /dev/null
@@ -1,206 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <glib-object.h>
-#include "config.h"
-
-#if ENABLE(DATABASE)
-
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-#include "DOMObjectCache.h"
-#include "ExceptionCode.h"
-#include "JSMainThreadExecState.h"
-#include "TestCallback.h"
-#include "WebKitDOMBinding.h"
-#include "gobject/ConvertToUTF8String.h"
-#include "webkit/WebKitDOMClass1.h"
-#include "webkit/WebKitDOMClass1Private.h"
-#include "webkit/WebKitDOMClass2.h"
-#include "webkit/WebKitDOMClass2Private.h"
-#include "webkit/WebKitDOMClass3.h"
-#include "webkit/WebKitDOMClass3Private.h"
-#include "webkit/WebKitDOMTestCallback.h"
-#include "webkit/WebKitDOMTestCallbackPrivate.h"
-#include "webkitmarshal.h"
-#include "webkitprivate.h"
-
-namespace WebKit {
-
-WebKitDOMTestCallback* kit(WebCore::TestCallback* obj)
-{
- g_return_val_if_fail(obj, 0);
-
- if (gpointer ret = DOMObjectCache::get(obj))
- return static_cast<WebKitDOMTestCallback*>(ret);
-
- return static_cast<WebKitDOMTestCallback*>(DOMObjectCache::put(obj, WebKit::wrapTestCallback(obj)));
-}
-
-} // namespace WebKit //
-
-gboolean
-webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1* class1param)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestCallback * item = WebKit::core(self);
- g_return_val_if_fail(class1param, 0);
- WebCore::Class1 * converted_class1param = NULL;
- if (class1param != NULL) {
- converted_class1param = WebKit::core(class1param);
- g_return_val_if_fail(converted_class1param, 0);
- }
- gboolean res = item->callbackWithClass1Param(converted_class1param);
- return res;
-}
-
-gboolean
-webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2* class2param, const gchar* str_arg)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestCallback * item = WebKit::core(self);
- g_return_val_if_fail(class2param, 0);
- g_return_val_if_fail(str_arg, 0);
- WebCore::Class2 * converted_class2param = NULL;
- if (class2param != NULL) {
- converted_class2param = WebKit::core(class2param);
- g_return_val_if_fail(converted_class2param, 0);
- }
- WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
- gboolean res = item->callbackWithClass2Param(converted_class2param, converted_str_arg);
- return res;
-}
-
-glong
-webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallback* self, WebKitDOMClass3* class3param)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestCallback * item = WebKit::core(self);
- g_return_val_if_fail(class3param, 0);
- WebCore::Class3 * converted_class3param = NULL;
- if (class3param != NULL) {
- converted_class3param = WebKit::core(class3param);
- g_return_val_if_fail(converted_class3param, 0);
- }
- glong res = item->callbackWithNonBoolReturnType(converted_class3param);
- return res;
-}
-
-
-G_DEFINE_TYPE(WebKitDOMTestCallback, webkit_dom_test_callback, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
-
-WebCore::TestCallback* core(WebKitDOMTestCallback* request)
-{
- g_return_val_if_fail(request, 0);
-
- WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback*>(WEBKIT_DOM_OBJECT(request)->coreObject);
- g_return_val_if_fail(coreObject, 0);
-
- return coreObject;
-}
-
-} // namespace WebKit
-enum {
- PROP_0,
-};
-
-
-static void webkit_dom_test_callback_finalize(GObject* object)
-{
- WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
-
- if (dom_object->coreObject) {
- WebCore::TestCallback* coreObject = static_cast<WebCore::TestCallback *>(dom_object->coreObject);
-
- WebKit::DOMObjectCache::forget(coreObject);
- coreObject->deref();
-
- dom_object->coreObject = NULL;
- }
-
- G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->finalize(object);
-}
-
-static void webkit_dom_test_callback_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_callback_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_callback_constructed(GObject* object)
-{
-
- if (G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->constructed)
- G_OBJECT_CLASS(webkit_dom_test_callback_parent_class)->constructed(object);
-}
-
-static void webkit_dom_test_callback_class_init(WebKitDOMTestCallbackClass* requestClass)
-{
- GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
- gobjectClass->finalize = webkit_dom_test_callback_finalize;
- gobjectClass->set_property = webkit_dom_test_callback_set_property;
- gobjectClass->get_property = webkit_dom_test_callback_get_property;
- gobjectClass->constructed = webkit_dom_test_callback_constructed;
-
-
-
-}
-
-static void webkit_dom_test_callback_init(WebKitDOMTestCallback* request)
-{
-}
-
-namespace WebKit {
-WebKitDOMTestCallback* wrapTestCallback(WebCore::TestCallback* coreObject)
-{
- g_return_val_if_fail(coreObject, 0);
-
- /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
- * in a C-allocated GObject structure. See the finalize() code for the
- * matching deref().
- */
- coreObject->ref();
-
- return WEBKIT_DOM_TEST_CALLBACK(g_object_new(WEBKIT_TYPE_DOM_TEST_CALLBACK,
- "core-object", coreObject, NULL));
-}
-} // namespace WebKit
-#endif /* ENABLE(DATABASE) */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.h
deleted file mode 100644
index 4f0ac91..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WebKitDOMTestCallback_h
-#define WebKitDOMTestCallback_h
-
-#include "webkit/webkitdomdefines.h"
-#include <glib-object.h>
-#include <webkit/webkitdefines.h>
-#include "webkit/WebKitDOMObject.h"
-
-
-G_BEGIN_DECLS
-#define WEBKIT_TYPE_DOM_TEST_CALLBACK (webkit_dom_test_callback_get_type())
-#define WEBKIT_DOM_TEST_CALLBACK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_DOM_TEST_CALLBACK, WebKitDOMTestCallback))
-#define WEBKIT_DOM_TEST_CALLBACK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_DOM_TEST_CALLBACK, WebKitDOMTestCallbackClass)
-#define WEBKIT_DOM_IS_TEST_CALLBACK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_DOM_TEST_CALLBACK))
-#define WEBKIT_DOM_IS_TEST_CALLBACK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_DOM_TEST_CALLBACK))
-#define WEBKIT_DOM_TEST_CALLBACK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_DOM_TEST_CALLBACK, WebKitDOMTestCallbackClass))
-
-struct _WebKitDOMTestCallback {
- WebKitDOMObject parent_instance;
-};
-
-struct _WebKitDOMTestCallbackClass {
- WebKitDOMObjectClass parent_class;
-};
-
-WEBKIT_API GType
-webkit_dom_test_callback_get_type (void);
-
-WEBKIT_API gboolean
-webkit_dom_test_callback_callback_with_class1param(WebKitDOMTestCallback* self, WebKitDOMClass1* class1param);
-
-WEBKIT_API gboolean
-webkit_dom_test_callback_callback_with_class2param(WebKitDOMTestCallback* self, WebKitDOMClass2* class2param, const gchar* str_arg);
-
-WEBKIT_API glong
-webkit_dom_test_callback_callback_with_non_bool_return_type(WebKitDOMTestCallback* self, WebKitDOMClass3* class3param);
-
-G_END_DECLS
-
-#endif /* WebKitDOMTestCallback_h */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h
deleted file mode 100644
index 3ad6ff4..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallbackPrivate.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WEB_KIT_DOM_TEST_CALLBACK_PRIVATE_H
-#define WEB_KIT_DOM_TEST_CALLBACK_PRIVATE_H
-
-#include <glib-object.h>
-#include <webkit/WebKitDOMObject.h>
-#include "TestCallback.h"
-namespace WebKit {
- WebKitDOMTestCallback *
- wrapTestCallback(WebCore::TestCallback *coreObject);
-
- WebCore::TestCallback *
- core(WebKitDOMTestCallback *request);
-
- WebKitDOMTestCallback*
- kit(WebCore::TestCallback* node);
-
-} // namespace WebKit
-
-#endif /* WEB_KIT_DOM_TEST_CALLBACK_PRIVATE_H */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp
deleted file mode 100644
index b68340b..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.cpp
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <glib-object.h>
-#include "config.h"
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-#include "DOMObjectCache.h"
-#include "ExceptionCode.h"
-#include "JSMainThreadExecState.h"
-#include "TestInterface.h"
-#include "WebKitDOMBinding.h"
-#include "gobject/ConvertToUTF8String.h"
-#include "webkit/WebKitDOMTestInterface.h"
-#include "webkit/WebKitDOMTestInterfacePrivate.h"
-#include "webkitmarshal.h"
-#include "webkitprivate.h"
-
-namespace WebKit {
-
-WebKitDOMTestInterface* kit(WebCore::TestInterface* obj)
-{
- g_return_val_if_fail(obj, 0);
-
- if (gpointer ret = DOMObjectCache::get(obj))
- return static_cast<WebKitDOMTestInterface*>(ret);
-
- return static_cast<WebKitDOMTestInterface*>(DOMObjectCache::put(obj, WebKit::wrapTestInterface(obj)));
-}
-
-} // namespace WebKit //
-
-
-G_DEFINE_TYPE(WebKitDOMTestInterface, webkit_dom_test_interface, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
-
-WebCore::TestInterface* core(WebKitDOMTestInterface* request)
-{
- g_return_val_if_fail(request, 0);
-
- WebCore::TestInterface* coreObject = static_cast<WebCore::TestInterface*>(WEBKIT_DOM_OBJECT(request)->coreObject);
- g_return_val_if_fail(coreObject, 0);
-
- return coreObject;
-}
-
-} // namespace WebKit
-enum {
- PROP_0,
-};
-
-
-static void webkit_dom_test_interface_finalize(GObject* object)
-{
- WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
-
- if (dom_object->coreObject) {
- WebCore::TestInterface* coreObject = static_cast<WebCore::TestInterface *>(dom_object->coreObject);
-
- WebKit::DOMObjectCache::forget(coreObject);
- coreObject->deref();
-
- dom_object->coreObject = NULL;
- }
-
- G_OBJECT_CLASS(webkit_dom_test_interface_parent_class)->finalize(object);
-}
-
-static void webkit_dom_test_interface_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_interface_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_interface_constructed(GObject* object)
-{
-
- if (G_OBJECT_CLASS(webkit_dom_test_interface_parent_class)->constructed)
- G_OBJECT_CLASS(webkit_dom_test_interface_parent_class)->constructed(object);
-}
-
-static void webkit_dom_test_interface_class_init(WebKitDOMTestInterfaceClass* requestClass)
-{
- GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
- gobjectClass->finalize = webkit_dom_test_interface_finalize;
- gobjectClass->set_property = webkit_dom_test_interface_set_property;
- gobjectClass->get_property = webkit_dom_test_interface_get_property;
- gobjectClass->constructed = webkit_dom_test_interface_constructed;
-
-
-
-}
-
-static void webkit_dom_test_interface_init(WebKitDOMTestInterface* request)
-{
-}
-
-namespace WebKit {
-WebKitDOMTestInterface* wrapTestInterface(WebCore::TestInterface* coreObject)
-{
- g_return_val_if_fail(coreObject, 0);
-
- /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
- * in a C-allocated GObject structure. See the finalize() code for the
- * matching deref().
- */
- coreObject->ref();
-
- return WEBKIT_DOM_TEST_INTERFACE(g_object_new(WEBKIT_TYPE_DOM_TEST_INTERFACE,
- "core-object", coreObject, NULL));
-}
-} // namespace WebKit
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h
deleted file mode 100644
index f9af866..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WebKitDOMTestInterface_h
-#define WebKitDOMTestInterface_h
-
-#include "webkit/webkitdomdefines.h"
-#include <glib-object.h>
-#include <webkit/webkitdefines.h>
-#include "webkit/WebKitDOMObject.h"
-
-
-G_BEGIN_DECLS
-#define WEBKIT_TYPE_DOM_TEST_INTERFACE (webkit_dom_test_interface_get_type())
-#define WEBKIT_DOM_TEST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_DOM_TEST_INTERFACE, WebKitDOMTestInterface))
-#define WEBKIT_DOM_TEST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_DOM_TEST_INTERFACE, WebKitDOMTestInterfaceClass)
-#define WEBKIT_DOM_IS_TEST_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_DOM_TEST_INTERFACE))
-#define WEBKIT_DOM_IS_TEST_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_DOM_TEST_INTERFACE))
-#define WEBKIT_DOM_TEST_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_DOM_TEST_INTERFACE, WebKitDOMTestInterfaceClass))
-
-struct _WebKitDOMTestInterface {
- WebKitDOMObject parent_instance;
-};
-
-struct _WebKitDOMTestInterfaceClass {
- WebKitDOMObjectClass parent_class;
-};
-
-WEBKIT_API GType
-webkit_dom_test_interface_get_type (void);
-
-G_END_DECLS
-
-#endif /* WebKitDOMTestInterface_h */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h
deleted file mode 100644
index 0a4e3a2..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterfacePrivate.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WEB_KIT_DOM_TEST_INTERFACE_PRIVATE_H
-#define WEB_KIT_DOM_TEST_INTERFACE_PRIVATE_H
-
-#include <glib-object.h>
-#include <webkit/WebKitDOMObject.h>
-#include "TestInterface.h"
-namespace WebKit {
- WebKitDOMTestInterface *
- wrapTestInterface(WebCore::TestInterface *coreObject);
-
- WebCore::TestInterface *
- core(WebKitDOMTestInterface *request);
-
- WebKitDOMTestInterface*
- kit(WebCore::TestInterface* node);
-
-} // namespace WebKit
-
-#endif /* WEB_KIT_DOM_TEST_INTERFACE_PRIVATE_H */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp
deleted file mode 100644
index 93d0bde..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp
+++ /dev/null
@@ -1,147 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <glib-object.h>
-#include "config.h"
-
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-#include "DOMObjectCache.h"
-#include "ExceptionCode.h"
-#include "JSMainThreadExecState.h"
-#include "TestMediaQueryListListener.h"
-#include "WebKitDOMBinding.h"
-#include "gobject/ConvertToUTF8String.h"
-#include "webkit/WebKitDOMTestMediaQueryListListener.h"
-#include "webkit/WebKitDOMTestMediaQueryListListenerPrivate.h"
-#include "webkitmarshal.h"
-#include "webkitprivate.h"
-
-namespace WebKit {
-
-WebKitDOMTestMediaQueryListListener* kit(WebCore::TestMediaQueryListListener* obj)
-{
- g_return_val_if_fail(obj, 0);
-
- if (gpointer ret = DOMObjectCache::get(obj))
- return static_cast<WebKitDOMTestMediaQueryListListener*>(ret);
-
- return static_cast<WebKitDOMTestMediaQueryListListener*>(DOMObjectCache::put(obj, WebKit::wrapTestMediaQueryListListener(obj)));
-}
-
-} // namespace WebKit //
-
-
-G_DEFINE_TYPE(WebKitDOMTestMediaQueryListListener, webkit_dom_test_media_query_list_listener, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
-
-WebCore::TestMediaQueryListListener* core(WebKitDOMTestMediaQueryListListener* request)
-{
- g_return_val_if_fail(request, 0);
-
- WebCore::TestMediaQueryListListener* coreObject = static_cast<WebCore::TestMediaQueryListListener*>(WEBKIT_DOM_OBJECT(request)->coreObject);
- g_return_val_if_fail(coreObject, 0);
-
- return coreObject;
-}
-
-} // namespace WebKit
-enum {
- PROP_0,
-};
-
-
-static void webkit_dom_test_media_query_list_listener_finalize(GObject* object)
-{
- WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
-
- if (dom_object->coreObject) {
- WebCore::TestMediaQueryListListener* coreObject = static_cast<WebCore::TestMediaQueryListListener *>(dom_object->coreObject);
-
- WebKit::DOMObjectCache::forget(coreObject);
- coreObject->deref();
-
- dom_object->coreObject = NULL;
- }
-
- G_OBJECT_CLASS(webkit_dom_test_media_query_list_listener_parent_class)->finalize(object);
-}
-
-static void webkit_dom_test_media_query_list_listener_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_media_query_list_listener_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- switch (prop_id) {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_media_query_list_listener_constructed(GObject* object)
-{
-
- if (G_OBJECT_CLASS(webkit_dom_test_media_query_list_listener_parent_class)->constructed)
- G_OBJECT_CLASS(webkit_dom_test_media_query_list_listener_parent_class)->constructed(object);
-}
-
-static void webkit_dom_test_media_query_list_listener_class_init(WebKitDOMTestMediaQueryListListenerClass* requestClass)
-{
- GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
- gobjectClass->finalize = webkit_dom_test_media_query_list_listener_finalize;
- gobjectClass->set_property = webkit_dom_test_media_query_list_listener_set_property;
- gobjectClass->get_property = webkit_dom_test_media_query_list_listener_get_property;
- gobjectClass->constructed = webkit_dom_test_media_query_list_listener_constructed;
-
-
-
-}
-
-static void webkit_dom_test_media_query_list_listener_init(WebKitDOMTestMediaQueryListListener* request)
-{
-}
-
-namespace WebKit {
-WebKitDOMTestMediaQueryListListener* wrapTestMediaQueryListListener(WebCore::TestMediaQueryListListener* coreObject)
-{
- g_return_val_if_fail(coreObject, 0);
-
- /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
- * in a C-allocated GObject structure. See the finalize() code for the
- * matching deref().
- */
- coreObject->ref();
-
- return WEBKIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER(g_object_new(WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER,
- "core-object", coreObject, NULL));
-}
-} // namespace WebKit
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h
deleted file mode 100644
index 612439b..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WebKitDOMTestMediaQueryListListener_h
-#define WebKitDOMTestMediaQueryListListener_h
-
-#include "webkit/webkitdomdefines.h"
-#include <glib-object.h>
-#include <webkit/webkitdefines.h>
-#include "webkit/WebKitDOMObject.h"
-
-
-G_BEGIN_DECLS
-#define WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER (webkit_dom_test_media_query_list_listener_get_type())
-#define WEBKIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER, WebKitDOMTestMediaQueryListListener))
-#define WEBKIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER, WebKitDOMTestMediaQueryListListenerClass)
-#define WEBKIT_DOM_IS_TEST_MEDIA_QUERY_LIST_LISTENER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER))
-#define WEBKIT_DOM_IS_TEST_MEDIA_QUERY_LIST_LISTENER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER))
-#define WEBKIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_DOM_TEST_MEDIA_QUERY_LIST_LISTENER, WebKitDOMTestMediaQueryListListenerClass))
-
-struct _WebKitDOMTestMediaQueryListListener {
- WebKitDOMObject parent_instance;
-};
-
-struct _WebKitDOMTestMediaQueryListListenerClass {
- WebKitDOMObjectClass parent_class;
-};
-
-WEBKIT_API GType
-webkit_dom_test_media_query_list_listener_get_type (void);
-
-G_END_DECLS
-
-#endif /* WebKitDOMTestMediaQueryListListener_h */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h
deleted file mode 100644
index 5fc652f..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WEB_KIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER_PRIVATE_H
-#define WEB_KIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER_PRIVATE_H
-
-#include <glib-object.h>
-#include <webkit/WebKitDOMObject.h>
-#include "TestMediaQueryListListener.h"
-namespace WebKit {
- WebKitDOMTestMediaQueryListListener *
- wrapTestMediaQueryListListener(WebCore::TestMediaQueryListListener *coreObject);
-
- WebCore::TestMediaQueryListListener *
- core(WebKitDOMTestMediaQueryListListener *request);
-
- WebKitDOMTestMediaQueryListListener*
- kit(WebCore::TestMediaQueryListListener* node);
-
-} // namespace WebKit
-
-#endif /* WEB_KIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER_PRIVATE_H */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
deleted file mode 100644
index 6c94d94..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp
+++ /dev/null
@@ -1,1812 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include <glib-object.h>
-#include "config.h"
-
-#include <wtf/GetPtr.h>
-#include <wtf/RefPtr.h>
-#include "DOMObjectCache.h"
-#include "ExceptionCode.h"
-#include "HTMLNames.h"
-#include "JSMainThreadExecState.h"
-#include "TestObj.h"
-#include "WebKitDOMBinding.h"
-#include "gobject/ConvertToUTF8String.h"
-#include "webkit/WebKitDOMIDBKey.h"
-#include "webkit/WebKitDOMIDBKeyPrivate.h"
-#include "webkit/WebKitDOMOptionsObject.h"
-#include "webkit/WebKitDOMOptionsObjectPrivate.h"
-#include "webkit/WebKitDOMSerializedScriptValue.h"
-#include "webkit/WebKitDOMSerializedScriptValuePrivate.h"
-#include "webkit/WebKitDOMTestObj.h"
-#include "webkit/WebKitDOMTestObjPrivate.h"
-#include "webkitmarshal.h"
-#include "webkitprivate.h"
-
-namespace WebKit {
-
-WebKitDOMTestObj* kit(WebCore::TestObj* obj)
-{
- g_return_val_if_fail(obj, 0);
-
- if (gpointer ret = DOMObjectCache::get(obj))
- return static_cast<WebKitDOMTestObj*>(ret);
-
- return static_cast<WebKitDOMTestObj*>(DOMObjectCache::put(obj, WebKit::wrapTestObj(obj)));
-}
-
-} // namespace WebKit //
-
-void
-webkit_dom_test_obj_void_method(WebKitDOMTestObj* self)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->voidMethod();
-}
-
-void
-webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(str_arg);
- g_return_if_fail(obj_arg);
- WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
- WebCore::TestObj * converted_obj_arg = NULL;
- if (obj_arg != NULL) {
- converted_obj_arg = WebKit::core(obj_arg);
- g_return_if_fail(converted_obj_arg);
- }
- item->voidMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg);
-}
-
-glong
-webkit_dom_test_obj_int_method(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->intMethod();
- return res;
-}
-
-glong
-webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_val_if_fail(str_arg, 0);
- g_return_val_if_fail(obj_arg, 0);
- WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
- WebCore::TestObj * converted_obj_arg = NULL;
- if (obj_arg != NULL) {
- converted_obj_arg = WebKit::core(obj_arg);
- g_return_val_if_fail(converted_obj_arg, 0);
- }
- glong res = item->intMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg);
- return res;
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethod());
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_val_if_fail(str_arg, 0);
- g_return_val_if_fail(obj_arg, 0);
- WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
- WebCore::TestObj * converted_obj_arg = NULL;
- if (obj_arg != NULL) {
- converted_obj_arg = WebKit::core(obj_arg);
- g_return_val_if_fail(converted_obj_arg, 0);
- }
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->objMethodWithArgs(int_arg, converted_str_arg, converted_obj_arg));
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_method_that_requires_all_args(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_val_if_fail(str_arg, 0);
- g_return_val_if_fail(obj_arg, 0);
- WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
- WebCore::TestObj * converted_obj_arg = NULL;
- if (obj_arg != NULL) {
- converted_obj_arg = WebKit::core(obj_arg);
- g_return_val_if_fail(converted_obj_arg, 0);
- }
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->methodThatRequiresAllArgs(converted_str_arg, converted_obj_arg));
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_val_if_fail(str_arg, 0);
- g_return_val_if_fail(obj_arg, 0);
- WTF::String converted_str_arg = WTF::String::fromUTF8(str_arg);
- WebCore::TestObj * converted_obj_arg = NULL;
- if (obj_arg != NULL) {
- converted_obj_arg = WebKit::core(obj_arg);
- g_return_val_if_fail(converted_obj_arg, 0);
- }
- WebCore::ExceptionCode ec = 0;
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->methodThatRequiresAllArgsAndThrows(converted_str_arg, converted_obj_arg, ec));
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-void
-webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue* serialized_arg)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(serialized_arg);
- WebCore::SerializedScriptValue * converted_serialized_arg = NULL;
- if (serialized_arg != NULL) {
- converted_serialized_arg = WebKit::core(serialized_arg);
- g_return_if_fail(converted_serialized_arg);
- }
- item->serializedValue(converted_serialized_arg);
-}
-
-void
-webkit_dom_test_obj_idb_key(WebKitDOMTestObj* self, WebKitDOMIDBKey* key)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(key);
- WebCore::IDBKey * converted_key = NULL;
- if (key != NULL) {
- converted_key = WebKit::core(key);
- g_return_if_fail(converted_key);
- }
- item->idbKey(converted_key);
-}
-
-void
-webkit_dom_test_obj_options_object(WebKitDOMTestObj* self, WebKitDOMOptionsObject* oo, WebKitDOMOptionsObject* ooo)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(oo);
- g_return_if_fail(ooo);
- WebCore::OptionsObject * converted_oo = NULL;
- if (oo != NULL) {
- converted_oo = WebKit::core(oo);
- g_return_if_fail(converted_oo);
- }
- WebCore::OptionsObject * converted_ooo = NULL;
- if (ooo != NULL) {
- converted_ooo = WebKit::core(ooo);
- g_return_if_fail(converted_ooo);
- }
- item->optionsObject(converted_oo, converted_ooo);
-}
-
-void
-webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError **error)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- item->methodWithException(ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
-}
-
-
-/* TODO: event function webkit_dom_test_obj_add_event_listener */
-
-
-/* TODO: event function webkit_dom_test_obj_remove_event_listener */
-
-void
-webkit_dom_test_obj_with_dynamic_frame(WebKitDOMTestObj* self)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withDynamicFrame();
-}
-
-void
-webkit_dom_test_obj_with_dynamic_frame_and_arg(WebKitDOMTestObj* self, glong int_arg)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withDynamicFrameAndArg(int_arg);
-}
-
-void
-webkit_dom_test_obj_with_dynamic_frame_and_optional_arg(WebKitDOMTestObj* self, glong int_arg, glong optional_arg)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withDynamicFrameAndOptionalArg(int_arg, optional_arg);
-}
-
-void
-webkit_dom_test_obj_with_dynamic_frame_and_user_gesture(WebKitDOMTestObj* self, glong int_arg, gboolean isUserGesture)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withDynamicFrameAndUserGesture(int_arg, false);
-}
-
-void
-webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad(WebKitDOMTestObj* self, glong int_arg, glong optional_arg, gboolean isUserGesture)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withDynamicFrameAndUserGestureASAD(int_arg, optional_arg, false);
-}
-
-void
-webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withScriptStateVoid();
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObj());
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-void
-webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError **error)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- item->withScriptStateVoidException(ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError **error)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->withScriptStateObjException(ec));
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-void
-webkit_dom_test_obj_with_script_execution_context(WebKitDOMTestObj* self)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->withScriptExecutionContext();
-}
-
-void
-webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->methodWithOptionalArg(opt);
-}
-
-void
-webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong non_opt, glong opt)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->methodWithNonOptionalArgAndOptionalArg(non_opt, opt);
-}
-
-void
-webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong non_opt, glong opt1, glong opt2)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->methodWithNonOptionalArgAndTwoOptionalArgs(non_opt, opt1, opt2);
-}
-
-void
-webkit_dom_test_obj_class_method(WebKitDOMTestObj* self)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->classMethod();
-}
-
-glong
-webkit_dom_test_obj_class_method_with_optional(WebKitDOMTestObj* self, glong arg)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->classMethodWithOptional(arg);
- return res;
-}
-
-glong
-webkit_dom_test_obj_get_read_only_int_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->readOnlyIntAttr();
- return res;
-}
-
-gchar*
-webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->readOnlyStringAttr());
- return res;
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->readOnlyTestObjAttr());
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-gshort
-webkit_dom_test_obj_get_short_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gshort res = item->shortAttr();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_short_attr(WebKitDOMTestObj* self, gshort value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setShortAttr(value);
-}
-
-gushort
-webkit_dom_test_obj_get_unsigned_short_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gushort res = item->unsignedShortAttr();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_unsigned_short_attr(WebKitDOMTestObj* self, gushort value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setUnsignedShortAttr(value);
-}
-
-glong
-webkit_dom_test_obj_get_int_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->intAttr();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_int_attr(WebKitDOMTestObj* self, glong value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setIntAttr(value);
-}
-
-gint64
-webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gint64 res = item->longLongAttr();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setLongLongAttr(value);
-}
-
-guint64
-webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- guint64 res = item->unsignedLongLongAttr();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setUnsignedLongLongAttr(value);
-}
-
-gchar*
-webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->stringAttr());
- return res;
-}
-
-void
-webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setStringAttr(converted_value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->testObjAttr());
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-void
-webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WebCore::TestObj * converted_value = NULL;
- if (value != NULL) {
- converted_value = WebKit::core(value);
- g_return_if_fail(converted_value);
- }
- item->setTestObjAttr(converted_value);
-}
-
-WebKitDOMTestObj*
-webkit_dom_test_obj_get_xml_obj_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- PassRefPtr<WebCore::TestObj> g_res = WTF::getPtr(item->xmlObjAttr());
- WebKitDOMTestObj* res = WebKit::kit(g_res.get());
- return res;
-}
-
-void
-webkit_dom_test_obj_set_xml_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WebCore::TestObj * converted_value = NULL;
- if (value != NULL) {
- converted_value = WebKit::core(value);
- g_return_if_fail(converted_value);
- }
- item->setXMLObjAttr(converted_value);
-}
-
-gboolean
-webkit_dom_test_obj_get_create(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gboolean res = item->isCreate();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_create(WebKitDOMTestObj* self, gboolean value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setCreate(value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_reflected_integral_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_integral_attr(WebKitDOMTestObj* self, glong value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, value);
-}
-
-gulong
-webkit_dom_test_obj_get_reflected_unsigned_integral_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gulong res = item->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_unsigned_integral_attr(WebKitDOMTestObj* self, gulong value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, value);
-}
-
-gboolean
-webkit_dom_test_obj_get_reflected_boolean_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gboolean res = item->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_boolean_attr(WebKitDOMTestObj* self, gboolean value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_url_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_url_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, converted_value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_non_empty_url_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_non_empty_url_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, converted_value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_reflected_custom_integral_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_integral_attr(WebKitDOMTestObj* self, glong value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, value);
-}
-
-gboolean
-webkit_dom_test_obj_get_reflected_custom_boolean_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gboolean res = item->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_boolean_attr(WebKitDOMTestObj* self, gboolean value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_custom_url_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_url_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, converted_value);
-}
-
-gchar*
-webkit_dom_test_obj_get_reflected_custom_non_empty_url_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_reflected_custom_non_empty_url_attr(WebKitDOMTestObj* self, const gchar* value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- item->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, converted_value);
-}
-
-glong
-webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- glong res = item->attrWithGetterException(ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
- return res;
-}
-
-void
-webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value, GError **error)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- item->setAttrWithGetterException(value, ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
-}
-
-glong
-webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->attrWithSetterException();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError **error)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- item->setAttrWithSetterException(value, ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
-}
-
-gchar*
-webkit_dom_test_obj_get_string_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- WebCore::ExceptionCode ec = 0;
- gchar* res = convertToUTF8String(item->stringAttrWithGetterException(ec));
- return res;
-}
-
-void
-webkit_dom_test_obj_set_string_attr_with_getter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- WebCore::ExceptionCode ec = 0;
- item->setStringAttrWithGetterException(converted_value, ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
-}
-
-gchar*
-webkit_dom_test_obj_get_string_attr_with_setter_exception(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->stringAttrWithSetterException());
- return res;
-}
-
-void
-webkit_dom_test_obj_set_string_attr_with_setter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- g_return_if_fail(value);
- WTF::String converted_value = WTF::String::fromUTF8(value);
- WebCore::ExceptionCode ec = 0;
- item->setStringAttrWithSetterException(converted_value, ec);
- if (ec) {
- WebCore::ExceptionCodeDescription ecdesc;
- WebCore::getExceptionCodeDescription(ec, ecdesc);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
- }
-}
-
-gchar*
-webkit_dom_test_obj_get_script_string_attr(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->scriptStringAttr());
- return res;
-}
-
-glong
-webkit_dom_test_obj_get_conditional_attr1(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1)
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->conditionalAttr1();
- return res;
-#else
- return static_cast<glong>(0);
-#endif /* ENABLE(Condition1) */
-}
-
-void
-webkit_dom_test_obj_set_conditional_attr1(WebKitDOMTestObj* self, glong value)
-{
-#if ENABLE(Condition1)
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setConditionalAttr1(value);
-#endif /* ENABLE(Condition1) */
-}
-
-glong
-webkit_dom_test_obj_get_conditional_attr2(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1) && ENABLE(Condition2)
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->conditionalAttr2();
- return res;
-#else
- return static_cast<glong>(0);
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-}
-
-void
-webkit_dom_test_obj_set_conditional_attr2(WebKitDOMTestObj* self, glong value)
-{
-#if ENABLE(Condition1) && ENABLE(Condition2)
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setConditionalAttr2(value);
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-}
-
-glong
-webkit_dom_test_obj_get_conditional_attr3(WebKitDOMTestObj* self)
-{
-#if ENABLE(Condition1) || ENABLE(Condition2)
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->conditionalAttr3();
- return res;
-#else
- return static_cast<glong>(0);
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-}
-
-void
-webkit_dom_test_obj_set_conditional_attr3(WebKitDOMTestObj* self, glong value)
-{
-#if ENABLE(Condition1) || ENABLE(Condition2)
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setConditionalAttr3(value);
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
-}
-
-glong
-webkit_dom_test_obj_get_description(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->description();
- return res;
-}
-
-glong
-webkit_dom_test_obj_get_id(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- glong res = item->id();
- return res;
-}
-
-void
-webkit_dom_test_obj_set_id(WebKitDOMTestObj* self, glong value)
-{
- g_return_if_fail(self);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- item->setId(value);
-}
-
-gchar*
-webkit_dom_test_obj_get_hash(WebKitDOMTestObj* self)
-{
- g_return_val_if_fail(self, 0);
- WebCore::JSMainThreadNullState state;
- WebCore::TestObj * item = WebKit::core(self);
- gchar* res = convertToUTF8String(item->hash());
- return res;
-}
-
-
-G_DEFINE_TYPE(WebKitDOMTestObj, webkit_dom_test_obj, WEBKIT_TYPE_DOM_OBJECT)
-
-namespace WebKit {
-
-WebCore::TestObj* core(WebKitDOMTestObj* request)
-{
- g_return_val_if_fail(request, 0);
-
- WebCore::TestObj* coreObject = static_cast<WebCore::TestObj*>(WEBKIT_DOM_OBJECT(request)->coreObject);
- g_return_val_if_fail(coreObject, 0);
-
- return coreObject;
-}
-
-} // namespace WebKit
-enum {
- PROP_0,
- PROP_READ_ONLY_INT_ATTR,
- PROP_READ_ONLY_STRING_ATTR,
- PROP_READ_ONLY_TEST_OBJ_ATTR,
- PROP_SHORT_ATTR,
- PROP_UNSIGNED_SHORT_ATTR,
- PROP_INT_ATTR,
- PROP_LONG_LONG_ATTR,
- PROP_UNSIGNED_LONG_LONG_ATTR,
- PROP_STRING_ATTR,
- PROP_TEST_OBJ_ATTR,
- PROP_XML_OBJ_ATTR,
- PROP_CREATE,
- PROP_REFLECTED_STRING_ATTR,
- PROP_REFLECTED_INTEGRAL_ATTR,
- PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR,
- PROP_REFLECTED_BOOLEAN_ATTR,
- PROP_REFLECTED_URL_ATTR,
- PROP_REFLECTED_NON_EMPTY_URL_ATTR,
- PROP_REFLECTED_STRING_ATTR,
- PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR,
- PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR,
- PROP_REFLECTED_CUSTOM_URL_ATTR,
- PROP_REFLECTED_CUSTOM_NON_EMPTY_URL_ATTR,
- PROP_ATTR_WITH_GETTER_EXCEPTION,
- PROP_ATTR_WITH_SETTER_EXCEPTION,
- PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
- PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
- PROP_CUSTOM_ATTR,
- PROP_SCRIPT_STRING_ATTR,
-#if ENABLE(Condition1)
- PROP_CONDITIONAL_ATTR1,
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
- PROP_CONDITIONAL_ATTR2,
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
- PROP_CONDITIONAL_ATTR3,
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
- PROP_DESCRIPTION,
- PROP_ID,
- PROP_HASH,
-};
-
-
-static void webkit_dom_test_obj_finalize(GObject* object)
-{
- WebKitDOMObject* dom_object = WEBKIT_DOM_OBJECT(object);
-
- if (dom_object->coreObject) {
- WebCore::TestObj* coreObject = static_cast<WebCore::TestObj *>(dom_object->coreObject);
-
- WebKit::DOMObjectCache::forget(coreObject);
- coreObject->deref();
-
- dom_object->coreObject = NULL;
- }
-
- G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->finalize(object);
-}
-
-static void webkit_dom_test_obj_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
- WebCore::TestObj* coreSelf = WebKit::core(self);
- switch (prop_id) {
- case PROP_UNSIGNED_SHORT_ATTR:
- {
- coreSelf->setUnsignedShortAttr((g_value_get_ushort(value)));
- break;
- }
- case PROP_INT_ATTR:
- {
- coreSelf->setIntAttr((g_value_get_long(value)));
- break;
- }
- case PROP_UNSIGNED_LONG_LONG_ATTR:
- {
- coreSelf->setUnsignedLongLongAttr((g_value_get_uint64(value)));
- break;
- }
- case PROP_STRING_ATTR:
- {
- coreSelf->setStringAttr(WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_CREATE:
- {
- coreSelf->setCreate((g_value_get_boolean(value)));
- break;
- }
- case PROP_REFLECTED_STRING_ATTR:
- {
- coreSelf->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_REFLECTED_INTEGRAL_ATTR:
- {
- coreSelf->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, (g_value_get_long(value)));
- break;
- }
- case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
- {
- coreSelf->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, (g_value_get_ulong(value)));
- break;
- }
- case PROP_REFLECTED_BOOLEAN_ATTR:
- {
- coreSelf->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, (g_value_get_boolean(value)));
- break;
- }
- case PROP_REFLECTED_URL_ATTR:
- {
- coreSelf->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_REFLECTED_NON_EMPTY_URL_ATTR:
- {
- coreSelf->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_REFLECTED_STRING_ATTR:
- {
- coreSelf->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
- {
- coreSelf->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, (g_value_get_long(value)));
- break;
- }
- case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
- {
- coreSelf->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, (g_value_get_boolean(value)));
- break;
- }
- case PROP_REFLECTED_CUSTOM_URL_ATTR:
- {
- coreSelf->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_REFLECTED_CUSTOM_NON_EMPTY_URL_ATTR:
- {
- coreSelf->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, WTF::String::fromUTF8(g_value_get_string(value)));
- break;
- }
- case PROP_ATTR_WITH_GETTER_EXCEPTION:
- {
- WebCore::ExceptionCode ec = 0;
- coreSelf->setAttrWithGetterException((g_value_get_long(value)), ec);
- break;
- }
- case PROP_ATTR_WITH_SETTER_EXCEPTION:
- {
- WebCore::ExceptionCode ec = 0;
- coreSelf->setAttrWithSetterException((g_value_get_long(value)), ec);
- break;
- }
- case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
- {
- WebCore::ExceptionCode ec = 0;
- coreSelf->setStringAttrWithGetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec);
- break;
- }
- case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
- {
- WebCore::ExceptionCode ec = 0;
- coreSelf->setStringAttrWithSetterException(WTF::String::fromUTF8(g_value_get_string(value)), ec);
- break;
- }
-#if ENABLE(Condition1)
- case PROP_CONDITIONAL_ATTR1:
- {
- coreSelf->setConditionalAttr1((g_value_get_long(value)));
- break;
- }
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
- case PROP_CONDITIONAL_ATTR2:
- {
- coreSelf->setConditionalAttr2((g_value_get_long(value)));
- break;
- }
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
- case PROP_CONDITIONAL_ATTR3:
- {
- coreSelf->setConditionalAttr3((g_value_get_long(value)));
- break;
- }
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
- case PROP_ID:
- {
- coreSelf->setId((g_value_get_long(value)));
- break;
- }
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_obj_get_property(GObject* object, guint prop_id, GValue* value, GParamSpec* pspec)
-{
- WebCore::JSMainThreadNullState state;
- WebKitDOMTestObj* self = WEBKIT_DOM_TEST_OBJ(object);
- WebCore::TestObj* coreSelf = WebKit::core(self);
- switch (prop_id) {
- case PROP_READ_ONLY_INT_ATTR:
- {
- g_value_set_long(value, coreSelf->readOnlyIntAttr());
- break;
- }
- case PROP_READ_ONLY_STRING_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->readOnlyStringAttr()));
- break;
- }
- case PROP_READ_ONLY_TEST_OBJ_ATTR:
- {
- RefPtr<WebCore::TestObj> ptr = coreSelf->readOnlyTestObjAttr();
- g_value_set_object(value, WebKit::kit(ptr.get()));
- break;
- }
- case PROP_SHORT_ATTR:
- {
- g_value_set_int(value, coreSelf->shortAttr());
- break;
- }
- case PROP_UNSIGNED_SHORT_ATTR:
- {
- g_value_set_uint(value, coreSelf->unsignedShortAttr());
- break;
- }
- case PROP_INT_ATTR:
- {
- g_value_set_long(value, coreSelf->intAttr());
- break;
- }
- case PROP_LONG_LONG_ATTR:
- {
- g_value_set_int64(value, coreSelf->longLongAttr());
- break;
- }
- case PROP_UNSIGNED_LONG_LONG_ATTR:
- {
- g_value_set_uint64(value, coreSelf->unsignedLongLongAttr());
- break;
- }
- case PROP_STRING_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->stringAttr()));
- break;
- }
- case PROP_TEST_OBJ_ATTR:
- {
- RefPtr<WebCore::TestObj> ptr = coreSelf->testObjAttr();
- g_value_set_object(value, WebKit::kit(ptr.get()));
- break;
- }
- case PROP_XML_OBJ_ATTR:
- {
- RefPtr<WebCore::TestObj> ptr = coreSelf->xmlObjAttr();
- g_value_set_object(value, WebKit::kit(ptr.get()));
- break;
- }
- case PROP_CREATE:
- {
- g_value_set_boolean(value, coreSelf->isCreate());
- break;
- }
- case PROP_REFLECTED_STRING_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr)));
- break;
- }
- case PROP_REFLECTED_INTEGRAL_ATTR:
- {
- g_value_set_long(value, coreSelf->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
- break;
- }
- case PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR:
- {
- g_value_set_ulong(value, coreSelf->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr));
- break;
- }
- case PROP_REFLECTED_BOOLEAN_ATTR:
- {
- g_value_set_boolean(value, coreSelf->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr));
- break;
- }
- case PROP_REFLECTED_URL_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr)));
- break;
- }
- case PROP_REFLECTED_NON_EMPTY_URL_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr)));
- break;
- }
- case PROP_REFLECTED_STRING_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr)));
- break;
- }
- case PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR:
- {
- g_value_set_long(value, coreSelf->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
- break;
- }
- case PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR:
- {
- g_value_set_boolean(value, coreSelf->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr));
- break;
- }
- case PROP_REFLECTED_CUSTOM_URL_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr)));
- break;
- }
- case PROP_REFLECTED_CUSTOM_NON_EMPTY_URL_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr)));
- break;
- }
- case PROP_ATTR_WITH_GETTER_EXCEPTION:
- {
- WebCore::ExceptionCode ec = 0;
- g_value_set_long(value, coreSelf->attrWithGetterException(ec));
- break;
- }
- case PROP_ATTR_WITH_SETTER_EXCEPTION:
- {
- g_value_set_long(value, coreSelf->attrWithSetterException());
- break;
- }
- case PROP_STRING_ATTR_WITH_GETTER_EXCEPTION:
- {
- WebCore::ExceptionCode ec = 0;
- g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithGetterException(ec)));
- break;
- }
- case PROP_STRING_ATTR_WITH_SETTER_EXCEPTION:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->stringAttrWithSetterException()));
- break;
- }
- case PROP_SCRIPT_STRING_ATTR:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->scriptStringAttr()));
- break;
- }
-#if ENABLE(Condition1)
- case PROP_CONDITIONAL_ATTR1:
- {
- g_value_set_long(value, coreSelf->conditionalAttr1());
- break;
- }
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
- case PROP_CONDITIONAL_ATTR2:
- {
- g_value_set_long(value, coreSelf->conditionalAttr2());
- break;
- }
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
- case PROP_CONDITIONAL_ATTR3:
- {
- g_value_set_long(value, coreSelf->conditionalAttr3());
- break;
- }
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
- case PROP_DESCRIPTION:
- {
- g_value_set_long(value, coreSelf->description());
- break;
- }
- case PROP_ID:
- {
- g_value_set_long(value, coreSelf->id());
- break;
- }
- case PROP_HASH:
- {
- g_value_take_string(value, convertToUTF8String(coreSelf->hash()));
- break;
- }
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
- break;
- }
-}
-
-
-static void webkit_dom_test_obj_constructed(GObject* object)
-{
-
- if (G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructed)
- G_OBJECT_CLASS(webkit_dom_test_obj_parent_class)->constructed(object);
-}
-
-static void webkit_dom_test_obj_class_init(WebKitDOMTestObjClass* requestClass)
-{
- GObjectClass *gobjectClass = G_OBJECT_CLASS(requestClass);
- gobjectClass->finalize = webkit_dom_test_obj_finalize;
- gobjectClass->set_property = webkit_dom_test_obj_set_property;
- gobjectClass->get_property = webkit_dom_test_obj_get_property;
- gobjectClass->constructed = webkit_dom_test_obj_constructed;
-
- g_object_class_install_property(gobjectClass,
- PROP_READ_ONLY_INT_ATTR,
- g_param_spec_long("read-only-int-attr", /* name */
- "test_obj_read-only-int-attr", /* short description */
- "read-only glong TestObj.read-only-int-attr", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READABLE));
- g_object_class_install_property(gobjectClass,
- PROP_READ_ONLY_STRING_ATTR,
- g_param_spec_string("read-only-string-attr", /* name */
- "test_obj_read-only-string-attr", /* short description */
- "read-only gchar* TestObj.read-only-string-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READABLE));
- g_object_class_install_property(gobjectClass,
- PROP_READ_ONLY_TEST_OBJ_ATTR,
- g_param_spec_object("read-only-test-obj-attr", /* name */
- "test_obj_read-only-test-obj-attr", /* short description */
- "read-only WebKitDOMTestObj* TestObj.read-only-test-obj-attr", /* longer - could do with some extra doc stuff here */
- WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
- WEBKIT_PARAM_READABLE));
- g_object_class_install_property(gobjectClass,
- PROP_SHORT_ATTR,
- g_param_spec_int("short-attr", /* name */
- "test_obj_short-attr", /* short description */
- "read-write gshort TestObj.short-attr", /* longer - could do with some extra doc stuff here */
- G_MININT, /* min */
-G_MAXINT, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_UNSIGNED_SHORT_ATTR,
- g_param_spec_uint("unsigned-short-attr", /* name */
- "test_obj_unsigned-short-attr", /* short description */
- "read-write gushort TestObj.unsigned-short-attr", /* longer - could do with some extra doc stuff here */
- 0, /* min */
-G_MAXUINT16, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_INT_ATTR,
- g_param_spec_long("int-attr", /* name */
- "test_obj_int-attr", /* short description */
- "read-write glong TestObj.int-attr", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_LONG_LONG_ATTR,
- g_param_spec_int64("long-long-attr", /* name */
- "test_obj_long-long-attr", /* short description */
- "read-write gint64 TestObj.long-long-attr", /* longer - could do with some extra doc stuff here */
- G_MININT64, /* min */
-G_MAXINT64, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_UNSIGNED_LONG_LONG_ATTR,
- g_param_spec_uint64("unsigned-long-long-attr", /* name */
- "test_obj_unsigned-long-long-attr", /* short description */
- "read-write guint64 TestObj.unsigned-long-long-attr", /* longer - could do with some extra doc stuff here */
- 0, /* min */
-G_MAXUINT64, /* min */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_STRING_ATTR,
- g_param_spec_string("string-attr", /* name */
- "test_obj_string-attr", /* short description */
- "read-write gchar* TestObj.string-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_TEST_OBJ_ATTR,
- g_param_spec_object("test-obj-attr", /* name */
- "test_obj_test-obj-attr", /* short description */
- "read-write WebKitDOMTestObj* TestObj.test-obj-attr", /* longer - could do with some extra doc stuff here */
- WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_XML_OBJ_ATTR,
- g_param_spec_object("xml-obj-attr", /* name */
- "test_obj_xml-obj-attr", /* short description */
- "read-write WebKitDOMTestObj* TestObj.xml-obj-attr", /* longer - could do with some extra doc stuff here */
- WEBKIT_TYPE_DOM_TEST_OBJ, /* gobject type */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_CREATE,
- g_param_spec_boolean("create", /* name */
- "test_obj_create", /* short description */
- "read-write gboolean TestObj.create", /* longer - could do with some extra doc stuff here */
- FALSE, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_STRING_ATTR,
- g_param_spec_string("reflected-string-attr", /* name */
- "test_obj_reflected-string-attr", /* short description */
- "read-write gchar* TestObj.reflected-string-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_INTEGRAL_ATTR,
- g_param_spec_long("reflected-integral-attr", /* name */
- "test_obj_reflected-integral-attr", /* short description */
- "read-write glong TestObj.reflected-integral-attr", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_UNSIGNED_INTEGRAL_ATTR,
- g_param_spec_ulong("reflected-unsigned-integral-attr", /* name */
- "test_obj_reflected-unsigned-integral-attr", /* short description */
- "read-write gulong TestObj.reflected-unsigned-integral-attr", /* longer - could do with some extra doc stuff here */
- 0, /* min */
-G_MAXULONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_BOOLEAN_ATTR,
- g_param_spec_boolean("reflected-boolean-attr", /* name */
- "test_obj_reflected-boolean-attr", /* short description */
- "read-write gboolean TestObj.reflected-boolean-attr", /* longer - could do with some extra doc stuff here */
- FALSE, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_URL_ATTR,
- g_param_spec_string("reflected-url-attr", /* name */
- "test_obj_reflected-url-attr", /* short description */
- "read-write gchar* TestObj.reflected-url-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_NON_EMPTY_URL_ATTR,
- g_param_spec_string("reflected-non-empty-url-attr", /* name */
- "test_obj_reflected-non-empty-url-attr", /* short description */
- "read-write gchar* TestObj.reflected-non-empty-url-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_STRING_ATTR,
- g_param_spec_string("reflected-string-attr", /* name */
- "test_obj_reflected-string-attr", /* short description */
- "read-write gchar* TestObj.reflected-string-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_CUSTOM_INTEGRAL_ATTR,
- g_param_spec_long("reflected-custom-integral-attr", /* name */
- "test_obj_reflected-custom-integral-attr", /* short description */
- "read-write glong TestObj.reflected-custom-integral-attr", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_CUSTOM_BOOLEAN_ATTR,
- g_param_spec_boolean("reflected-custom-boolean-attr", /* name */
- "test_obj_reflected-custom-boolean-attr", /* short description */
- "read-write gboolean TestObj.reflected-custom-boolean-attr", /* longer - could do with some extra doc stuff here */
- FALSE, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_CUSTOM_URL_ATTR,
- g_param_spec_string("reflected-custom-url-attr", /* name */
- "test_obj_reflected-custom-url-attr", /* short description */
- "read-write gchar* TestObj.reflected-custom-url-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_REFLECTED_CUSTOM_NON_EMPTY_URL_ATTR,
- g_param_spec_string("reflected-custom-non-empty-url-attr", /* name */
- "test_obj_reflected-custom-non-empty-url-attr", /* short description */
- "read-write gchar* TestObj.reflected-custom-non-empty-url-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_ATTR_WITH_GETTER_EXCEPTION,
- g_param_spec_long("attr-with-getter-exception", /* name */
- "test_obj_attr-with-getter-exception", /* short description */
- "read-write glong TestObj.attr-with-getter-exception", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_ATTR_WITH_SETTER_EXCEPTION,
- g_param_spec_long("attr-with-setter-exception", /* name */
- "test_obj_attr-with-setter-exception", /* short description */
- "read-write glong TestObj.attr-with-setter-exception", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_STRING_ATTR_WITH_GETTER_EXCEPTION,
- g_param_spec_string("string-attr-with-getter-exception", /* name */
- "test_obj_string-attr-with-getter-exception", /* short description */
- "read-write gchar* TestObj.string-attr-with-getter-exception", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_STRING_ATTR_WITH_SETTER_EXCEPTION,
- g_param_spec_string("string-attr-with-setter-exception", /* name */
- "test_obj_string-attr-with-setter-exception", /* short description */
- "read-write gchar* TestObj.string-attr-with-setter-exception", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_SCRIPT_STRING_ATTR,
- g_param_spec_string("script-string-attr", /* name */
- "test_obj_script-string-attr", /* short description */
- "read-only gchar* TestObj.script-string-attr", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READABLE));
-#if ENABLE(Condition1)
- g_object_class_install_property(gobjectClass,
- PROP_CONDITIONAL_ATTR1,
- g_param_spec_long("conditional-attr1", /* name */
- "test_obj_conditional-attr1", /* short description */
- "read-write glong TestObj.conditional-attr1", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
-#endif /* ENABLE(Condition1) */
-#if ENABLE(Condition1) && ENABLE(Condition2)
- g_object_class_install_property(gobjectClass,
- PROP_CONDITIONAL_ATTR2,
- g_param_spec_long("conditional-attr2", /* name */
- "test_obj_conditional-attr2", /* short description */
- "read-write glong TestObj.conditional-attr2", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
-#endif /* ENABLE(Condition1) && ENABLE(Condition2) */
-#if ENABLE(Condition1) || ENABLE(Condition2)
- g_object_class_install_property(gobjectClass,
- PROP_CONDITIONAL_ATTR3,
- g_param_spec_long("conditional-attr3", /* name */
- "test_obj_conditional-attr3", /* short description */
- "read-write glong TestObj.conditional-attr3", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
-#endif /* ENABLE(Condition1) || ENABLE(Condition2) */
- g_object_class_install_property(gobjectClass,
- PROP_DESCRIPTION,
- g_param_spec_long("description", /* name */
- "test_obj_description", /* short description */
- "read-only glong TestObj.description", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READABLE));
- g_object_class_install_property(gobjectClass,
- PROP_ID,
- g_param_spec_long("id", /* name */
- "test_obj_id", /* short description */
- "read-write glong TestObj.id", /* longer - could do with some extra doc stuff here */
- G_MINLONG, /* min */
-G_MAXLONG, /* max */
-0, /* default */
- WEBKIT_PARAM_READWRITE));
- g_object_class_install_property(gobjectClass,
- PROP_HASH,
- g_param_spec_string("hash", /* name */
- "test_obj_hash", /* short description */
- "read-only gchar* TestObj.hash", /* longer - could do with some extra doc stuff here */
- "", /* default */
- WEBKIT_PARAM_READABLE));
-
-
-}
-
-static void webkit_dom_test_obj_init(WebKitDOMTestObj* request)
-{
-}
-
-namespace WebKit {
-WebKitDOMTestObj* wrapTestObj(WebCore::TestObj* coreObject)
-{
- g_return_val_if_fail(coreObject, 0);
-
- /* We call ref() rather than using a C++ smart pointer because we can't store a C++ object
- * in a C-allocated GObject structure. See the finalize() code for the
- * matching deref().
- */
- coreObject->ref();
-
- return WEBKIT_DOM_TEST_OBJ(g_object_new(WEBKIT_TYPE_DOM_TEST_OBJ,
- "core-object", coreObject, NULL));
-}
-} // namespace WebKit
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
deleted file mode 100644
index 0416664..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
+++ /dev/null
@@ -1,324 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WebKitDOMTestObj_h
-#define WebKitDOMTestObj_h
-
-#include "webkit/webkitdomdefines.h"
-#include <glib-object.h>
-#include <webkit/webkitdefines.h>
-#include "webkit/WebKitDOMObject.h"
-
-
-G_BEGIN_DECLS
-#define WEBKIT_TYPE_DOM_TEST_OBJ (webkit_dom_test_obj_get_type())
-#define WEBKIT_DOM_TEST_OBJ(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_DOM_TEST_OBJ, WebKitDOMTestObj))
-#define WEBKIT_DOM_TEST_OBJ_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_DOM_TEST_OBJ, WebKitDOMTestObjClass)
-#define WEBKIT_DOM_IS_TEST_OBJ(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_DOM_TEST_OBJ))
-#define WEBKIT_DOM_IS_TEST_OBJ_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_DOM_TEST_OBJ))
-#define WEBKIT_DOM_TEST_OBJ_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_TYPE_DOM_TEST_OBJ, WebKitDOMTestObjClass))
-
-struct _WebKitDOMTestObj {
- WebKitDOMObject parent_instance;
-};
-
-struct _WebKitDOMTestObjClass {
- WebKitDOMObjectClass parent_class;
-};
-
-WEBKIT_API GType
-webkit_dom_test_obj_get_type (void);
-
-WEBKIT_API void
-webkit_dom_test_obj_void_method(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_void_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg);
-
-WEBKIT_API glong
-webkit_dom_test_obj_int_method(WebKitDOMTestObj* self);
-
-WEBKIT_API glong
-webkit_dom_test_obj_int_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_obj_method(WebKitDOMTestObj* self);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_obj_method_with_args(WebKitDOMTestObj* self, glong int_arg, const gchar* str_arg, WebKitDOMTestObj* obj_arg);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_method_that_requires_all_args(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_method_that_requires_all_args_and_throws(WebKitDOMTestObj* self, const gchar* str_arg, WebKitDOMTestObj* obj_arg, GError **error);
-
-WEBKIT_API void
-webkit_dom_test_obj_serialized_value(WebKitDOMTestObj* self, WebKitDOMSerializedScriptValue* serialized_arg);
-
-WEBKIT_API void
-webkit_dom_test_obj_idb_key(WebKitDOMTestObj* self, WebKitDOMIDBKey* key);
-
-WEBKIT_API void
-webkit_dom_test_obj_options_object(WebKitDOMTestObj* self, WebKitDOMOptionsObject* oo, WebKitDOMOptionsObject* ooo);
-
-WEBKIT_API void
-webkit_dom_test_obj_method_with_exception(WebKitDOMTestObj* self, GError **error);
-
-
-/* TODO: event function webkit_dom_test_obj_add_event_listener */
-
-
-/* TODO: event function webkit_dom_test_obj_remove_event_listener */
-
-WEBKIT_API void
-webkit_dom_test_obj_with_dynamic_frame(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_dynamic_frame_and_arg(WebKitDOMTestObj* self, glong int_arg);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_dynamic_frame_and_optional_arg(WebKitDOMTestObj* self, glong int_arg, glong optional_arg);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_dynamic_frame_and_user_gesture(WebKitDOMTestObj* self, glong int_arg, gboolean isUserGesture);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_dynamic_frame_and_user_gesture_asad(WebKitDOMTestObj* self, glong int_arg, glong optional_arg, gboolean isUserGesture);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_script_state_void(WebKitDOMTestObj* self);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_state_obj(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_script_state_void_exception(WebKitDOMTestObj* self, GError **error);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_with_script_state_obj_exception(WebKitDOMTestObj* self, GError **error);
-
-WEBKIT_API void
-webkit_dom_test_obj_with_script_execution_context(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_method_with_optional_arg(WebKitDOMTestObj* self, glong opt);
-
-WEBKIT_API void
-webkit_dom_test_obj_method_with_non_optional_arg_and_optional_arg(WebKitDOMTestObj* self, glong non_opt, glong opt);
-
-WEBKIT_API void
-webkit_dom_test_obj_method_with_non_optional_arg_and_two_optional_args(WebKitDOMTestObj* self, glong non_opt, glong opt1, glong opt2);
-
-WEBKIT_API void
-webkit_dom_test_obj_class_method(WebKitDOMTestObj* self);
-
-WEBKIT_API glong
-webkit_dom_test_obj_class_method_with_optional(WebKitDOMTestObj* self, glong arg);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_read_only_int_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_read_only_string_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_get_read_only_test_obj_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API gshort
-webkit_dom_test_obj_get_short_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_short_attr(WebKitDOMTestObj* self, gshort value);
-
-WEBKIT_API gushort
-webkit_dom_test_obj_get_unsigned_short_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_unsigned_short_attr(WebKitDOMTestObj* self, gushort value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_int_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_int_attr(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API gint64
-webkit_dom_test_obj_get_long_long_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_long_long_attr(WebKitDOMTestObj* self, gint64 value);
-
-WEBKIT_API guint64
-webkit_dom_test_obj_get_unsigned_long_long_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_unsigned_long_long_attr(WebKitDOMTestObj* self, guint64 value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_string_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_string_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_get_test_obj_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_test_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value);
-
-WEBKIT_API WebKitDOMTestObj*
-webkit_dom_test_obj_get_xml_obj_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_xml_obj_attr(WebKitDOMTestObj* self, WebKitDOMTestObj* value);
-
-WEBKIT_API gboolean
-webkit_dom_test_obj_get_create(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_create(WebKitDOMTestObj* self, gboolean value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_reflected_integral_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_integral_attr(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API gulong
-webkit_dom_test_obj_get_reflected_unsigned_integral_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_unsigned_integral_attr(WebKitDOMTestObj* self, gulong value);
-
-WEBKIT_API gboolean
-webkit_dom_test_obj_get_reflected_boolean_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_boolean_attr(WebKitDOMTestObj* self, gboolean value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_reflected_url_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_url_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_reflected_non_empty_url_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_non_empty_url_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_reflected_string_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_string_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_reflected_custom_integral_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_custom_integral_attr(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API gboolean
-webkit_dom_test_obj_get_reflected_custom_boolean_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_custom_boolean_attr(WebKitDOMTestObj* self, gboolean value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_reflected_custom_url_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_custom_url_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_reflected_custom_non_empty_url_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_reflected_custom_non_empty_url_attr(WebKitDOMTestObj* self, const gchar* value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_attr_with_getter_exception(WebKitDOMTestObj* self, glong value, GError **error);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_attr_with_setter_exception(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_attr_with_setter_exception(WebKitDOMTestObj* self, glong value, GError **error);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_string_attr_with_getter_exception(WebKitDOMTestObj* self, GError **error);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_string_attr_with_getter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_string_attr_with_setter_exception(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_string_attr_with_setter_exception(WebKitDOMTestObj* self, const gchar* value, GError **error);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_script_string_attr(WebKitDOMTestObj* self);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_conditional_attr1(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_conditional_attr1(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_conditional_attr2(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_conditional_attr2(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_conditional_attr3(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_conditional_attr3(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_description(WebKitDOMTestObj* self);
-
-WEBKIT_API glong
-webkit_dom_test_obj_get_id(WebKitDOMTestObj* self);
-
-WEBKIT_API void
-webkit_dom_test_obj_set_id(WebKitDOMTestObj* self, glong value);
-
-WEBKIT_API gchar*
-webkit_dom_test_obj_get_hash(WebKitDOMTestObj* self);
-
-G_END_DECLS
-
-#endif /* WebKitDOMTestObj_h */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h
deleted file mode 100644
index 96722f7..0000000
--- a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObjPrivate.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef WEB_KIT_DOM_TEST_OBJ_PRIVATE_H
-#define WEB_KIT_DOM_TEST_OBJ_PRIVATE_H
-
-#include <glib-object.h>
-#include <webkit/WebKitDOMObject.h>
-#include "TestObj.h"
-namespace WebKit {
- WebKitDOMTestObj *
- wrapTestObj(WebCore::TestObj *coreObject);
-
- WebCore::TestObj *
- core(WebKitDOMTestObj *request);
-
- WebKitDOMTestObj*
- kit(WebCore::TestObj* node);
-
-} // namespace WebKit
-
-#endif /* WEB_KIT_DOM_TEST_OBJ_PRIVATE_H */
diff --git a/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp b/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp
deleted file mode 100644
index 069b8ae..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestCallback.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "config.h"
-
-#if ENABLE(DATABASE)
-
-#include "JSTestCallback.h"
-
-#include "JSClass1.h"
-#include "JSClass2.h"
-#include "ScriptExecutionContext.h"
-#include <runtime/JSLock.h>
-#include <wtf/MainThread.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-JSTestCallback::JSTestCallback(JSObject* callback, JSDOMGlobalObject* globalObject)
- : ActiveDOMCallback(globalObject->scriptExecutionContext())
- , m_data(new JSCallbackData(callback, globalObject))
-{
-}
-
-JSTestCallback::~JSTestCallback()
-{
- ScriptExecutionContext* context = scriptExecutionContext();
- // When the context is destroyed, all tasks with a reference to a callback
- // should be deleted. So if the context is 0, we are on the context thread.
- if (!context || context->isContextThread())
- delete m_data;
- else
- context->postTask(DeleteCallbackDataTask::create(m_data));
-#ifndef NDEBUG
- m_data = 0;
-#endif
-}
-
-// Functions
-
-bool JSTestCallback::callbackWithClass1Param(Class1* class1Param)
-{
- if (!canInvokeCallback())
- return true;
-
- RefPtr<JSTestCallback> protect(this);
-
- JSLock lock(SilenceAssertionsOnly);
-
- ExecState* exec = m_data->globalObject()->globalExec();
- MarkedArgumentBuffer args;
- args.append(toJS(exec, class1Param));
-
- bool raisedException = false;
- m_data->invokeCallback(args, &raisedException);
- return !raisedException;
-}
-
-bool JSTestCallback::callbackWithClass2Param(Class2* class2Param, const String& strArg)
-{
- if (!canInvokeCallback())
- return true;
-
- RefPtr<JSTestCallback> protect(this);
-
- JSLock lock(SilenceAssertionsOnly);
-
- ExecState* exec = m_data->globalObject()->globalExec();
- MarkedArgumentBuffer args;
- args.append(toJS(exec, class2Param));
- args.append(jsString(exec, strArg));
-
- bool raisedException = false;
- m_data->invokeCallback(args, &raisedException);
- return !raisedException;
-}
-
-}
-
-#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/scripts/test/JS/JSTestCallback.h b/WebCore/bindings/scripts/test/JS/JSTestCallback.h
deleted file mode 100644
index ae91a6c..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestCallback.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef JSTestCallback_h
-#define JSTestCallback_h
-
-#if ENABLE(DATABASE)
-
-#include "ActiveDOMCallback.h"
-#include "JSCallbackData.h"
-#include "TestCallback.h"
-#include <wtf/Forward.h>
-
-namespace WebCore {
-
-class JSTestCallback : public TestCallback, public ActiveDOMCallback {
-public:
- static PassRefPtr<JSTestCallback> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject)
- {
- return adoptRef(new JSTestCallback(callback, globalObject));
- }
-
- virtual ~JSTestCallback();
-
- // Functions
- virtual bool callbackWithClass1Param(Class1* class1Param);
- virtual bool callbackWithClass2Param(Class2* class2Param, const String& strArg);
- COMPILE_ASSERT(false) virtual int callbackWithNonBoolReturnType(Class3* class3Param);
- virtual int customCallback(Class5* class5Param, Class6* class6Param);
-
-private:
- JSTestCallback(JSC::JSObject* callback, JSDOMGlobalObject*);
-
- JSCallbackData* m_data;
-};
-
-} // namespace WebCore
-
-#endif // ENABLE(DATABASE)
-
-#endif
diff --git a/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp b/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
deleted file mode 100644
index 8e71df1..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "config.h"
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#include "JSTestInterface.h"
-
-#include "TestInterface.h"
-#include <wtf/GetPtr.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-ASSERT_CLASS_FITS_IN_CELL(JSTestInterface);
-
-/* Hash table */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestInterfaceTableValues[2] =
-{
- { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestInterfaceConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestInterfaceTable = { 2, 1, JSTestInterfaceTableValues, 0 };
-/* Hash table for constructor */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestInterfaceConstructorTableValues[1] =
-{
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestInterfaceConstructorTable = { 1, 0, JSTestInterfaceConstructorTableValues, 0 };
-class JSTestInterfaceConstructor : public DOMConstructorObject {
-public:
- JSTestInterfaceConstructor(JSC::ExecState*, JSDOMGlobalObject*);
-
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
- static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestInterface(JSC::ExecState*);
- virtual JSC::ConstructType getConstructData(JSC::ConstructData&);
-};
-
-const ClassInfo JSTestInterfaceConstructor::s_info = { "TestInterfaceConstructor", 0, &JSTestInterfaceConstructorTable, 0 };
-
-JSTestInterfaceConstructor::JSTestInterfaceConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
- : DOMConstructorObject(JSTestInterfaceConstructor::createStructure(globalObject->objectPrototype()), globalObject)
-{
- putDirect(exec->propertyNames().prototype, JSTestInterfacePrototype::self(exec, globalObject), DontDelete | ReadOnly);
-}
-
-bool JSTestInterfaceConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticValueSlot<JSTestInterfaceConstructor, DOMObject>(exec, &JSTestInterfaceConstructorTable, this, propertyName, slot);
-}
-
-bool JSTestInterfaceConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticValueDescriptor<JSTestInterfaceConstructor, DOMObject>(exec, &JSTestInterfaceConstructorTable, this, propertyName, descriptor);
-}
-
-EncodedJSValue JSC_HOST_CALL JSTestInterfaceConstructor::constructJSTestInterface(ExecState* exec)
-{
- ScriptExecutionContext* context = static_cast<JSTestInterfaceConstructor*>(exec->callee())->scriptExecutionContext();
- if (!context)
- return throwVMError(exec, createReferenceError(exec, "Reference error"));
- return JSValue::encode(asObject(toJS(exec, static_cast<JSTestInterfaceConstructor*>(exec->callee())->globalObject(), TestInterface::create(context))));
-}
-
-ConstructType JSTestInterfaceConstructor::getConstructData(ConstructData& constructData)
-{
- constructData.native.function = constructJSTestInterface;
- return ConstructTypeHost;
-}
-
-/* Hash table for prototype */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestInterfacePrototypeTableValues[1] =
-{
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestInterfacePrototypeTable = { 1, 0, JSTestInterfacePrototypeTableValues, 0 };
-const ClassInfo JSTestInterfacePrototype::s_info = { "TestInterfacePrototype", 0, &JSTestInterfacePrototypeTable, 0 };
-
-JSObject* JSTestInterfacePrototype::self(ExecState* exec, JSGlobalObject* globalObject)
-{
- return getDOMPrototype<JSTestInterface>(exec, globalObject);
-}
-
-const ClassInfo JSTestInterface::s_info = { "TestInterface", 0, &JSTestInterfaceTable, 0 };
-
-JSTestInterface::JSTestInterface(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestInterface> impl)
- : DOMObjectWithGlobalPointer(structure, globalObject)
- , m_impl(impl)
-{
-}
-
-JSTestInterface::~JSTestInterface()
-{
- forgetDOMObject(this, impl());
-}
-
-JSObject* JSTestInterface::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
-{
- return new (exec) JSTestInterfacePrototype(globalObject, JSTestInterfacePrototype::createStructure(globalObject->objectPrototype()));
-}
-
-bool JSTestInterface::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticValueSlot<JSTestInterface, Base>(exec, &JSTestInterfaceTable, this, propertyName, slot);
-}
-
-bool JSTestInterface::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticValueDescriptor<JSTestInterface, Base>(exec, &JSTestInterfaceTable, this, propertyName, descriptor);
-}
-
-JSValue jsTestInterfaceConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestInterface* domObject = static_cast<JSTestInterface*>(asObject(slotBase));
- return JSTestInterface::getConstructor(exec, domObject->globalObject());
-}
-JSValue JSTestInterface::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
-{
- return getDOMConstructor<JSTestInterfaceConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
-}
-
-JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestInterface* object)
-{
- return getDOMObjectWrapper<JSTestInterface>(exec, globalObject, object);
-}
-TestInterface* toTestInterface(JSC::JSValue value)
-{
- return value.inherits(&JSTestInterface::s_info) ? static_cast<JSTestInterface*>(asObject(value))->impl() : 0;
-}
-
-}
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
diff --git a/WebCore/bindings/scripts/test/JS/JSTestInterface.h b/WebCore/bindings/scripts/test/JS/JSTestInterface.h
deleted file mode 100644
index 09d7d7c..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestInterface.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef JSTestInterface_h
-#define JSTestInterface_h
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#include "JSDOMBinding.h"
-#include <runtime/JSGlobalObject.h>
-#include <runtime/JSObjectWithGlobalObject.h>
-#include <runtime/ObjectPrototype.h>
-
-namespace WebCore {
-
-class TestInterface;
-
-class JSTestInterface : public DOMObjectWithGlobalPointer {
- typedef DOMObjectWithGlobalPointer Base;
-public:
- JSTestInterface(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<TestInterface>);
- virtual ~JSTestInterface();
- static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
-
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
-
- static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
- TestInterface* impl() const { return m_impl.get(); }
-
-private:
- RefPtr<TestInterface> m_impl;
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
-};
-
-JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestInterface*);
-TestInterface* toTestInterface(JSC::JSValue);
-
-class JSTestInterfacePrototype : public JSC::JSObjectWithGlobalObject {
- typedef JSC::JSObjectWithGlobalObject Base;
-public:
- static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
- JSTestInterfacePrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
-protected:
- static const unsigned StructureFlags = Base::StructureFlags;
-};
-
-// Attributes
-
-JSC::JSValue jsTestInterfaceConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-
-} // namespace WebCore
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
-
-#endif
diff --git a/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
deleted file mode 100644
index e505ed2..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "config.h"
-#include "JSTestMediaQueryListListener.h"
-
-#include "ExceptionCode.h"
-#include "JSDOMBinding.h"
-#include "MediaQueryListListener.h"
-#include "TestMediaQueryListListener.h"
-#include <runtime/Error.h>
-#include <wtf/GetPtr.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-ASSERT_CLASS_FITS_IN_CELL(JSTestMediaQueryListListener);
-
-/* Hash table */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestMediaQueryListListenerTableValues[2] =
-{
- { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestMediaQueryListListenerConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestMediaQueryListListenerTable = { 2, 1, JSTestMediaQueryListListenerTableValues, 0 };
-/* Hash table for constructor */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestMediaQueryListListenerConstructorTableValues[1] =
-{
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestMediaQueryListListenerConstructorTable = { 1, 0, JSTestMediaQueryListListenerConstructorTableValues, 0 };
-class JSTestMediaQueryListListenerConstructor : public DOMConstructorObject {
-public:
- JSTestMediaQueryListListenerConstructor(JSC::ExecState*, JSDOMGlobalObject*);
-
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
-};
-
-const ClassInfo JSTestMediaQueryListListenerConstructor::s_info = { "TestMediaQueryListListenerConstructor", 0, &JSTestMediaQueryListListenerConstructorTable, 0 };
-
-JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
- : DOMConstructorObject(JSTestMediaQueryListListenerConstructor::createStructure(globalObject->objectPrototype()), globalObject)
-{
- putDirect(exec->propertyNames().prototype, JSTestMediaQueryListListenerPrototype::self(exec, globalObject), DontDelete | ReadOnly);
-}
-
-bool JSTestMediaQueryListListenerConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticValueSlot<JSTestMediaQueryListListenerConstructor, DOMObject>(exec, &JSTestMediaQueryListListenerConstructorTable, this, propertyName, slot);
-}
-
-bool JSTestMediaQueryListListenerConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticValueDescriptor<JSTestMediaQueryListListenerConstructor, DOMObject>(exec, &JSTestMediaQueryListListenerConstructorTable, this, propertyName, descriptor);
-}
-
-/* Hash table for prototype */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestMediaQueryListListenerPrototypeTableValues[2] =
-{
- { "method", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestMediaQueryListListenerPrototypeFunctionMethod), (intptr_t)1 THUNK_GENERATOR(0) },
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestMediaQueryListListenerPrototypeTable = { 2, 1, JSTestMediaQueryListListenerPrototypeTableValues, 0 };
-const ClassInfo JSTestMediaQueryListListenerPrototype::s_info = { "TestMediaQueryListListenerPrototype", 0, &JSTestMediaQueryListListenerPrototypeTable, 0 };
-
-JSObject* JSTestMediaQueryListListenerPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
-{
- return getDOMPrototype<JSTestMediaQueryListListener>(exec, globalObject);
-}
-
-bool JSTestMediaQueryListListenerPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticFunctionSlot<JSObject>(exec, &JSTestMediaQueryListListenerPrototypeTable, this, propertyName, slot);
-}
-
-bool JSTestMediaQueryListListenerPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticFunctionDescriptor<JSObject>(exec, &JSTestMediaQueryListListenerPrototypeTable, this, propertyName, descriptor);
-}
-
-const ClassInfo JSTestMediaQueryListListener::s_info = { "TestMediaQueryListListener", 0, &JSTestMediaQueryListListenerTable, 0 };
-
-JSTestMediaQueryListListener::JSTestMediaQueryListListener(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestMediaQueryListListener> impl)
- : DOMObjectWithGlobalPointer(structure, globalObject)
- , m_impl(impl)
-{
-}
-
-JSTestMediaQueryListListener::~JSTestMediaQueryListListener()
-{
- forgetDOMObject(this, impl());
-}
-
-JSObject* JSTestMediaQueryListListener::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
-{
- return new (exec) JSTestMediaQueryListListenerPrototype(globalObject, JSTestMediaQueryListListenerPrototype::createStructure(globalObject->objectPrototype()));
-}
-
-bool JSTestMediaQueryListListener::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticValueSlot<JSTestMediaQueryListListener, Base>(exec, &JSTestMediaQueryListListenerTable, this, propertyName, slot);
-}
-
-bool JSTestMediaQueryListListener::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticValueDescriptor<JSTestMediaQueryListListener, Base>(exec, &JSTestMediaQueryListListenerTable, this, propertyName, descriptor);
-}
-
-JSValue jsTestMediaQueryListListenerConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestMediaQueryListListener* domObject = static_cast<JSTestMediaQueryListListener*>(asObject(slotBase));
- return JSTestMediaQueryListListener::getConstructor(exec, domObject->globalObject());
-}
-JSValue JSTestMediaQueryListListener::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
-{
- return getDOMConstructor<JSTestMediaQueryListListenerConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestMediaQueryListListener::s_info))
- return throwVMTypeError(exec);
- JSTestMediaQueryListListener* castedThis = static_cast<JSTestMediaQueryListListener*>(asObject(thisValue));
- TestMediaQueryListListener* imp = static_cast<TestMediaQueryListListener*>(castedThis->impl());
- RefPtr<MediaQueryListListener> listener = MediaQueryListListener::create(exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->method(listener);
- return JSValue::encode(jsUndefined());
-}
-
-JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestMediaQueryListListener* object)
-{
- return getDOMObjectWrapper<JSTestMediaQueryListListener>(exec, globalObject, object);
-}
-TestMediaQueryListListener* toTestMediaQueryListListener(JSC::JSValue value)
-{
- return value.inherits(&JSTestMediaQueryListListener::s_info) ? static_cast<JSTestMediaQueryListListener*>(asObject(value))->impl() : 0;
-}
-
-}
diff --git a/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h
deleted file mode 100644
index 1863703..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef JSTestMediaQueryListListener_h
-#define JSTestMediaQueryListListener_h
-
-#include "JSDOMBinding.h"
-#include <runtime/JSGlobalObject.h>
-#include <runtime/JSObjectWithGlobalObject.h>
-#include <runtime/ObjectPrototype.h>
-
-namespace WebCore {
-
-class TestMediaQueryListListener;
-
-class JSTestMediaQueryListListener : public DOMObjectWithGlobalPointer {
- typedef DOMObjectWithGlobalPointer Base;
-public:
- JSTestMediaQueryListListener(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<TestMediaQueryListListener>);
- virtual ~JSTestMediaQueryListListener();
- static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
-
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
-
- static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
- TestMediaQueryListListener* impl() const { return m_impl.get(); }
-
-private:
- RefPtr<TestMediaQueryListListener> m_impl;
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
-};
-
-JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestMediaQueryListListener*);
-TestMediaQueryListListener* toTestMediaQueryListListener(JSC::JSValue);
-
-class JSTestMediaQueryListListenerPrototype : public JSC::JSObjectWithGlobalObject {
- typedef JSC::JSObjectWithGlobalObject Base;
-public:
- static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
- JSTestMediaQueryListListenerPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
-};
-
-// Functions
-
-JSC::EncodedJSValue JSC_HOST_CALL jsTestMediaQueryListListenerPrototypeFunctionMethod(JSC::ExecState*);
-// Attributes
-
-JSC::JSValue jsTestMediaQueryListListenerConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-
-} // namespace WebCore
-
-#endif
diff --git a/WebCore/bindings/scripts/test/JS/JSTestObj.cpp b/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
deleted file mode 100644
index c4c77ee..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
+++ /dev/null
@@ -1,1646 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#include "config.h"
-#include "JSTestObj.h"
-
-#include "ExceptionCode.h"
-#include "HTMLNames.h"
-#include "IDBBindingUtilities.h"
-#include "IDBKey.h"
-#include "JSDOMBinding.h"
-#include "JSEventListener.h"
-#include "JSOptionsObject.h"
-#include "JSTestCallback.h"
-#include "JSTestObj.h"
-#include "JSlog.h"
-#include "KURL.h"
-#include "ScriptArguments.h"
-#include "ScriptCallStack.h"
-#include "ScriptCallStackFactory.h"
-#include "SerializedScriptValue.h"
-#include "TestObj.h"
-#include <runtime/Error.h>
-#include <runtime/JSNumberCell.h>
-#include <runtime/JSString.h>
-#include <wtf/GetPtr.h>
-
-using namespace JSC;
-
-namespace WebCore {
-
-ASSERT_CLASS_FITS_IN_CELL(JSTestObj);
-
-/* Hash table */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestObjTableValues[37] =
-{
- { "readOnlyIntAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyIntAttr), (intptr_t)0 THUNK_GENERATOR(0) },
- { "readOnlyStringAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyStringAttr), (intptr_t)0 THUNK_GENERATOR(0) },
- { "readOnlyTestObjAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReadOnlyTestObjAttr), (intptr_t)0 THUNK_GENERATOR(0) },
- { "shortAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjShortAttr), (intptr_t)setJSTestObjShortAttr THUNK_GENERATOR(0) },
- { "unsignedShortAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjUnsignedShortAttr), (intptr_t)setJSTestObjUnsignedShortAttr THUNK_GENERATOR(0) },
- { "intAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjIntAttr), (intptr_t)setJSTestObjIntAttr THUNK_GENERATOR(0) },
- { "longLongAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjLongLongAttr), (intptr_t)setJSTestObjLongLongAttr THUNK_GENERATOR(0) },
- { "unsignedLongLongAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjUnsignedLongLongAttr), (intptr_t)setJSTestObjUnsignedLongLongAttr THUNK_GENERATOR(0) },
- { "stringAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjStringAttr), (intptr_t)setJSTestObjStringAttr THUNK_GENERATOR(0) },
- { "testObjAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjTestObjAttr), (intptr_t)setJSTestObjTestObjAttr THUNK_GENERATOR(0) },
- { "XMLObjAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjXMLObjAttr), (intptr_t)setJSTestObjXMLObjAttr THUNK_GENERATOR(0) },
- { "create", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCreate), (intptr_t)setJSTestObjCreate THUNK_GENERATOR(0) },
- { "reflectedStringAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedStringAttr), (intptr_t)setJSTestObjReflectedStringAttr THUNK_GENERATOR(0) },
- { "reflectedIntegralAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedIntegralAttr), (intptr_t)setJSTestObjReflectedIntegralAttr THUNK_GENERATOR(0) },
- { "reflectedUnsignedIntegralAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedUnsignedIntegralAttr), (intptr_t)setJSTestObjReflectedUnsignedIntegralAttr THUNK_GENERATOR(0) },
- { "reflectedBooleanAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedBooleanAttr), (intptr_t)setJSTestObjReflectedBooleanAttr THUNK_GENERATOR(0) },
- { "reflectedURLAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedURLAttr), (intptr_t)setJSTestObjReflectedURLAttr THUNK_GENERATOR(0) },
- { "reflectedNonEmptyURLAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedNonEmptyURLAttr), (intptr_t)setJSTestObjReflectedNonEmptyURLAttr THUNK_GENERATOR(0) },
- { "reflectedStringAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedStringAttr), (intptr_t)setJSTestObjReflectedStringAttr THUNK_GENERATOR(0) },
- { "reflectedCustomIntegralAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedCustomIntegralAttr), (intptr_t)setJSTestObjReflectedCustomIntegralAttr THUNK_GENERATOR(0) },
- { "reflectedCustomBooleanAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedCustomBooleanAttr), (intptr_t)setJSTestObjReflectedCustomBooleanAttr THUNK_GENERATOR(0) },
- { "reflectedCustomURLAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedCustomURLAttr), (intptr_t)setJSTestObjReflectedCustomURLAttr THUNK_GENERATOR(0) },
- { "reflectedCustomNonEmptyURLAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjReflectedCustomNonEmptyURLAttr), (intptr_t)setJSTestObjReflectedCustomNonEmptyURLAttr THUNK_GENERATOR(0) },
- { "attrWithGetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjAttrWithGetterException), (intptr_t)setJSTestObjAttrWithGetterException THUNK_GENERATOR(0) },
- { "attrWithSetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjAttrWithSetterException), (intptr_t)setJSTestObjAttrWithSetterException THUNK_GENERATOR(0) },
- { "stringAttrWithGetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjStringAttrWithGetterException), (intptr_t)setJSTestObjStringAttrWithGetterException THUNK_GENERATOR(0) },
- { "stringAttrWithSetterException", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjStringAttrWithSetterException), (intptr_t)setJSTestObjStringAttrWithSetterException THUNK_GENERATOR(0) },
- { "customAttr", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCustomAttr), (intptr_t)setJSTestObjCustomAttr THUNK_GENERATOR(0) },
- { "scriptStringAttr", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjScriptStringAttr), (intptr_t)0 THUNK_GENERATOR(0) },
-#if ENABLE(Condition1)
- { "conditionalAttr1", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjConditionalAttr1), (intptr_t)setJSTestObjConditionalAttr1 THUNK_GENERATOR(0) },
-#endif
-#if ENABLE(Condition1) && ENABLE(Condition2)
- { "conditionalAttr2", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjConditionalAttr2), (intptr_t)setJSTestObjConditionalAttr2 THUNK_GENERATOR(0) },
-#endif
-#if ENABLE(Condition1) || ENABLE(Condition2)
- { "conditionalAttr3", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjConditionalAttr3), (intptr_t)setJSTestObjConditionalAttr3 THUNK_GENERATOR(0) },
-#endif
- { "description", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjDescription), (intptr_t)0 THUNK_GENERATOR(0) },
- { "id", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjId), (intptr_t)setJSTestObjId THUNK_GENERATOR(0) },
- { "hash", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjHash), (intptr_t)0 THUNK_GENERATOR(0) },
- { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestObjTable = { 133, 127, JSTestObjTableValues, 0 };
-/* Hash table for constructor */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestObjConstructorTableValues[12] =
-{
- { "CONST_VALUE_0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_0), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_1), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_2), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_4), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_8), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_9", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_9), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_10", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_10), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_11", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_11), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_12", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_12), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_13", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_13), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_14", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_14), (intptr_t)0 THUNK_GENERATOR(0) },
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestObjConstructorTable = { 33, 31, JSTestObjConstructorTableValues, 0 };
-
-COMPILE_ASSERT(0 == TestObj::CONST_VALUE_0, TestObjEnumCONST_VALUE_0IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(1 == TestObj::CONST_VALUE_1, TestObjEnumCONST_VALUE_1IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(2 == TestObj::CONST_VALUE_2, TestObjEnumCONST_VALUE_2IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(4 == TestObj::CONST_VALUE_4, TestObjEnumCONST_VALUE_4IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(-1 == TestObj::CONST_VALUE_9, TestObjEnumCONST_VALUE_9IsWrongUseDontCheckEnums);
-COMPILE_ASSERT("my constant string" == TestObj::CONST_VALUE_10, TestObjEnumCONST_VALUE_10IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0xffffffff == TestObj::CONST_VALUE_11, TestObjEnumCONST_VALUE_11IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0x01 == TestObj::CONST_VALUE_12, TestObjEnumCONST_VALUE_12IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0X20 == TestObj::CONST_VALUE_13, TestObjEnumCONST_VALUE_13IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0x1abc == TestObj::CONST_VALUE_14, TestObjEnumCONST_VALUE_14IsWrongUseDontCheckEnums);
-
-class JSTestObjConstructor : public DOMConstructorObject {
-public:
- JSTestObjConstructor(JSC::ExecState*, JSDOMGlobalObject*);
-
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
-};
-
-const ClassInfo JSTestObjConstructor::s_info = { "TestObjConstructor", 0, &JSTestObjConstructorTable, 0 };
-
-JSTestObjConstructor::JSTestObjConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
- : DOMConstructorObject(JSTestObjConstructor::createStructure(globalObject->objectPrototype()), globalObject)
-{
- putDirect(exec->propertyNames().prototype, JSTestObjPrototype::self(exec, globalObject), DontDelete | ReadOnly);
-}
-
-bool JSTestObjConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticValueSlot<JSTestObjConstructor, DOMObject>(exec, &JSTestObjConstructorTable, this, propertyName, slot);
-}
-
-bool JSTestObjConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticValueDescriptor<JSTestObjConstructor, DOMObject>(exec, &JSTestObjConstructorTable, this, propertyName, descriptor);
-}
-
-/* Hash table for prototype */
-#if ENABLE(JIT)
-#define THUNK_GENERATOR(generator) , generator
-#else
-#define THUNK_GENERATOR(generator)
-#endif
-
-static const HashTableValue JSTestObjPrototypeTableValues[48] =
-{
- { "CONST_VALUE_0", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_0), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_1), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_2), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_4", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_4), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_8", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_8), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_9", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_9), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_10", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_10), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_11", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_11), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_12", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_12), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_13", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_13), (intptr_t)0 THUNK_GENERATOR(0) },
- { "CONST_VALUE_14", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjCONST_VALUE_14), (intptr_t)0 THUNK_GENERATOR(0) },
- { "voidMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionVoidMethod), (intptr_t)0 THUNK_GENERATOR(0) },
- { "voidMethodWithArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionVoidMethodWithArgs), (intptr_t)3 THUNK_GENERATOR(0) },
- { "intMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionIntMethod), (intptr_t)0 THUNK_GENERATOR(0) },
- { "intMethodWithArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionIntMethodWithArgs), (intptr_t)3 THUNK_GENERATOR(0) },
- { "objMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionObjMethod), (intptr_t)0 THUNK_GENERATOR(0) },
- { "objMethodWithArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionObjMethodWithArgs), (intptr_t)3 THUNK_GENERATOR(0) },
- { "methodThatRequiresAllArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodThatRequiresAllArgs), (intptr_t)2 THUNK_GENERATOR(0) },
- { "methodThatRequiresAllArgsAndThrows", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows), (intptr_t)2 THUNK_GENERATOR(0) },
- { "serializedValue", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionSerializedValue), (intptr_t)1 THUNK_GENERATOR(0) },
- { "idbKey", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionIdbKey), (intptr_t)1 THUNK_GENERATOR(0) },
- { "optionsObject", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionOptionsObject), (intptr_t)2 THUNK_GENERATOR(0) },
- { "methodWithException", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithException), (intptr_t)0 THUNK_GENERATOR(0) },
- { "customMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionCustomMethod), (intptr_t)0 THUNK_GENERATOR(0) },
- { "customMethodWithArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionCustomMethodWithArgs), (intptr_t)3 THUNK_GENERATOR(0) },
- { "customArgsAndException", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionCustomArgsAndException), (intptr_t)1 THUNK_GENERATOR(0) },
- { "addEventListener", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionAddEventListener), (intptr_t)3 THUNK_GENERATOR(0) },
- { "removeEventListener", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionRemoveEventListener), (intptr_t)3 THUNK_GENERATOR(0) },
- { "withDynamicFrame", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithDynamicFrame), (intptr_t)0 THUNK_GENERATOR(0) },
- { "withDynamicFrameAndArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithDynamicFrameAndArg), (intptr_t)1 THUNK_GENERATOR(0) },
- { "withDynamicFrameAndOptionalArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg), (intptr_t)2 THUNK_GENERATOR(0) },
- { "withDynamicFrameAndUserGesture", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture), (intptr_t)1 THUNK_GENERATOR(0) },
- { "withDynamicFrameAndUserGestureASAD", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD), (intptr_t)2 THUNK_GENERATOR(0) },
- { "withScriptStateVoid", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithScriptStateVoid), (intptr_t)0 THUNK_GENERATOR(0) },
- { "withScriptStateObj", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithScriptStateObj), (intptr_t)0 THUNK_GENERATOR(0) },
- { "withScriptStateVoidException", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithScriptStateVoidException), (intptr_t)0 THUNK_GENERATOR(0) },
- { "withScriptStateObjException", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithScriptStateObjException), (intptr_t)0 THUNK_GENERATOR(0) },
- { "withScriptExecutionContext", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionWithScriptExecutionContext), (intptr_t)0 THUNK_GENERATOR(0) },
- { "methodWithOptionalArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalArg), (intptr_t)1 THUNK_GENERATOR(0) },
- { "methodWithNonOptionalArgAndOptionalArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg), (intptr_t)2 THUNK_GENERATOR(0) },
- { "methodWithNonOptionalArgAndTwoOptionalArgs", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs), (intptr_t)3 THUNK_GENERATOR(0) },
- { "methodWithCallbackArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithCallbackArg), (intptr_t)1 THUNK_GENERATOR(0) },
- { "methodWithNonCallbackArgAndCallbackArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg), (intptr_t)2 THUNK_GENERATOR(0) },
- { "methodWithCallbackAndOptionalArg", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg), (intptr_t)1 THUNK_GENERATOR(0) },
- { "overloadedMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionOverloadedMethod), (intptr_t)2 THUNK_GENERATOR(0) },
- { "classMethod", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionClassMethod), (intptr_t)0 THUNK_GENERATOR(0) },
- { "classMethodWithOptional", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionClassMethodWithOptional), (intptr_t)1 THUNK_GENERATOR(0) },
- { 0, 0, 0, 0 THUNK_GENERATOR(0) }
-};
-
-#undef THUNK_GENERATOR
-static JSC_CONST_HASHTABLE HashTable JSTestObjPrototypeTable = { 136, 127, JSTestObjPrototypeTableValues, 0 };
-const ClassInfo JSTestObjPrototype::s_info = { "TestObjPrototype", 0, &JSTestObjPrototypeTable, 0 };
-
-JSObject* JSTestObjPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
-{
- return getDOMPrototype<JSTestObj>(exec, globalObject);
-}
-
-bool JSTestObjPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticPropertySlot<JSTestObjPrototype, JSObject>(exec, &JSTestObjPrototypeTable, this, propertyName, slot);
-}
-
-bool JSTestObjPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticPropertyDescriptor<JSTestObjPrototype, JSObject>(exec, &JSTestObjPrototypeTable, this, propertyName, descriptor);
-}
-
-const ClassInfo JSTestObj::s_info = { "TestObj", 0, &JSTestObjTable, 0 };
-
-JSTestObj::JSTestObj(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<TestObj> impl)
- : DOMObjectWithGlobalPointer(structure, globalObject)
- , m_impl(impl)
-{
-}
-
-JSTestObj::~JSTestObj()
-{
- forgetDOMObject(this, impl());
-}
-
-JSObject* JSTestObj::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
-{
- return new (exec) JSTestObjPrototype(globalObject, JSTestObjPrototype::createStructure(globalObject->objectPrototype()));
-}
-
-bool JSTestObj::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
-{
- return getStaticValueSlot<JSTestObj, Base>(exec, &JSTestObjTable, this, propertyName, slot);
-}
-
-bool JSTestObj::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
-{
- return getStaticValueDescriptor<JSTestObj, Base>(exec, &JSTestObjTable, this, propertyName, descriptor);
-}
-
-JSValue jsTestObjReadOnlyIntAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->readOnlyIntAttr());
- return result;
-}
-
-JSValue jsTestObjReadOnlyStringAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->readOnlyStringAttr());
- return result;
-}
-
-JSValue jsTestObjReadOnlyTestObjAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->readOnlyTestObjAttr()));
- return result;
-}
-
-JSValue jsTestObjShortAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->shortAttr());
- return result;
-}
-
-JSValue jsTestObjUnsignedShortAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->unsignedShortAttr());
- return result;
-}
-
-JSValue jsTestObjIntAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->intAttr());
- return result;
-}
-
-JSValue jsTestObjLongLongAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->longLongAttr());
- return result;
-}
-
-JSValue jsTestObjUnsignedLongLongAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->unsignedLongLongAttr());
- return result;
-}
-
-JSValue jsTestObjStringAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->stringAttr());
- return result;
-}
-
-JSValue jsTestObjTestObjAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->testObjAttr()));
- return result;
-}
-
-JSValue jsTestObjXMLObjAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->xmlObjAttr()));
- return result;
-}
-
-JSValue jsTestObjCreate(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsBoolean(imp->isCreate());
- return result;
-}
-
-JSValue jsTestObjReflectedStringAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedIntegralAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedUnsignedIntegralAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(std::max(0, imp->getIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr)));
- return result;
-}
-
-JSValue jsTestObjReflectedBooleanAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedURLAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedNonEmptyURLAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedStringAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedCustomIntegralAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedCustomBooleanAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedCustomURLAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
- return result;
-}
-
-JSValue jsTestObjReflectedCustomNonEmptyURLAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr));
- return result;
-}
-
-JSValue jsTestObjAttrWithGetterException(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- ExceptionCode ec = 0;
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSC::JSValue result = jsNumber(imp->attrWithGetterException(ec));
- setDOMException(exec, ec);
- return result;
-}
-
-JSValue jsTestObjAttrWithSetterException(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->attrWithSetterException());
- return result;
-}
-
-JSValue jsTestObjStringAttrWithGetterException(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- ExceptionCode ec = 0;
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSC::JSValue result = jsString(exec, imp->stringAttrWithGetterException(ec));
- setDOMException(exec, ec);
- return result;
-}
-
-JSValue jsTestObjStringAttrWithSetterException(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->stringAttrWithSetterException());
- return result;
-}
-
-JSValue jsTestObjCustomAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- return castedThis->customAttr(exec);
-}
-
-JSValue jsTestObjScriptStringAttr(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsOwnedStringOrNull(exec, imp->scriptStringAttr());
- return result;
-}
-
-#if ENABLE(Condition1)
-JSValue jsTestObjConditionalAttr1(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->conditionalAttr1());
- return result;
-}
-#endif
-
-#if ENABLE(Condition1) && ENABLE(Condition2)
-JSValue jsTestObjConditionalAttr2(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->conditionalAttr2());
- return result;
-}
-#endif
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-JSValue jsTestObjConditionalAttr3(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->conditionalAttr3());
- return result;
-}
-#endif
-
-JSValue jsTestObjDescription(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->description());
- return result;
-}
-
-JSValue jsTestObjId(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsNumber(imp->id());
- return result;
-}
-
-JSValue jsTestObjHash(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(slotBase));
- UNUSED_PARAM(exec);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue result = jsString(exec, imp->hash());
- return result;
-}
-
-JSValue jsTestObjConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
-{
- JSTestObj* domObject = static_cast<JSTestObj*>(asObject(slotBase));
- return JSTestObj::getConstructor(exec, domObject->globalObject());
-}
-void JSTestObj::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
-{
- lookupPut<JSTestObj, Base>(exec, propertyName, value, &JSTestObjTable, this, slot);
-}
-
-void setJSTestObjShortAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setShortAttr(value.toInt32(exec));
-}
-
-void setJSTestObjUnsignedShortAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setUnsignedShortAttr(value.toUInt32(exec));
-}
-
-void setJSTestObjIntAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setIntAttr(value.toInt32(exec));
-}
-
-void setJSTestObjLongLongAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setLongLongAttr(static_cast<long long>(value.toInteger(exec)));
-}
-
-void setJSTestObjUnsignedLongLongAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setUnsignedLongLongAttr(static_cast<unsigned long long>(value.toInteger(exec)));
-}
-
-void setJSTestObjStringAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setStringAttr(ustringToString(value.toString(exec)));
-}
-
-void setJSTestObjTestObjAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setTestObjAttr(toTestObj(value));
-}
-
-void setJSTestObjXMLObjAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setXMLObjAttr(toTestObj(value));
-}
-
-void setJSTestObjCreate(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setCreate(value.toBoolean(exec));
-}
-
-void setJSTestObjReflectedStringAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, valueToStringWithNullCheck(exec, value));
-}
-
-void setJSTestObjReflectedIntegralAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, value.toInt32(exec));
-}
-
-void setJSTestObjReflectedUnsignedIntegralAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, value.toUInt32(exec));
-}
-
-void setJSTestObjReflectedBooleanAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, value.toBoolean(exec));
-}
-
-void setJSTestObjReflectedURLAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, valueToStringWithNullCheck(exec, value));
-}
-
-void setJSTestObjReflectedNonEmptyURLAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, valueToStringWithNullCheck(exec, value));
-}
-
-void setJSTestObjReflectedStringAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, valueToStringWithNullCheck(exec, value));
-}
-
-void setJSTestObjReflectedCustomIntegralAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, value.toInt32(exec));
-}
-
-void setJSTestObjReflectedCustomBooleanAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, value.toBoolean(exec));
-}
-
-void setJSTestObjReflectedCustomURLAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, valueToStringWithNullCheck(exec, value));
-}
-
-void setJSTestObjReflectedCustomNonEmptyURLAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, valueToStringWithNullCheck(exec, value));
-}
-
-void setJSTestObjAttrWithGetterException(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
- imp->setAttrWithGetterException(value.toInt32(exec), ec);
- setDOMException(exec, ec);
-}
-
-void setJSTestObjAttrWithSetterException(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
- imp->setAttrWithSetterException(value.toInt32(exec), ec);
- setDOMException(exec, ec);
-}
-
-void setJSTestObjStringAttrWithGetterException(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
- imp->setStringAttrWithGetterException(ustringToString(value.toString(exec)), ec);
- setDOMException(exec, ec);
-}
-
-void setJSTestObjStringAttrWithSetterException(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
- imp->setStringAttrWithSetterException(ustringToString(value.toString(exec)), ec);
- setDOMException(exec, ec);
-}
-
-void setJSTestObjCustomAttr(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- static_cast<JSTestObj*>(thisObject)->setCustomAttr(exec, value);
-}
-
-#if ENABLE(Condition1)
-void setJSTestObjConditionalAttr1(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setConditionalAttr1(value.toInt32(exec));
-}
-#endif
-
-#if ENABLE(Condition1) && ENABLE(Condition2)
-void setJSTestObjConditionalAttr2(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setConditionalAttr2(value.toInt32(exec));
-}
-#endif
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-void setJSTestObjConditionalAttr3(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setConditionalAttr3(value.toInt32(exec));
-}
-#endif
-
-void setJSTestObjId(ExecState* exec, JSObject* thisObject, JSValue value)
-{
- JSTestObj* castedThis = static_cast<JSTestObj*>(thisObject);
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- imp->setId(value.toInt32(exec));
-}
-
-JSValue JSTestObj::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
-{
- return getDOMConstructor<JSTestObjConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethod(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
- imp->voidMethod();
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethodWithArgs(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- const String& strArg = ustringToString(exec->argument(1).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- TestObj* objArg = toTestObj(exec->argument(2));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->voidMethodWithArgs(intArg, strArg, objArg);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionIntMethod(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
-
- JSC::JSValue result = jsNumber(imp->intMethod());
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionIntMethodWithArgs(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- const String& strArg = ustringToString(exec->argument(1).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- TestObj* objArg = toTestObj(exec->argument(2));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
-
- JSC::JSValue result = jsNumber(imp->intMethodWithArgs(intArg, strArg, objArg));
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethod(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->objMethod()));
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethodWithArgs(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- const String& strArg = ustringToString(exec->argument(1).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- TestObj* objArg = toTestObj(exec->argument(2));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->objMethodWithArgs(intArg, strArg, objArg)));
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgs(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- if (exec->argumentCount() < 2)
- return JSValue::encode(jsUndefined());
- const String& strArg = ustringToString(exec->argument(0).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- TestObj* objArg = toTestObj(exec->argument(1));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->methodThatRequiresAllArgs(strArg, objArg)));
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- if (exec->argumentCount() < 2)
- return throwVMError(exec, createSyntaxError(exec, "Not enough arguments"));
- ExceptionCode ec = 0;
- const String& strArg = ustringToString(exec->argument(0).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- TestObj* objArg = toTestObj(exec->argument(1));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->methodThatRequiresAllArgsAndThrows(strArg, objArg, ec)));
- setDOMException(exec, ec);
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionSerializedValue(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- RefPtr<SerializedScriptValue> serializedArg = SerializedScriptValue::create(exec, exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->serializedValue(serializedArg);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionIdbKey(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- RefPtr<IDBKey> key = createIDBKeyFromValue(exec, exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->idbKey(key);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- OptionsObject* oo = toOptionsObject(exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 1) {
- imp->optionsObject(oo);
- return JSValue::encode(jsUndefined());
- }
-
- OptionsObject* ooo = toOptionsObject(exec->argument(1));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->optionsObject(oo, ooo);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithException(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
-
- imp->methodWithException(ec);
- setDOMException(exec, ec);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethod(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- return JSValue::encode(castedThis->customMethod(exec));
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethodWithArgs(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- return JSValue::encode(castedThis->customMethodWithArgs(exec));
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomArgsAndException(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
- RefPtr<ScriptArguments> scriptArguments(createScriptArguments(exec, 1));
- size_t maxStackSize = imp->shouldCaptureFullStackTrace() ? ScriptCallStack::maxCallStackSizeToCapture : 1;
- RefPtr<ScriptCallStack> callStack(createScriptCallStack(exec, maxStackSize));
- log* intArg = tolog(exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->customArgsAndException(intArg, scriptArguments, callStack, ec);
- setDOMException(exec, ec);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAddEventListener(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue listener = exec->argument(1);
- if (!listener.isObject())
- return JSValue::encode(jsUndefined());
- imp->addEventListener(ustringToAtomicString(exec->argument(0).toString(exec)), JSEventListener::create(asObject(listener), castedThis, false, currentWorld(exec)), exec->argument(2).toBoolean(exec));
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionRemoveEventListener(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- JSValue listener = exec->argument(1);
- if (!listener.isObject())
- return JSValue::encode(jsUndefined());
- imp->removeEventListener(ustringToAtomicString(exec->argument(0).toString(exec)), JSEventListener::create(asObject(listener), castedThis, false, currentWorld(exec)).get(), exec->argument(2).toBoolean(exec));
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrame(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- Frame* dynamicFrame = toDynamicFrame(exec);
- if (!dynamicFrame)
- return JSValue::encode(jsUndefined());
-
- imp->withDynamicFrame(dynamicFrame);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- Frame* dynamicFrame = toDynamicFrame(exec);
- if (!dynamicFrame)
- return JSValue::encode(jsUndefined());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->withDynamicFrameAndArg(dynamicFrame, intArg);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- Frame* dynamicFrame = toDynamicFrame(exec);
- if (!dynamicFrame)
- return JSValue::encode(jsUndefined());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 1) {
- imp->withDynamicFrameAndOptionalArg(dynamicFrame, intArg);
- return JSValue::encode(jsUndefined());
- }
-
- int optionalArg = exec->argument(1).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->withDynamicFrameAndOptionalArg(dynamicFrame, intArg, optionalArg);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- Frame* dynamicFrame = toDynamicFrame(exec);
- if (!dynamicFrame)
- return JSValue::encode(jsUndefined());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->withDynamicFrameAndUserGesture(dynamicFrame, intArg, processingUserGesture());
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- Frame* dynamicFrame = toDynamicFrame(exec);
- if (!dynamicFrame)
- return JSValue::encode(jsUndefined());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 1) {
- imp->withDynamicFrameAndUserGestureASAD(dynamicFrame, intArg);
- return JSValue::encode(jsUndefined());
- }
-
- int optionalArg = exec->argument(1).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->withDynamicFrameAndUserGestureASAD(dynamicFrame, intArg, optionalArg, processingUserGesture());
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoid(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
- imp->withScriptStateVoid(exec);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObj(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->withScriptStateObj(exec)));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoidException(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
-
- imp->withScriptStateVoidException(exec, ec);
- setDOMException(exec, ec);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObjException(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ExceptionCode ec = 0;
-
-
- JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->withScriptStateObjException(exec, ec)));
- setDOMException(exec, ec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- return JSValue::encode(result);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContext(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
- if (!scriptContext)
- return JSValue::encode(jsUndefined());
-
- imp->withScriptExecutionContext(scriptContext);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 0) {
- imp->methodWithOptionalArg();
- return JSValue::encode(jsUndefined());
- }
-
- int opt = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->methodWithOptionalArg(opt);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int nonOpt = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 1) {
- imp->methodWithNonOptionalArgAndOptionalArg(nonOpt);
- return JSValue::encode(jsUndefined());
- }
-
- int opt = exec->argument(1).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int nonOpt = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 1) {
- imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt);
- return JSValue::encode(jsUndefined());
- }
-
- int opt1 = exec->argument(1).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- int opt2 = exec->argument(2).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- if (exec->argumentCount() <= 0 || !exec->argument(0).isObject()) {
- setDOMException(exec, TYPE_MISMATCH_ERR);
- return JSValue::encode(jsUndefined());
- }
- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(exec->argument(0)), castedThis->globalObject());
-
- imp->methodWithCallbackArg(callback);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int nonCallback = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- if (exec->argumentCount() <= 1 || !exec->argument(1).isObject()) {
- setDOMException(exec, TYPE_MISMATCH_ERR);
- return JSValue::encode(jsUndefined());
- }
- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(exec->argument(1)), castedThis->globalObject());
-
- imp->methodWithNonCallbackArgAndCallbackArg(nonCallback, callback);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- RefPtr<TestCallback> callback;
- if (exec->argumentCount() > 0 && !exec->argument(0).isNull() && !exec->argument(0).isUndefined()) {
- if (!exec->argument(0).isObject()) {
- setDOMException(exec, TYPE_MISMATCH_ERR);
- return JSValue::encode(jsUndefined());
- }
- callback = JSTestCallback::create(asObject(exec->argument(0)), castedThis->globalObject());
- }
-
- imp->methodWithCallbackAndOptionalArg(callback);
- return JSValue::encode(jsUndefined());
-}
-
-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod1(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- TestObj* objArg = toTestObj(exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
- const String& strArg = ustringToString(exec->argument(1).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->overloadedMethod(objArg, strArg);
- return JSValue::encode(jsUndefined());
-}
-
-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod2(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- TestObj* objArg = toTestObj(exec->argument(0));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 1) {
- imp->overloadedMethod(objArg);
- return JSValue::encode(jsUndefined());
- }
-
- int intArg = exec->argument(1).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->overloadedMethod(objArg, intArg);
- return JSValue::encode(jsUndefined());
-}
-
-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod3(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- const String& strArg = ustringToString(exec->argument(0).toString(exec));
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->overloadedMethod(strArg);
- return JSValue::encode(jsUndefined());
-}
-
-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod4(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- int intArg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
- imp->overloadedMethod(intArg);
- return JSValue::encode(jsUndefined());
-}
-
-static EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod5(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
- if (exec->argumentCount() <= 0 || !exec->argument(0).isObject()) {
- setDOMException(exec, TYPE_MISMATCH_ERR);
- return JSValue::encode(jsUndefined());
- }
- RefPtr<TestCallback> callback = JSTestCallback::create(asObject(exec->argument(0)), castedThis->globalObject());
-
- imp->overloadedMethod(callback);
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod(ExecState* exec)
-{
- if ((exec->argumentCount() == 2 && (exec->argument(0).isNull() || (exec->argument(0).isObject() && asObject(exec->argument(0))->inherits(&JSTestObj::s_info))) && (exec->argument(1).isNull() || exec->argument(1).isUndefined() || exec->argument(1).isString() || exec->argument(1).isObject())))
- return jsTestObjPrototypeFunctionOverloadedMethod1(exec);
- if ((exec->argumentCount() == 1 && (exec->argument(0).isNull() || (exec->argument(0).isObject() && asObject(exec->argument(0))->inherits(&JSTestObj::s_info)))) || (exec->argumentCount() == 2 && (exec->argument(0).isNull() || (exec->argument(0).isObject() && asObject(exec->argument(0))->inherits(&JSTestObj::s_info)))))
- return jsTestObjPrototypeFunctionOverloadedMethod2(exec);
- if ((exec->argumentCount() == 1 && (exec->argument(0).isNull() || exec->argument(0).isUndefined() || exec->argument(0).isString() || exec->argument(0).isObject())))
- return jsTestObjPrototypeFunctionOverloadedMethod3(exec);
- if (exec->argumentCount() == 1)
- return jsTestObjPrototypeFunctionOverloadedMethod4(exec);
- if ((exec->argumentCount() == 1 && (exec->argument(0).isNull() || exec->argument(0).isObject())))
- return jsTestObjPrototypeFunctionOverloadedMethod5(exec);
- return throwVMTypeError(exec);
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethod(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
- imp->classMethod();
- return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethodWithOptional(ExecState* exec)
-{
- JSValue thisValue = exec->hostThisValue();
- if (!thisValue.inherits(&JSTestObj::s_info))
- return throwVMTypeError(exec);
- JSTestObj* castedThis = static_cast<JSTestObj*>(asObject(thisValue));
- TestObj* imp = static_cast<TestObj*>(castedThis->impl());
-
- int argsCount = exec->argumentCount();
- if (argsCount <= 0) {
-
- JSC::JSValue result = jsNumber(imp->classMethodWithOptional());
- return JSValue::encode(result);
- }
-
- int arg = exec->argument(0).toInt32(exec);
- if (exec->hadException())
- return JSValue::encode(jsUndefined());
-
-
- JSC::JSValue result = jsNumber(imp->classMethodWithOptional(arg));
- return JSValue::encode(result);
-}
-
-// Constant getters
-
-JSValue jsTestObjCONST_VALUE_0(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(0));
-}
-
-JSValue jsTestObjCONST_VALUE_1(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(1));
-}
-
-JSValue jsTestObjCONST_VALUE_2(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(2));
-}
-
-JSValue jsTestObjCONST_VALUE_4(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(4));
-}
-
-JSValue jsTestObjCONST_VALUE_8(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(8));
-}
-
-JSValue jsTestObjCONST_VALUE_9(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(-1));
-}
-
-JSValue jsTestObjCONST_VALUE_10(ExecState* exec, JSValue, const Identifier&)
-{
- return jsStringOrNull(exec, String("my constant string"));
-}
-
-JSValue jsTestObjCONST_VALUE_11(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(0xffffffff));
-}
-
-JSValue jsTestObjCONST_VALUE_12(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(0x01));
-}
-
-JSValue jsTestObjCONST_VALUE_13(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(0X20));
-}
-
-JSValue jsTestObjCONST_VALUE_14(ExecState* exec, JSValue, const Identifier&)
-{
- UNUSED_PARAM(exec);
- return jsNumber(static_cast<int>(0x1abc));
-}
-
-JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, TestObj* object)
-{
- return getDOMObjectWrapper<JSTestObj>(exec, globalObject, object);
-}
-TestObj* toTestObj(JSC::JSValue value)
-{
- return value.inherits(&JSTestObj::s_info) ? static_cast<JSTestObj*>(asObject(value))->impl() : 0;
-}
-
-}
diff --git a/WebCore/bindings/scripts/test/JS/JSTestObj.h b/WebCore/bindings/scripts/test/JS/JSTestObj.h
deleted file mode 100644
index b8713ae..0000000
--- a/WebCore/bindings/scripts/test/JS/JSTestObj.h
+++ /dev/null
@@ -1,208 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
-*/
-
-#ifndef JSTestObj_h
-#define JSTestObj_h
-
-#include "JSDOMBinding.h"
-#include <runtime/JSGlobalObject.h>
-#include <runtime/JSObjectWithGlobalObject.h>
-#include <runtime/ObjectPrototype.h>
-
-namespace WebCore {
-
-class TestObj;
-
-class JSTestObj : public DOMObjectWithGlobalPointer {
- typedef DOMObjectWithGlobalPointer Base;
-public:
- JSTestObj(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<TestObj>);
- virtual ~JSTestObj();
- static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
- virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
-
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
-
- static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
-
- // Custom attributes
- JSC::JSValue customAttr(JSC::ExecState*) const;
- void setCustomAttr(JSC::ExecState*, JSC::JSValue);
-
- // Custom functions
- JSC::JSValue customMethod(JSC::ExecState*);
- JSC::JSValue customMethodWithArgs(JSC::ExecState*);
- TestObj* impl() const { return m_impl.get(); }
-
-private:
- RefPtr<TestObj> m_impl;
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
-};
-
-JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestObj*);
-TestObj* toTestObj(JSC::JSValue);
-
-class JSTestObjPrototype : public JSC::JSObjectWithGlobalObject {
- typedef JSC::JSObjectWithGlobalObject Base;
-public:
- static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
- virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
- static const JSC::ClassInfo s_info;
- virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
- virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
- static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
- {
- return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
- }
- JSTestObjPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { }
-protected:
- static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
-};
-
-// Functions
-
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionVoidMethodWithArgs(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionIntMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionIntMethodWithArgs(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionObjMethodWithArgs(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgs(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionSerializedValue(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionIdbKey(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithException(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomMethodWithArgs(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionCustomArgsAndException(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionAddEventListener(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionRemoveEventListener(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrame(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndOptionalArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndUserGesture(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithDynamicFrameAndUserGestureASAD(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoid(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObj(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateVoidException(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptStateObjException(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionWithScriptExecutionContext(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOverloadedMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionClassMethodWithOptional(JSC::ExecState*);
-// Attributes
-
-JSC::JSValue jsTestObjReadOnlyIntAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjReadOnlyStringAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjReadOnlyTestObjAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjShortAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjShortAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjUnsignedShortAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjUnsignedShortAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjIntAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjIntAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjLongLongAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjLongLongAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjUnsignedLongLongAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjUnsignedLongLongAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjStringAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjStringAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjTestObjAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjTestObjAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjXMLObjAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjXMLObjAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjCreate(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjCreate(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedStringAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedStringAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedIntegralAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedIntegralAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedUnsignedIntegralAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedUnsignedIntegralAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedBooleanAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedBooleanAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedURLAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedURLAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedNonEmptyURLAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedNonEmptyURLAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedStringAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedStringAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedCustomIntegralAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedCustomIntegralAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedCustomBooleanAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedCustomBooleanAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedCustomURLAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedCustomURLAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjReflectedCustomNonEmptyURLAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjReflectedCustomNonEmptyURLAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjAttrWithGetterException(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjAttrWithGetterException(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjAttrWithSetterException(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjAttrWithSetterException(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjStringAttrWithGetterException(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjStringAttrWithGetterException(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjStringAttrWithSetterException(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjStringAttrWithSetterException(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjCustomAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjCustomAttr(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjScriptStringAttr(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjConditionalAttr1(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjConditionalAttr1(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjConditionalAttr2(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjConditionalAttr2(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjConditionalAttr3(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjConditionalAttr3(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjDescription(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-void setJSTestObjId(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
-JSC::JSValue jsTestObjHash(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-// Constants
-
-JSC::JSValue jsTestObjCONST_VALUE_0(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_1(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_2(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_4(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_8(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_9(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_10(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_11(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_12(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_13(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-JSC::JSValue jsTestObjCONST_VALUE_14(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
-
-} // namespace WebCore
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h b/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h
deleted file mode 100644
index 1213c6f..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMObject.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-@class DOMClass1;
-@class DOMClass2;
-@class DOMClass3;
-@class DOMClass5;
-@class DOMClass6;
-@class NSString;
-
-@interface DOMTestCallback : DOMObject
-- (BOOL)callbackWithClass1Param:(DOMClass1 *)class1Param;
-- (BOOL)callbackWithClass2Param:(DOMClass2 *)class2Param strArg:(NSString *)strArg;
-- (int)callbackWithNonBoolReturnType:(DOMClass3 *)class3Param;
-- (int)customCallback:(DOMClass5 *)class5Param class6Param:(DOMClass6 *)class6Param;
-@end
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm
deleted file mode 100644
index e941eda..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestCallback.mm
+++ /dev/null
@@ -1,127 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-
-#if ENABLE(DATABASE)
-
-#import "DOMInternal.h"
-
-#import "DOMTestCallback.h"
-
-#import "Class1.h"
-#import "Class2.h"
-#import "Class3.h"
-#import "Class5.h"
-#import "Class6.h"
-#import "DOMBlobInternal.h"
-#import "DOMCSSRuleInternal.h"
-#import "DOMCSSValueInternal.h"
-#import "DOMClass1Internal.h"
-#import "DOMClass2Internal.h"
-#import "DOMClass3Internal.h"
-#import "DOMClass5Internal.h"
-#import "DOMClass6Internal.h"
-#import "DOMEventInternal.h"
-#import "DOMNodeInternal.h"
-#import "DOMStyleSheetInternal.h"
-#import "DOMTestCallbackInternal.h"
-#import "ExceptionHandlers.h"
-#import "JSMainThreadExecState.h"
-#import "KURL.h"
-#import "TestCallback.h"
-#import "ThreadCheck.h"
-#import "WebCoreObjCExtras.h"
-#import "WebScriptObjectPrivate.h"
-#import <wtf/GetPtr.h>
-
-#define IMPL reinterpret_cast<WebCore::TestCallback*>(_internal)
-
-@implementation DOMTestCallback
-
-- (void)dealloc
-{
- if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestCallback class], self))
- return;
-
- if (_internal)
- IMPL->deref();
- [super dealloc];
-}
-
-- (void)finalize
-{
- if (_internal)
- IMPL->deref();
- [super finalize];
-}
-
-- (BOOL)callbackWithClass1Param:(DOMClass1 *)class1Param
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->callbackWithClass1Param(core(class1Param));
-}
-
-- (BOOL)callbackWithClass2Param:(DOMClass2 *)class2Param strArg:(NSString *)strArg
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->callbackWithClass2Param(core(class2Param), strArg);
-}
-
-- (int)callbackWithNonBoolReturnType:(DOMClass3 *)class3Param
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->callbackWithNonBoolReturnType(core(class3Param));
-}
-
-- (int)customCallback:(DOMClass5 *)class5Param class6Param:(DOMClass6 *)class6Param
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->customCallback(core(class5Param), core(class6Param));
-}
-
-@end
-
-WebCore::TestCallback* core(DOMTestCallback *wrapper)
-{
- return wrapper ? reinterpret_cast<WebCore::TestCallback*>(wrapper->_internal) : 0;
-}
-
-DOMTestCallback *kit(WebCore::TestCallback* value)
-{
- { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
- if (!value)
- return nil;
- if (DOMTestCallback *wrapper = getDOMWrapper(value))
- return [[wrapper retain] autorelease];
- DOMTestCallback *wrapper = [[DOMTestCallback alloc] _init];
- wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
- value->ref();
- addDOMWrapper(wrapper, value);
- return [wrapper autorelease];
-}
-
-#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h
deleted file mode 100644
index d8ea940..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestCallbackInternal.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMTestCallback.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-namespace WebCore {
- class TestCallback;
-}
-
-WebCore::TestCallback* core(DOMTestCallback *);
-DOMTestCallback *kit(WebCore::TestCallback*);
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h b/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h
deleted file mode 100644
index db7be28..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMObject.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-@interface DOMTestInterface : DOMObject
-@end
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm
deleted file mode 100644
index ab59333..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestInterface.mm
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#import "DOMInternal.h"
-
-#import "DOMTestInterface.h"
-
-#import "DOMBlobInternal.h"
-#import "DOMCSSRuleInternal.h"
-#import "DOMCSSValueInternal.h"
-#import "DOMEventInternal.h"
-#import "DOMNodeInternal.h"
-#import "DOMStyleSheetInternal.h"
-#import "DOMTestInterfaceInternal.h"
-#import "ExceptionHandlers.h"
-#import "JSMainThreadExecState.h"
-#import "TestInterface.h"
-#import "ThreadCheck.h"
-#import "WebCoreObjCExtras.h"
-#import "WebScriptObjectPrivate.h"
-#import <wtf/GetPtr.h>
-
-#define IMPL reinterpret_cast<WebCore::TestInterface*>(_internal)
-
-@implementation DOMTestInterface
-
-- (void)dealloc
-{
- if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestInterface class], self))
- return;
-
- if (_internal)
- IMPL->deref();
- [super dealloc];
-}
-
-- (void)finalize
-{
- if (_internal)
- IMPL->deref();
- [super finalize];
-}
-
-@end
-
-WebCore::TestInterface* core(DOMTestInterface *wrapper)
-{
- return wrapper ? reinterpret_cast<WebCore::TestInterface*>(wrapper->_internal) : 0;
-}
-
-DOMTestInterface *kit(WebCore::TestInterface* value)
-{
- { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
- if (!value)
- return nil;
- if (DOMTestInterface *wrapper = getDOMWrapper(value))
- return [[wrapper retain] autorelease];
- DOMTestInterface *wrapper = [[DOMTestInterface alloc] _init];
- wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
- value->ref();
- addDOMWrapper(wrapper, value);
- return [wrapper autorelease];
-}
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h
deleted file mode 100644
index fef60a3..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestInterfaceInternal.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMTestInterface.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-namespace WebCore {
- class TestInterface;
-}
-
-WebCore::TestInterface* core(DOMTestInterface *);
-DOMTestInterface *kit(WebCore::TestInterface*);
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h
deleted file mode 100644
index 20be806..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMObject.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-@class DOMMediaQueryListListener;
-
-@interface DOMTestMediaQueryListListener : DOMObject
-- (void)method:(DOMMediaQueryListListener *)listener;
-@end
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm
deleted file mode 100644
index 74e3d52..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-#import "DOMInternal.h"
-
-#import "DOMTestMediaQueryListListener.h"
-
-#import "DOMBlobInternal.h"
-#import "DOMCSSRuleInternal.h"
-#import "DOMCSSValueInternal.h"
-#import "DOMEventInternal.h"
-#import "DOMMediaQueryListListenerInternal.h"
-#import "DOMNodeInternal.h"
-#import "DOMStyleSheetInternal.h"
-#import "DOMTestMediaQueryListListenerInternal.h"
-#import "ExceptionHandlers.h"
-#import "JSMainThreadExecState.h"
-#import "MediaQueryListListener.h"
-#import "TestMediaQueryListListener.h"
-#import "ThreadCheck.h"
-#import "WebCoreObjCExtras.h"
-#import "WebScriptObjectPrivate.h"
-#import <wtf/GetPtr.h>
-
-#define IMPL reinterpret_cast<WebCore::TestMediaQueryListListener*>(_internal)
-
-@implementation DOMTestMediaQueryListListener
-
-- (void)dealloc
-{
- if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestMediaQueryListListener class], self))
- return;
-
- if (_internal)
- IMPL->deref();
- [super dealloc];
-}
-
-- (void)finalize
-{
- if (_internal)
- IMPL->deref();
- [super finalize];
-}
-
-- (void)method:(DOMMediaQueryListListener *)listener
-{
- WebCore::JSMainThreadNullState state;
- IMPL->method(core(listener));
-}
-
-@end
-
-WebCore::TestMediaQueryListListener* core(DOMTestMediaQueryListListener *wrapper)
-{
- return wrapper ? reinterpret_cast<WebCore::TestMediaQueryListListener*>(wrapper->_internal) : 0;
-}
-
-DOMTestMediaQueryListListener *kit(WebCore::TestMediaQueryListListener* value)
-{
- { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
- if (!value)
- return nil;
- if (DOMTestMediaQueryListListener *wrapper = getDOMWrapper(value))
- return [[wrapper retain] autorelease];
- DOMTestMediaQueryListListener *wrapper = [[DOMTestMediaQueryListListener alloc] _init];
- wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
- value->ref();
- addDOMWrapper(wrapper, value);
- return [wrapper autorelease];
-}
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h
deleted file mode 100644
index b1421a3..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMTestMediaQueryListListener.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-namespace WebCore {
- class TestMediaQueryListListener;
-}
-
-WebCore::TestMediaQueryListListener* core(DOMTestMediaQueryListListener *);
-DOMTestMediaQueryListListener *kit(WebCore::TestMediaQueryListListener*);
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h
deleted file mode 100644
index c6ab368..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMObject.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-@class DOMIDBKey;
-@class DOMOptionsObject;
-@class DOMTestObj;
-@class DOMlog;
-@class NSString;
-@protocol DOMEventListener;
-
-enum {
- DOM_CONST_VALUE_0 = 0,
- DOM_CONST_VALUE_1 = 1,
- DOM_CONST_VALUE_2 = 2,
- DOM_CONST_VALUE_4 = 4,
- DOM_CONST_VALUE_8 = 8,
- DOM_CONST_VALUE_9 = -1,
- DOM_CONST_VALUE_10 = "my constant string",
- DOM_CONST_VALUE_11 = 0xffffffff,
- DOM_CONST_VALUE_12 = 0x01,
- DOM_CONST_VALUE_13 = 0X20,
- DOM_CONST_VALUE_14 = 0x1abc
-};
-
-@interface DOMTestObj : DOMObject
-- (int)readOnlyIntAttr;
-- (NSString *)readOnlyStringAttr;
-- (DOMTestObj *)readOnlyTestObjAttr;
-- (short)shortAttr;
-- (void)setShortAttr:(short)newShortAttr;
-- (unsigned short)unsignedShortAttr;
-- (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr;
-- (int)intAttr;
-- (void)setIntAttr:(int)newIntAttr;
-- (long long)longLongAttr;
-- (void)setLongLongAttr:(long long)newLongLongAttr;
-- (unsigned long long)unsignedLongLongAttr;
-- (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr;
-- (NSString *)stringAttr;
-- (void)setStringAttr:(NSString *)newStringAttr;
-- (DOMTestObj *)testObjAttr;
-- (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr;
-- (DOMTestObj *)XMLObjAttr;
-- (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr;
-- (BOOL)create;
-- (void)setCreate:(BOOL)newCreate;
-- (NSString *)reflectedStringAttr;
-- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr;
-- (int)reflectedIntegralAttr;
-- (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr;
-- (unsigned)reflectedUnsignedIntegralAttr;
-- (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr;
-- (BOOL)reflectedBooleanAttr;
-- (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr;
-- (NSString *)reflectedURLAttr;
-- (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr;
-- (NSString *)reflectedNonEmptyURLAttr;
-- (void)setReflectedNonEmptyURLAttr:(NSString *)newReflectedNonEmptyURLAttr;
-- (NSString *)reflectedStringAttr;
-- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr;
-- (int)reflectedCustomIntegralAttr;
-- (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr;
-- (BOOL)reflectedCustomBooleanAttr;
-- (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr;
-- (NSString *)reflectedCustomURLAttr;
-- (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr;
-- (NSString *)reflectedCustomNonEmptyURLAttr;
-- (void)setReflectedCustomNonEmptyURLAttr:(NSString *)newReflectedCustomNonEmptyURLAttr;
-- (int)attrWithGetterException;
-- (void)setAttrWithGetterException:(int)newAttrWithGetterException;
-- (int)attrWithSetterException;
-- (void)setAttrWithSetterException:(int)newAttrWithSetterException;
-- (NSString *)stringAttrWithGetterException;
-- (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException;
-- (NSString *)stringAttrWithSetterException;
-- (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException;
-- (int)customAttr;
-- (void)setCustomAttr:(int)newCustomAttr;
-- (NSString *)scriptStringAttr;
-#if ENABLE(Condition1)
-- (int)conditionalAttr1;
-- (void)setConditionalAttr1:(int)newConditionalAttr1;
-#endif
-#if ENABLE(Condition1) && ENABLE(Condition2)
-- (int)conditionalAttr2;
-- (void)setConditionalAttr2:(int)newConditionalAttr2;
-#endif
-#if ENABLE(Condition1) || ENABLE(Condition2)
-- (int)conditionalAttr3;
-- (void)setConditionalAttr3:(int)newConditionalAttr3;
-#endif
-- (int)descriptionName;
-- (int)idName;
-- (void)setIdName:(int)newIdName;
-- (NSString *)hashName;
-- (void)voidMethod;
-- (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
-- (int)intMethod;
-- (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
-- (DOMTestObj *)objMethod;
-- (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
-- (DOMTestObj *)methodThatRequiresAllArgs:(NSString *)strArg objArg:(DOMTestObj *)objArg;
-- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg;
-- (void)serializedValue:(NSString *)serializedArg;
-- (void)idbKey:(DOMIDBKey *)key;
-- (void)optionsObject:(DOMOptionsObject *)oo ooo:(DOMOptionsObject *)ooo;
-- (void)methodWithException;
-- (void)customMethod;
-- (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg;
-- (void)customArgsAndException:(DOMlog *)intArg;
-- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture;
-- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture;
-- (void)withDynamicFrame;
-- (void)withDynamicFrameAndArg:(int)intArg;
-- (void)withDynamicFrameAndOptionalArg:(int)intArg optionalArg:(int)optionalArg;
-- (void)withDynamicFrameAndUserGesture:(int)intArg;
-- (void)withDynamicFrameAndUserGestureASAD:(int)intArg optionalArg:(int)optionalArg;
-- (void)withScriptStateVoid;
-- (DOMTestObj *)withScriptStateObj;
-- (void)withScriptStateVoidException;
-- (DOMTestObj *)withScriptStateObjException;
-- (void)withScriptExecutionContext;
-- (void)methodWithOptionalArg:(int)opt;
-- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt;
-- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2;
-- (void)classMethod;
-- (int)classMethodWithOptional:(int)arg;
-@end
-
-#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm
deleted file mode 100644
index f43f58a..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm
+++ /dev/null
@@ -1,712 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-#import "DOMInternal.h"
-
-#import "DOMTestObj.h"
-
-#import "DOMBlobInternal.h"
-#import "DOMCSSRuleInternal.h"
-#import "DOMCSSValueInternal.h"
-#import "DOMEventInternal.h"
-#import "DOMIDBKeyInternal.h"
-#import "DOMNodeInternal.h"
-#import "DOMOptionsObjectInternal.h"
-#import "DOMStyleSheetInternal.h"
-#import "DOMTestObjInternal.h"
-#import "DOMlogInternal.h"
-#import "EventListener.h"
-#import "ExceptionHandlers.h"
-#import "HTMLNames.h"
-#import "IDBKey.h"
-#import "JSMainThreadExecState.h"
-#import "KURL.h"
-#import "ObjCEventListener.h"
-#import "OptionsObject.h"
-#import "SerializedScriptValue.h"
-#import "TestObj.h"
-#import "ThreadCheck.h"
-#import "WebCoreObjCExtras.h"
-#import "WebScriptObjectPrivate.h"
-#import "log.h"
-#import <wtf/GetPtr.h>
-
-#define IMPL reinterpret_cast<WebCore::TestObj*>(_internal)
-
-@implementation DOMTestObj
-
-- (void)dealloc
-{
- if (WebCoreObjCScheduleDeallocateOnMainThread([DOMTestObj class], self))
- return;
-
- if (_internal)
- IMPL->deref();
- [super dealloc];
-}
-
-- (void)finalize
-{
- if (_internal)
- IMPL->deref();
- [super finalize];
-}
-
-- (int)readOnlyIntAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->readOnlyIntAttr();
-}
-
-- (NSString *)readOnlyStringAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->readOnlyStringAttr();
-}
-
-- (DOMTestObj *)readOnlyTestObjAttr
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->readOnlyTestObjAttr()));
-}
-
-- (short)shortAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->shortAttr();
-}
-
-- (void)setShortAttr:(short)newShortAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setShortAttr(newShortAttr);
-}
-
-- (unsigned short)unsignedShortAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->unsignedShortAttr();
-}
-
-- (void)setUnsignedShortAttr:(unsigned short)newUnsignedShortAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setUnsignedShortAttr(newUnsignedShortAttr);
-}
-
-- (int)intAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->intAttr();
-}
-
-- (void)setIntAttr:(int)newIntAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setIntAttr(newIntAttr);
-}
-
-- (long long)longLongAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->longLongAttr();
-}
-
-- (void)setLongLongAttr:(long long)newLongLongAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setLongLongAttr(newLongLongAttr);
-}
-
-- (unsigned long long)unsignedLongLongAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->unsignedLongLongAttr();
-}
-
-- (void)setUnsignedLongLongAttr:(unsigned long long)newUnsignedLongLongAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setUnsignedLongLongAttr(newUnsignedLongLongAttr);
-}
-
-- (NSString *)stringAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->stringAttr();
-}
-
-- (void)setStringAttr:(NSString *)newStringAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setStringAttr(newStringAttr);
-}
-
-- (DOMTestObj *)testObjAttr
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->testObjAttr()));
-}
-
-- (void)setTestObjAttr:(DOMTestObj *)newTestObjAttr
-{
- WebCore::JSMainThreadNullState state;
- ASSERT(newTestObjAttr);
-
- IMPL->setTestObjAttr(core(newTestObjAttr));
-}
-
-- (DOMTestObj *)XMLObjAttr
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->xmlObjAttr()));
-}
-
-- (void)setXMLObjAttr:(DOMTestObj *)newXMLObjAttr
-{
- WebCore::JSMainThreadNullState state;
- ASSERT(newXMLObjAttr);
-
- IMPL->setXMLObjAttr(core(newXMLObjAttr));
-}
-
-- (BOOL)create
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->isCreate();
-}
-
-- (void)setCreate:(BOOL)newCreate
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setCreate(newCreate);
-}
-
-- (NSString *)reflectedStringAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr);
-}
-
-- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, newReflectedStringAttr);
-}
-
-- (int)reflectedIntegralAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr);
-}
-
-- (void)setReflectedIntegralAttr:(int)newReflectedIntegralAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, newReflectedIntegralAttr);
-}
-
-- (unsigned)reflectedUnsignedIntegralAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr);
-}
-
-- (void)setReflectedUnsignedIntegralAttr:(unsigned)newReflectedUnsignedIntegralAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, newReflectedUnsignedIntegralAttr);
-}
-
-- (BOOL)reflectedBooleanAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr);
-}
-
-- (void)setReflectedBooleanAttr:(BOOL)newReflectedBooleanAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, newReflectedBooleanAttr);
-}
-
-- (NSString *)reflectedURLAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr);
-}
-
-- (void)setReflectedURLAttr:(NSString *)newReflectedURLAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, newReflectedURLAttr);
-}
-
-- (NSString *)reflectedNonEmptyURLAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr);
-}
-
-- (void)setReflectedNonEmptyURLAttr:(NSString *)newReflectedNonEmptyURLAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, newReflectedNonEmptyURLAttr);
-}
-
-- (NSString *)reflectedStringAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr);
-}
-
-- (void)setReflectedStringAttr:(NSString *)newReflectedStringAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, newReflectedStringAttr);
-}
-
-- (int)reflectedCustomIntegralAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr);
-}
-
-- (void)setReflectedCustomIntegralAttr:(int)newReflectedCustomIntegralAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, newReflectedCustomIntegralAttr);
-}
-
-- (BOOL)reflectedCustomBooleanAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr);
-}
-
-- (void)setReflectedCustomBooleanAttr:(BOOL)newReflectedCustomBooleanAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, newReflectedCustomBooleanAttr);
-}
-
-- (NSString *)reflectedCustomURLAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr);
-}
-
-- (void)setReflectedCustomURLAttr:(NSString *)newReflectedCustomURLAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, newReflectedCustomURLAttr);
-}
-
-- (NSString *)reflectedCustomNonEmptyURLAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr);
-}
-
-- (void)setReflectedCustomNonEmptyURLAttr:(NSString *)newReflectedCustomNonEmptyURLAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, newReflectedCustomNonEmptyURLAttr);
-}
-
-- (int)attrWithGetterException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- int result = IMPL->attrWithGetterException(ec);
- WebCore::raiseOnDOMError(ec);
- return result;
-}
-
-- (void)setAttrWithGetterException:(int)newAttrWithGetterException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->setAttrWithGetterException(newAttrWithGetterException, ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (int)attrWithSetterException
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->attrWithSetterException();
-}
-
-- (void)setAttrWithSetterException:(int)newAttrWithSetterException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->setAttrWithSetterException(newAttrWithSetterException, ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (NSString *)stringAttrWithGetterException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- NSString *result = IMPL->stringAttrWithGetterException(ec);
- WebCore::raiseOnDOMError(ec);
- return result;
-}
-
-- (void)setStringAttrWithGetterException:(NSString *)newStringAttrWithGetterException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->setStringAttrWithGetterException(newStringAttrWithGetterException, ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (NSString *)stringAttrWithSetterException
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->stringAttrWithSetterException();
-}
-
-- (void)setStringAttrWithSetterException:(NSString *)newStringAttrWithSetterException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->setStringAttrWithSetterException(newStringAttrWithSetterException, ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (int)customAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->customAttr();
-}
-
-- (void)setCustomAttr:(int)newCustomAttr
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setCustomAttr(newCustomAttr);
-}
-
-- (NSString *)scriptStringAttr
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->scriptStringAttr();
-}
-
-#if ENABLE(Condition1)
-- (int)conditionalAttr1
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->conditionalAttr1();
-}
-
-- (void)setConditionalAttr1:(int)newConditionalAttr1
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setConditionalAttr1(newConditionalAttr1);
-}
-#endif
-
-#if ENABLE(Condition1) && ENABLE(Condition2)
-- (int)conditionalAttr2
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->conditionalAttr2();
-}
-
-- (void)setConditionalAttr2:(int)newConditionalAttr2
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setConditionalAttr2(newConditionalAttr2);
-}
-#endif
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-- (int)conditionalAttr3
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->conditionalAttr3();
-}
-
-- (void)setConditionalAttr3:(int)newConditionalAttr3
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setConditionalAttr3(newConditionalAttr3);
-}
-#endif
-
-- (int)descriptionName
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->description();
-}
-
-- (int)idName
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->id();
-}
-
-- (void)setIdName:(int)newIdName
-{
- WebCore::JSMainThreadNullState state;
- IMPL->setId(newIdName);
-}
-
-- (NSString *)hashName
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->hash();
-}
-
-- (void)voidMethod
-{
- WebCore::JSMainThreadNullState state;
- IMPL->voidMethod();
-}
-
-- (void)voidMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->voidMethodWithArgs(intArg, strArg, core(objArg));
-}
-
-- (int)intMethod
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->intMethod();
-}
-
-- (int)intMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->intMethodWithArgs(intArg, strArg, core(objArg));
-}
-
-- (DOMTestObj *)objMethod
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->objMethod()));
-}
-
-- (DOMTestObj *)objMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->objMethodWithArgs(intArg, strArg, core(objArg))));
-}
-
-- (DOMTestObj *)methodThatRequiresAllArgs:(NSString *)strArg objArg:(DOMTestObj *)objArg
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->methodThatRequiresAllArgs(strArg, core(objArg))));
-}
-
-- (DOMTestObj *)methodThatRequiresAllArgsAndThrows:(NSString *)strArg objArg:(DOMTestObj *)objArg
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- DOMTestObj *result = kit(WTF::getPtr(IMPL->methodThatRequiresAllArgsAndThrows(strArg, core(objArg), ec)));
- WebCore::raiseOnDOMError(ec);
- return result;
-}
-
-- (void)serializedValue:(NSString *)serializedArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->serializedValue(WebCore::SerializedScriptValue::create(WTF::String(serializedArg)));
-}
-
-- (void)idbKey:(DOMIDBKey *)key
-{
- WebCore::JSMainThreadNullState state;
- IMPL->idbKey(core(key));
-}
-
-- (void)optionsObject:(DOMOptionsObject *)oo ooo:(DOMOptionsObject *)ooo
-{
- WebCore::JSMainThreadNullState state;
- IMPL->optionsObject(core(oo), core(ooo));
-}
-
-- (void)methodWithException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->methodWithException(ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (void)customMethod
-{
- WebCore::JSMainThreadNullState state;
- IMPL->customMethod();
-}
-
-- (void)customMethodWithArgs:(int)intArg strArg:(NSString *)strArg objArg:(DOMTestObj *)objArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->customMethodWithArgs(intArg, strArg, core(objArg));
-}
-
-- (void)customArgsAndException:(DOMlog *)intArg
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->customArgsAndException(core(intArg), ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
-{
- WebCore::JSMainThreadNullState state;
- RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
- IMPL->addEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
-}
-
-- (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture
-{
- WebCore::JSMainThreadNullState state;
- RefPtr<WebCore::EventListener> nativeEventListener = WebCore::ObjCEventListener::wrap(listener);
- IMPL->removeEventListener(type, WTF::getPtr(nativeEventListener), useCapture);
-}
-
-- (void)withDynamicFrame
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withDynamicFrame();
-}
-
-- (void)withDynamicFrameAndArg:(int)intArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withDynamicFrameAndArg(intArg);
-}
-
-- (void)withDynamicFrameAndOptionalArg:(int)intArg optionalArg:(int)optionalArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withDynamicFrameAndOptionalArg(intArg, optionalArg);
-}
-
-- (void)withDynamicFrameAndUserGesture:(int)intArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withDynamicFrameAndUserGesture(intArg);
-}
-
-- (void)withDynamicFrameAndUserGestureASAD:(int)intArg optionalArg:(int)optionalArg
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withDynamicFrameAndUserGestureASAD(intArg, optionalArg);
-}
-
-- (void)withScriptStateVoid
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withScriptStateVoid();
-}
-
-- (DOMTestObj *)withScriptStateObj
-{
- WebCore::JSMainThreadNullState state;
- return kit(WTF::getPtr(IMPL->withScriptStateObj()));
-}
-
-- (void)withScriptStateVoidException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- IMPL->withScriptStateVoidException(ec);
- WebCore::raiseOnDOMError(ec);
-}
-
-- (DOMTestObj *)withScriptStateObjException
-{
- WebCore::JSMainThreadNullState state;
- WebCore::ExceptionCode ec = 0;
- DOMTestObj *result = kit(WTF::getPtr(IMPL->withScriptStateObjException(ec)));
- WebCore::raiseOnDOMError(ec);
- return result;
-}
-
-- (void)withScriptExecutionContext
-{
- WebCore::JSMainThreadNullState state;
- IMPL->withScriptExecutionContext();
-}
-
-- (void)methodWithOptionalArg:(int)opt
-{
- WebCore::JSMainThreadNullState state;
- IMPL->methodWithOptionalArg(opt);
-}
-
-- (void)methodWithNonOptionalArgAndOptionalArg:(int)nonOpt opt:(int)opt
-{
- WebCore::JSMainThreadNullState state;
- IMPL->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
-}
-
-- (void)methodWithNonOptionalArgAndTwoOptionalArgs:(int)nonOpt opt1:(int)opt1 opt2:(int)opt2
-{
- WebCore::JSMainThreadNullState state;
- IMPL->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
-}
-
-- (void)classMethod
-{
- WebCore::JSMainThreadNullState state;
- IMPL->classMethod();
-}
-
-- (int)classMethodWithOptional:(int)arg
-{
- WebCore::JSMainThreadNullState state;
- return IMPL->classMethodWithOptional(arg);
-}
-
-@end
-
-WebCore::TestObj* core(DOMTestObj *wrapper)
-{
- return wrapper ? reinterpret_cast<WebCore::TestObj*>(wrapper->_internal) : 0;
-}
-
-DOMTestObj *kit(WebCore::TestObj* value)
-{
- { DOM_ASSERT_MAIN_THREAD(); WebCoreThreadViolationCheckRoundOne(); };
- if (!value)
- return nil;
- if (DOMTestObj *wrapper = getDOMWrapper(value))
- return [[wrapper retain] autorelease];
- DOMTestObj *wrapper = [[DOMTestObj alloc] _init];
- wrapper->_internal = reinterpret_cast<DOMObjectInternal*>(value);
- value->ref();
- addDOMWrapper(wrapper, value);
- return [wrapper autorelease];
-}
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h b/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h
deleted file mode 100644
index c24ea84..0000000
--- a/WebCore/bindings/scripts/test/ObjC/DOMTestObjInternal.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * This file is part of the WebKit open source project.
- * This file has been generated by generate-bindings.pl. DO NOT MODIFY!
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import <WebCore/DOMTestObj.h>
-
-#if WEBKIT_VERSION_MAX_ALLOWED >= WEBKIT_VERSION_LATEST
-
-namespace WebCore {
- class TestObj;
-}
-
-WebCore::TestObj* core(DOMTestObj *);
-DOMTestObj *kit(WebCore::TestObj*);
-
-#endif
diff --git a/WebCore/bindings/scripts/test/TestCallback.idl b/WebCore/bindings/scripts/test/TestCallback.idl
deleted file mode 100644
index 25db4c6..0000000
--- a/WebCore/bindings/scripts/test/TestCallback.idl
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary formstrArg, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIEstrArg, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// This IDL file is for testing the bindings code generator with an interface
-// that has the "Callback" attribute and for tracking changes in its ouput.
-module test {
- interface [
- Conditional=DATABASE,
- Callback
- ] TestCallback {
- boolean callbackWithClass1Param(in Class1 class1Param);
- boolean callbackWithClass2Param(in Class2 class2Param, in DOMString strArg);
- long callbackWithNonBoolReturnType(in Class3 class3Param);
- [Custom] long customCallback(in Class5 class5Param, in Class6 class6Param);
- };
-}
diff --git a/WebCore/bindings/scripts/test/TestInterface.idl b/WebCore/bindings/scripts/test/TestInterface.idl
deleted file mode 100644
index 1f0aa18..0000000
--- a/WebCore/bindings/scripts/test/TestInterface.idl
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary formstrArg, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIEstrArg, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// This IDL file is for testing the bindings code generator and for tracking
-// changes in its ouput.
-module test {
- interface [
- Conditional=Condition1|Condition2,
- CanBeConstructed,
- CallWith=ScriptExecutionContext
- ] TestInterface {
- };
-}
diff --git a/WebCore/bindings/scripts/test/TestMediaQueryListListener.idl b/WebCore/bindings/scripts/test/TestMediaQueryListListener.idl
deleted file mode 100644
index 536393b..0000000
--- a/WebCore/bindings/scripts/test/TestMediaQueryListListener.idl
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// This IDL file is for testing the bindings code generator with an interface
-// that has methods receiving a parameter of the type MediaQueryListListener.
-module test {
- interface TestMediaQueryListListener {
- void method(in MediaQueryListListener listener);
- };
-}
diff --git a/WebCore/bindings/scripts/test/TestObj.idl b/WebCore/bindings/scripts/test/TestObj.idl
deleted file mode 100644
index a4eff26..0000000
--- a/WebCore/bindings/scripts/test/TestObj.idl
+++ /dev/null
@@ -1,175 +0,0 @@
-/*
- * Copyright (C) 2009 Google Inc. All rights reserved.
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary formstrArg, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIEstrArg, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// This IDL file is for testing the bindings code generator and for tracking
-// changes in its ouput.
-module test {
- interface TestObj {
- // Attributes
- readonly attribute long readOnlyIntAttr;
- readonly attribute DOMString readOnlyStringAttr;
- readonly attribute TestObj readOnlyTestObjAttr;
- attribute short shortAttr;
- attribute unsigned short unsignedShortAttr;
- attribute long intAttr;
- attribute long long longLongAttr;
- attribute unsigned long long unsignedLongLongAttr;
- attribute DOMString stringAttr;
- attribute TestObj testObjAttr;
-
- JS, V8
- // WK_ucfirst, WK_lcfirst exceptional cases.
- attribute TestObj XMLObjAttr;
- attribute boolean create;
-
- // Reflected DOM attributes
- attribute [Reflect] DOMString reflectedStringAttr;
- attribute [Reflect] long reflectedIntegralAttr;
- attribute [Reflect] unsigned long reflectedUnsignedIntegralAttr;
- attribute [Reflect] boolean reflectedBooleanAttr;
- attribute [Reflect, URL] DOMString reflectedURLAttr;
- attribute [Reflect, NonEmpty, URL] DOMString reflectedNonEmptyURLAttr;
- attribute [Reflect=customContentStringAttr] DOMString reflectedStringAttr;
- attribute [Reflect=customContentIntegralAttr] long reflectedCustomIntegralAttr;
- attribute [Reflect=customContentBooleanAttr] boolean reflectedCustomBooleanAttr;
- attribute [Reflect=customContentURLAttr, URL] DOMString reflectedCustomURLAttr;
- attribute [Reflect=customContentNonEmptyURLAttr, NonEmpty, URL] DOMString reflectedCustomNonEmptyURLAttr;
-
- // Methods
- void voidMethod();
- void voidMethodWithArgs(in long intArg, in DOMString strArg, in TestObj objArg);
- long intMethod();
- long intMethodWithArgs(in long intArg, in DOMString strArg, in TestObj objArg);
- TestObj objMethod();
- TestObj objMethodWithArgs(in long intArg, in DOMString strArg, in TestObj objArg);
-
- [RequiresAllArguments] TestObj methodThatRequiresAllArgs(in DOMString strArg, in TestObj objArg);
- [RequiresAllArguments=Raise] TestObj methodThatRequiresAllArgsAndThrows(in DOMString strArg, in TestObj objArg)
- raises(DOMException);
-
- void serializedValue(in SerializedScriptValue serializedArg);
- void idbKey(in IDBKey key);
- void optionsObject(in OptionsObject oo, in [Optional] OptionsObject ooo);
-
- // Exceptions
- void methodWithException() raises(DOMException);
- attribute long attrWithGetterException getter raises(DOMException);
- attribute long attrWithSetterException setter raises(DOMException);
- attribute DOMString stringAttrWithGetterException getter raises(DOMException);
- attribute DOMString stringAttrWithSetterException setter raises(DOMException);
-
- // 'Custom' extended attribute
- attribute [Custom] long customAttr;
- [Custom] void customMethod();
- [Custom] void customMethodWithArgs(in long intArg, in DOMString strArg, in TestObj objArg);
-
- [CustomArgumentHandling] void customArgsAndException(in log intArg)
- raises(DOMException);
-
- void addEventListener(in DOMString type,
- in EventListener listener,
- in boolean useCapture);
- void removeEventListener(in DOMString type,
- in EventListener listener,
- in boolean useCapture);
-
- // 'CallWith' extended attribute
- [CallWith=DynamicFrame] void withDynamicFrame();
- [CallWith=DynamicFrame] void withDynamicFrameAndArg(in long intArg);
- [CallWith=DynamicFrame] void withDynamicFrameAndOptionalArg(in long intArg, in [Optional] long optionalArg);
- [NeedsUserGestureCheck, CallWith=DynamicFrame] void withDynamicFrameAndUserGesture(in long intArg);
- [NeedsUserGestureCheck, CallWith=DynamicFrame] void withDynamicFrameAndUserGestureASAD(in long intArg, in [Optional] long optionalArg);
- [CallWith=ScriptState] void withScriptStateVoid();
- [CallWith=ScriptState] TestObj withScriptStateObj();
- [CallWith=ScriptState] void withScriptStateVoidException()
- raises(DOMException);
- [CallWith=ScriptState] TestObj withScriptStateObjException()
- raises(DOMException);
- [CallWith=ScriptExecutionContext] void withScriptExecutionContext();
-
- // 'Optional' extended attribute
- void methodWithOptionalArg(in [Optional] long opt);
- void methodWithNonOptionalArgAndOptionalArg(in long nonOpt, in [Optional] long opt);
- void methodWithNonOptionalArgAndTwoOptionalArgs(in long nonOpt, in [Optional] long opt1, in long opt2);
-
-#if defined(TESTING_V8) || defined(TESTING_JS)
- // 'Callback' extended attribute
- void methodWithCallbackArg(in [Callback] TestCallback callback);
- void methodWithNonCallbackArgAndCallbackArg(in long nonCallback, in [Callback] TestCallback callback);
- void methodWithCallbackAndOptionalArg(in [Callback, Optional] TestCallback callback);
-#endif
-
- // 'ConvertScriptString' extended attribute
- readonly attribute [ConvertScriptString] DOMString scriptStringAttr;
-
- // 'Conditional' extended attribute
- attribute [Conditional=Condition1] long conditionalAttr1;
- attribute [Conditional=Condition1&Condition2] long conditionalAttr2;
- attribute [Conditional=Condition1|Condition2] long conditionalAttr3;
-
-#if defined(TESTING_V8) || defined(TESTING_JS)
- // Overloads
- void overloadedMethod(in TestObj objArg, in DOMString strArg);
- void overloadedMethod(in TestObj objArg, in [Optional] long intArg);
- void overloadedMethod(in DOMString strArg);
- void overloadedMethod(in long intArg);
- void overloadedMethod(in [Callback] TestCallback callback);
-#endif
-
- // Class methods within JavaScript (like what's used for IDBKeyRange).
- [ClassMethod] void classMethod();
- [ClassMethod] long classMethodWithOptional(in [Optional] long arg);
-
-#if defined(TESTING_V8)
- // 'EnabledAtRuntime' methods and attributes.
- [EnabledAtRuntime] void enabledAtRuntimeMethod1(in int intArg);
- [EnabledAtRuntime=FeatureName] void enabledAtRuntimeMethod2(in int intArg);
- attribute [EnabledAtRuntime] long enabledAtRuntimeAttr1;
- attribute [EnabledAtRuntime=FeatureName] long enabledAtRuntimeAttr2;
-#endif
-
- // ObjectiveC reserved words.
- readonly attribute long description;
- attribute long id;
- readonly attribute DOMString hash;
-
- // Check constants and enums.
- const unsigned short CONST_VALUE_0 = 0;
- const unsigned short CONST_VALUE_1 = 1;
- const unsigned short CONST_VALUE_2 = 2;
- const unsigned short CONST_VALUE_4 = 4;
- const unsigned short CONST_VALUE_8 = 8;
- const short CONST_VALUE_9 = -1;
- const DOMString CONST_VALUE_10 = "my constant string";
- const unsigned short CONST_VALUE_11 = 0xffffffff;
- const unsigned short CONST_VALUE_12 = 0x01;
- const unsigned short CONST_VALUE_13 = 0X20;
- const unsigned short CONST_VALUE_14 = 0x1abc;
- };
-}
diff --git a/WebCore/bindings/scripts/test/V8/V8TestCallback.cpp b/WebCore/bindings/scripts/test/V8/V8TestCallback.cpp
deleted file mode 100644
index c286c24..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestCallback.cpp
+++ /dev/null
@@ -1,113 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#include "config.h"
-#include "V8TestCallback.h"
-
-#if ENABLE(DATABASE)
-
-#include "ScriptExecutionContext.h"
-#include "V8Class1.h"
-#include "V8Class2.h"
-#include "V8CustomVoidCallback.h"
-#include "V8DOMString.h"
-#include "V8Proxy.h"
-
-#include <wtf/Assertions.h>
-
-namespace WebCore {
-
-V8TestCallback::V8TestCallback(v8::Local<v8::Object> callback, ScriptExecutionContext* context)
- : ActiveDOMCallback(context)
- , m_callback(v8::Persistent<v8::Object>::New(callback))
- , m_worldContext(UseCurrentWorld)
-{
-}
-
-V8TestCallback::~V8TestCallback()
-{
- m_callback.Dispose();
-}
-
-// Functions
-
-bool V8TestCallback::callbackWithClass1Param(Class1* class1Param)
-{
- if (!canInvokeCallback())
- return true;
-
- v8::HandleScope handleScope;
-
- v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_worldContext);
- if (v8Context.IsEmpty())
- return true;
-
- v8::Context::Scope scope(v8Context);
-
- v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param);
- if (class1ParamHandle.IsEmpty()) {
- CRASH();
- return true;
- }
-
- v8::Handle<v8::Value> argv[] = {
- class1ParamHandle
- };
-
- bool callbackReturnValue = false;
- return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecutionContext());
-}
-
-bool V8TestCallback::callbackWithClass2Param(Class2* class2Param, const String& strArg)
-{
- if (!canInvokeCallback())
- return true;
-
- v8::HandleScope handleScope;
-
- v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_worldContext);
- if (v8Context.IsEmpty())
- return true;
-
- v8::Context::Scope scope(v8Context);
-
- v8::Handle<v8::Value> class2ParamHandle = toV8(class2Param);
- if (class2ParamHandle.IsEmpty()) {
- CRASH();
- return true;
- }
- v8::Handle<v8::Value> strArgHandle = toV8(strArg);
- if (strArgHandle.IsEmpty()) {
- CRASH();
- return true;
- }
-
- v8::Handle<v8::Value> argv[] = {
- class2ParamHandle,
- strArgHandle
- };
-
- bool callbackReturnValue = false;
- return !invokeCallback(m_callback, 2, argv, callbackReturnValue, scriptExecutionContext());
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/scripts/test/V8/V8TestCallback.h b/WebCore/bindings/scripts/test/V8/V8TestCallback.h
deleted file mode 100644
index a105d75..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestCallback.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#if ENABLE(DATABASE)
-
-#ifndef V8TestCallback_h
-#define V8TestCallback_h
-
-#include "ActiveDOMCallback.h"
-#include "TestCallback.h"
-#include "WorldContextHandle.h"
-#include <v8.h>
-#include <wtf/Forward.h>
-
-namespace WebCore {
-
-class ScriptExecutionContext;
-
-class V8TestCallback : public TestCallback, public ActiveDOMCallback {
-public:
- static PassRefPtr<V8TestCallback> create(v8::Local<v8::Value> value, ScriptExecutionContext* context)
- {
- ASSERT(value->IsObject());
- ASSERT(context);
- return adoptRef(new V8TestCallback(value->ToObject(), context));
- }
-
- virtual ~V8TestCallback();
-
- // Functions
- virtual bool callbackWithClass1Param(Class1* class1Param);
- virtual bool callbackWithClass2Param(Class2* class2Param, const String& strArg);
- COMPILE_ASSERT(false) virtual int callbackWithNonBoolReturnType(Class3* class3Param);
- virtual int customCallback(Class5* class5Param, Class6* class6Param);
-
-private:
- V8TestCallback(v8::Local<v8::Object>, ScriptExecutionContext*);
-
- v8::Persistent<v8::Object> m_callback;
- WorldContextHandle m_worldContext;
-};
-
-}
-
-#endif // V8TestCallback_h
-
-#endif // ENABLE(DATABASE)
diff --git a/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp b/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp
deleted file mode 100644
index 267f1f0..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#include "config.h"
-#include "V8TestInterface.h"
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#include "RuntimeEnabledFeatures.h"
-#include "V8Binding.h"
-#include "V8BindingState.h"
-#include "V8DOMWrapper.h"
-#include "V8IsolatedContext.h"
-#include "V8Proxy.h"
-
-namespace WebCore {
-
-WrapperTypeInfo V8TestInterface::info = { V8TestInterface::GetTemplate, V8TestInterface::derefObject, 0 };
-
-namespace TestInterfaceInternal {
-
-template <typename T> void V8_USE(T) { }
-
-} // namespace TestInterfaceInternal
-
-v8::Handle<v8::Value> V8TestInterface::constructorCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestInterface.Contructor");
- return V8Proxy::constructDOMObjectWithScriptExecutionContext<TestInterface>(args, &info);
-}
-static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8::Persistent<v8::FunctionTemplate> desc)
-{
- v8::Local<v8::Signature> defaultSignature = configureTemplate(desc, "TestInterface", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount,
- 0, 0,
- 0, 0);
- desc->SetCallHandler(V8TestInterface::constructorCallback);
-
-
- // Custom toString template
- desc->Set(getToStringName(), getToStringTemplate());
- return desc;
-}
-
-v8::Persistent<v8::FunctionTemplate> V8TestInterface::GetRawTemplate()
-{
- static v8::Persistent<v8::FunctionTemplate> V8TestInterfaceRawCache = createRawTemplate();
- return V8TestInterfaceRawCache;
-}
-
-v8::Persistent<v8::FunctionTemplate> V8TestInterface::GetTemplate()
-{
- static v8::Persistent<v8::FunctionTemplate> V8TestInterfaceCache = ConfigureV8TestInterfaceTemplate(GetRawTemplate());
- return V8TestInterfaceCache;
-}
-
-bool V8TestInterface::HasInstance(v8::Handle<v8::Value> value)
-{
- return GetRawTemplate()->HasInstance(value);
-}
-
-
-v8::Handle<v8::Object> V8TestInterface::wrapSlow(TestInterface* impl)
-{
- v8::Handle<v8::Object> wrapper;
- V8Proxy* proxy = 0;
- wrapper = V8DOMWrapper::instantiateV8Object(proxy, &info, impl);
- if (wrapper.IsEmpty())
- return wrapper;
-
- impl->ref();
- getDOMObjectMap().set(impl, v8::Persistent<v8::Object>::New(wrapper));
- return wrapper;
-}
-
-void V8TestInterface::derefObject(void* object)
-{
- static_cast<TestInterface*>(object)->deref();
-}
-
-} // namespace WebCore
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
diff --git a/WebCore/bindings/scripts/test/V8/V8TestInterface.h b/WebCore/bindings/scripts/test/V8/V8TestInterface.h
deleted file mode 100644
index c1e319b..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestInterface.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-#ifndef V8TestInterface_h
-#define V8TestInterface_h
-
-#include "TestInterface.h"
-#include "V8DOMWrapper.h"
-#include "WrapperTypeInfo.h"
-#include "wtf/text/StringHash.h"
-#include <v8.h>
-#include <wtf/HashMap.h>
-
-namespace WebCore {
-
-class V8TestInterface {
-
-public:
- static bool HasInstance(v8::Handle<v8::Value> value);
- static v8::Persistent<v8::FunctionTemplate> GetRawTemplate();
- static v8::Persistent<v8::FunctionTemplate> GetTemplate();
- static TestInterface* toNative(v8::Handle<v8::Object> object)
- {
- return reinterpret_cast<TestInterface*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
- }
- inline static v8::Handle<v8::Object> wrap(TestInterface*);
- static void derefObject(void*);
- static WrapperTypeInfo info;
- static v8::Handle<v8::Value> constructorCallback(const v8::Arguments& args);
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
-private:
- static v8::Handle<v8::Object> wrapSlow(TestInterface*);
-};
-
-
-v8::Handle<v8::Object> V8TestInterface::wrap(TestInterface* impl)
-{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
- if (!wrapper.IsEmpty())
- return wrapper;
- return V8TestInterface::wrapSlow(impl);
-}
-
-inline v8::Handle<v8::Value> toV8(TestInterface* impl)
-{
- if (!impl)
- return v8::Null();
- return V8TestInterface::wrap(impl);
-}
-inline v8::Handle<v8::Value> toV8(PassRefPtr< TestInterface > impl)
-{
- return toV8(impl.get());
-}
-}
-
-#endif // V8TestInterface_h
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
-
diff --git a/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp
deleted file mode 100644
index ab9e6db..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#include "config.h"
-#include "V8TestMediaQueryListListener.h"
-
-#include "ExceptionCode.h"
-#include "MediaQueryListListener.h"
-#include "RuntimeEnabledFeatures.h"
-#include "V8Binding.h"
-#include "V8BindingMacros.h"
-#include "V8BindingState.h"
-#include "V8DOMWrapper.h"
-#include "V8IsolatedContext.h"
-#include "V8Proxy.h"
-
-namespace WebCore {
-
-WrapperTypeInfo V8TestMediaQueryListListener::info = { V8TestMediaQueryListListener::GetTemplate, V8TestMediaQueryListListener::derefObject, 0 };
-
-namespace TestMediaQueryListListenerInternal {
-
-template <typename T> void V8_USE(T) { }
-
-static v8::Handle<v8::Value> methodCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestMediaQueryListListener.method");
- TestMediaQueryListListener* imp = V8TestMediaQueryListListener::toNative(args.Holder());
- EXCEPTION_BLOCK(RefPtr<MediaQueryListListener>, listener, MediaQueryListListener::create(args[0]));
- imp->method(listener);
- return v8::Handle<v8::Value>();
-}
-
-} // namespace TestMediaQueryListListenerInternal
-
-static const BatchedCallback TestMediaQueryListListenerCallbacks[] = {
- {"method", TestMediaQueryListListenerInternal::methodCallback},
-};
-static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestMediaQueryListListenerTemplate(v8::Persistent<v8::FunctionTemplate> desc)
-{
- v8::Local<v8::Signature> defaultSignature = configureTemplate(desc, "TestMediaQueryListListener", v8::Persistent<v8::FunctionTemplate>(), V8TestMediaQueryListListener::internalFieldCount,
- 0, 0,
- TestMediaQueryListListenerCallbacks, WTF_ARRAY_LENGTH(TestMediaQueryListListenerCallbacks));
- v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
- v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
-
-
- // Custom toString template
- desc->Set(getToStringName(), getToStringTemplate());
- return desc;
-}
-
-v8::Persistent<v8::FunctionTemplate> V8TestMediaQueryListListener::GetRawTemplate()
-{
- static v8::Persistent<v8::FunctionTemplate> V8TestMediaQueryListListenerRawCache = createRawTemplate();
- return V8TestMediaQueryListListenerRawCache;
-}
-
-v8::Persistent<v8::FunctionTemplate> V8TestMediaQueryListListener::GetTemplate()
-{
- static v8::Persistent<v8::FunctionTemplate> V8TestMediaQueryListListenerCache = ConfigureV8TestMediaQueryListListenerTemplate(GetRawTemplate());
- return V8TestMediaQueryListListenerCache;
-}
-
-bool V8TestMediaQueryListListener::HasInstance(v8::Handle<v8::Value> value)
-{
- return GetRawTemplate()->HasInstance(value);
-}
-
-
-v8::Handle<v8::Object> V8TestMediaQueryListListener::wrapSlow(TestMediaQueryListListener* impl)
-{
- v8::Handle<v8::Object> wrapper;
- V8Proxy* proxy = 0;
- wrapper = V8DOMWrapper::instantiateV8Object(proxy, &info, impl);
- if (wrapper.IsEmpty())
- return wrapper;
-
- impl->ref();
- getDOMObjectMap().set(impl, v8::Persistent<v8::Object>::New(wrapper));
- return wrapper;
-}
-
-void V8TestMediaQueryListListener::derefObject(void* object)
-{
- static_cast<TestMediaQueryListListener*>(object)->deref();
-}
-
-} // namespace WebCore
diff --git a/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h b/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h
deleted file mode 100644
index 908d9cd..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#ifndef V8TestMediaQueryListListener_h
-#define V8TestMediaQueryListListener_h
-
-#include "TestMediaQueryListListener.h"
-#include "V8DOMWrapper.h"
-#include "WrapperTypeInfo.h"
-#include "wtf/text/StringHash.h"
-#include <v8.h>
-#include <wtf/HashMap.h>
-
-namespace WebCore {
-
-class V8TestMediaQueryListListener {
-
-public:
- static bool HasInstance(v8::Handle<v8::Value> value);
- static v8::Persistent<v8::FunctionTemplate> GetRawTemplate();
- static v8::Persistent<v8::FunctionTemplate> GetTemplate();
- static TestMediaQueryListListener* toNative(v8::Handle<v8::Object> object)
- {
- return reinterpret_cast<TestMediaQueryListListener*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
- }
- inline static v8::Handle<v8::Object> wrap(TestMediaQueryListListener*);
- static void derefObject(void*);
- static WrapperTypeInfo info;
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
-private:
- static v8::Handle<v8::Object> wrapSlow(TestMediaQueryListListener*);
-};
-
-
-v8::Handle<v8::Object> V8TestMediaQueryListListener::wrap(TestMediaQueryListListener* impl)
-{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
- if (!wrapper.IsEmpty())
- return wrapper;
- return V8TestMediaQueryListListener::wrapSlow(impl);
-}
-
-inline v8::Handle<v8::Value> toV8(TestMediaQueryListListener* impl)
-{
- if (!impl)
- return v8::Null();
- return V8TestMediaQueryListListener::wrap(impl);
-}
-inline v8::Handle<v8::Value> toV8(PassRefPtr< TestMediaQueryListListener > impl)
-{
- return toV8(impl.get());
-}
-}
-
-#endif // V8TestMediaQueryListListener_h
diff --git a/WebCore/bindings/scripts/test/V8/V8TestObj.cpp b/WebCore/bindings/scripts/test/V8/V8TestObj.cpp
deleted file mode 100644
index 7a759a3..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestObj.cpp
+++ /dev/null
@@ -1,1392 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#include "config.h"
-#include "V8TestObj.h"
-
-#include "ExceptionCode.h"
-#include "HTMLNames.h"
-#include "IDBBindingUtilities.h"
-#include "IDBKey.h"
-#include "OptionsObject.h"
-#include "RuntimeEnabledFeatures.h"
-#include "ScriptArguments.h"
-#include "ScriptCallStack.h"
-#include "ScriptCallStackFactory.h"
-#include "SerializedScriptValue.h"
-#include "V8Binding.h"
-#include "V8BindingMacros.h"
-#include "V8BindingState.h"
-#include "V8DOMWrapper.h"
-#include "V8IsolatedContext.h"
-#include "V8Proxy.h"
-#include "V8TestCallback.h"
-#include "V8int.h"
-#include "V8log.h"
-#include <wtf/GetPtr.h>
-#include <wtf/RefCounted.h>
-#include <wtf/RefPtr.h>
-
-namespace WebCore {
-
-WrapperTypeInfo V8TestObj::info = { V8TestObj::GetTemplate, V8TestObj::derefObject, 0 };
-
-namespace TestObjInternal {
-
-template <typename T> void V8_USE(T) { }
-
-static v8::Handle<v8::Value> readOnlyIntAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.readOnlyIntAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->readOnlyIntAttr());
-}
-
-static v8::Handle<v8::Value> readOnlyStringAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.readOnlyStringAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->readOnlyStringAttr());
-}
-
-static v8::Handle<v8::Value> readOnlyTestObjAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.readOnlyTestObjAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- RefPtr<TestObj> result = imp->readOnlyTestObjAttr();
- v8::Handle<v8::Value> wrapper = result.get() ? getDOMObjectMap().get(result.get()) : v8::Handle<v8::Value>();
- if (wrapper.IsEmpty()) {
- wrapper = toV8(result.get());
- if (!wrapper.IsEmpty())
- V8DOMWrapper::setHiddenReference(info.Holder(), wrapper);
- }
- return wrapper;
-}
-
-static v8::Handle<v8::Value> shortAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.shortAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->shortAttr());
-}
-
-static void shortAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.shortAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setShortAttr(v);
- return;
-}
-
-static v8::Handle<v8::Value> unsignedShortAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.unsignedShortAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->unsignedShortAttr());
-}
-
-static void unsignedShortAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.unsignedShortAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toUInt32(value);
- imp->setUnsignedShortAttr(v);
- return;
-}
-
-static v8::Handle<v8::Value> intAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.intAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->intAttr());
-}
-
-static void intAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.intAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setIntAttr(v);
- return;
-}
-
-static v8::Handle<v8::Value> longLongAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.longLongAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Number::New(static_cast<double>(imp->longLongAttr()));
-}
-
-static void longLongAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.longLongAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- long long v = toInt64(value);
- imp->setLongLongAttr(WTF::getPtr(v));
- return;
-}
-
-static v8::Handle<v8::Value> unsignedLongLongAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.unsignedLongLongAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Number::New(static_cast<double>(imp->unsignedLongLongAttr()));
-}
-
-static void unsignedLongLongAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.unsignedLongLongAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- unsigned long long v = toInt64(value);
- imp->setUnsignedLongLongAttr(WTF::getPtr(v));
- return;
-}
-
-static v8::Handle<v8::Value> stringAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.stringAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->stringAttr());
-}
-
-static void stringAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.stringAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<>, v, value);
- imp->setStringAttr(v);
- return;
-}
-
-static v8::Handle<v8::Value> testObjAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.testObjAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return toV8(imp->testObjAttr());
-}
-
-static void testObjAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.testObjAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- TestObj* v = V8TestObj::HasInstance(value) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(value)) : 0;
- imp->setTestObjAttr(WTF::getPtr(v));
- return;
-}
-
-static v8::Handle<v8::Value> XMLObjAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.XMLObjAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return toV8(imp->xmlObjAttr());
-}
-
-static void XMLObjAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.XMLObjAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- TestObj* v = V8TestObj::HasInstance(value) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(value)) : 0;
- imp->setXMLObjAttr(WTF::getPtr(v));
- return;
-}
-
-static v8::Handle<v8::Value> createAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.create._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8Boolean(imp->isCreate());
-}
-
-static void createAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.create._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- bool v = value->BooleanValue();
- imp->setCreate(v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedStringAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedStringAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->getAttribute(WebCore::HTMLNames::reflectedstringattrAttr));
-}
-
-static void reflectedStringAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedStringAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value);
- imp->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedIntegralAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
-}
-
-static void reflectedIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedIntegralAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedUnsignedIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedUnsignedIntegralAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::NewFromUnsigned(imp->getUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr));
-}
-
-static void reflectedUnsignedIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedUnsignedIntegralAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- unsigned v = toUInt32(value);
- imp->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedBooleanAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedBooleanAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8Boolean(imp->hasAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr));
-}
-
-static void reflectedBooleanAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedBooleanAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- bool v = value->BooleanValue();
- imp->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedURLAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedURLAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
-}
-
-static void reflectedURLAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedURLAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value);
- imp->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedNonEmptyURLAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedNonEmptyURLAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->getNonEmptyURLAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr));
-}
-
-static void reflectedNonEmptyURLAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedNonEmptyURLAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value);
- imp->setAttribute(WebCore::HTMLNames::reflectednonemptyurlattrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedStringAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedStringAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->getAttribute(WebCore::HTMLNames::customContentStringAttrAttr));
-}
-
-static void reflectedStringAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedStringAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value);
- imp->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedCustomIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomIntegralAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
-}
-
-static void reflectedCustomIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomIntegralAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedCustomBooleanAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomBooleanAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8Boolean(imp->hasAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr));
-}
-
-static void reflectedCustomBooleanAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomBooleanAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- bool v = value->BooleanValue();
- imp->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedCustomURLAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomURLAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
-}
-
-static void reflectedCustomURLAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomURLAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value);
- imp->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> reflectedCustomNonEmptyURLAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomNonEmptyURLAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->getNonEmptyURLAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr));
-}
-
-static void reflectedCustomNonEmptyURLAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.reflectedCustomNonEmptyURLAttr._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<WithNullCheck>, v, value);
- imp->setAttribute(WebCore::HTMLNames::customContentNonEmptyURLAttrAttr, v);
- return;
-}
-
-static v8::Handle<v8::Value> attrWithGetterExceptionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.attrWithGetterException._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- ExceptionCode ec = 0;
- int v = imp->attrWithGetterException(ec);
- if (UNLIKELY(ec)) {
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
- }
- return v8::Integer::New(v);
-}
-
-static void attrWithGetterExceptionAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.attrWithGetterException._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- ExceptionCode ec = 0;
- imp->setAttrWithGetterException(v, ec);
- if (UNLIKELY(ec))
- V8Proxy::setDOMException(ec);
- return;
-}
-
-static v8::Handle<v8::Value> attrWithSetterExceptionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.attrWithSetterException._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->attrWithSetterException());
-}
-
-static void attrWithSetterExceptionAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.attrWithSetterException._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- ExceptionCode ec = 0;
- imp->setAttrWithSetterException(v, ec);
- if (UNLIKELY(ec))
- V8Proxy::setDOMException(ec);
- return;
-}
-
-static v8::Handle<v8::Value> stringAttrWithGetterExceptionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.stringAttrWithGetterException._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- ExceptionCode ec = 0;
- String v = imp->stringAttrWithGetterException(ec);
- if (UNLIKELY(ec)) {
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
- }
- return v8String(v);
-}
-
-static void stringAttrWithGetterExceptionAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.stringAttrWithGetterException._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<>, v, value);
- ExceptionCode ec = 0;
- imp->setStringAttrWithGetterException(v, ec);
- if (UNLIKELY(ec))
- V8Proxy::setDOMException(ec);
- return;
-}
-
-static v8::Handle<v8::Value> stringAttrWithSetterExceptionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.stringAttrWithSetterException._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->stringAttrWithSetterException());
-}
-
-static void stringAttrWithSetterExceptionAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.stringAttrWithSetterException._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK_VOID(V8Parameter<>, v, value);
- ExceptionCode ec = 0;
- imp->setStringAttrWithSetterException(v, ec);
- if (UNLIKELY(ec))
- V8Proxy::setDOMException(ec);
- return;
-}
-
-static v8::Handle<v8::Value> scriptStringAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.scriptStringAttr._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8StringOrNull(imp->scriptStringAttr());
-}
-
-#if ENABLE(Condition1)
-
-static v8::Handle<v8::Value> conditionalAttr1AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.conditionalAttr1._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->conditionalAttr1());
-}
-
-#endif // ENABLE(Condition1)
-
-#if ENABLE(Condition1)
-
-static void conditionalAttr1AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.conditionalAttr1._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setConditionalAttr1(v);
- return;
-}
-
-#endif // ENABLE(Condition1)
-
-#if ENABLE(Condition1) && ENABLE(Condition2)
-
-static v8::Handle<v8::Value> conditionalAttr2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.conditionalAttr2._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->conditionalAttr2());
-}
-
-#endif // ENABLE(Condition1) && ENABLE(Condition2)
-
-#if ENABLE(Condition1) && ENABLE(Condition2)
-
-static void conditionalAttr2AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.conditionalAttr2._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setConditionalAttr2(v);
- return;
-}
-
-#endif // ENABLE(Condition1) && ENABLE(Condition2)
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-static v8::Handle<v8::Value> conditionalAttr3AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.conditionalAttr3._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->conditionalAttr3());
-}
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
-
-#if ENABLE(Condition1) || ENABLE(Condition2)
-
-static void conditionalAttr3AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.conditionalAttr3._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setConditionalAttr3(v);
- return;
-}
-
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
-
-static v8::Handle<v8::Value> enabledAtRuntimeAttr1AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.enabledAtRuntimeAttr1._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->enabledAtRuntimeAttr1());
-}
-
-static void enabledAtRuntimeAttr1AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.enabledAtRuntimeAttr1._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setEnabledAtRuntimeAttr1(v);
- return;
-}
-
-static v8::Handle<v8::Value> enabledAtRuntimeAttr2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.enabledAtRuntimeAttr2._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->enabledAtRuntimeAttr2());
-}
-
-static void enabledAtRuntimeAttr2AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.enabledAtRuntimeAttr2._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setEnabledAtRuntimeAttr2(v);
- return;
-}
-
-static v8::Handle<v8::Value> descriptionAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.description._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->description());
-}
-
-static v8::Handle<v8::Value> idAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.id._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8::Integer::New(imp->id());
-}
-
-static void idAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.id._set");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- int v = toInt32(value);
- imp->setId(v);
- return;
-}
-
-static v8::Handle<v8::Value> hashAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.TestObj.hash._get");
- TestObj* imp = V8TestObj::toNative(info.Holder());
- return v8String(imp->hash());
-}
-
-static v8::Handle<v8::Value> voidMethodCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.voidMethod");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- imp->voidMethod();
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> voidMethodWithArgsCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.voidMethodWithArgs");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[1]);
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[2]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[2])) : 0);
- imp->voidMethodWithArgs(intArg, strArg, objArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> intMethodCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.intMethod");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- return v8::Integer::New(imp->intMethod());
-}
-
-static v8::Handle<v8::Value> intMethodWithArgsCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.intMethodWithArgs");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[1]);
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[2]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[2])) : 0);
- return v8::Integer::New(imp->intMethodWithArgs(intArg, strArg, objArg));
-}
-
-static v8::Handle<v8::Value> objMethodCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.objMethod");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- return toV8(imp->objMethod());
-}
-
-static v8::Handle<v8::Value> objMethodWithArgsCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.objMethodWithArgs");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[1]);
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[2]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[2])) : 0);
- return toV8(imp->objMethodWithArgs(intArg, strArg, objArg));
-}
-
-static v8::Handle<v8::Value> methodThatRequiresAllArgsCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodThatRequiresAllArgs");
- if (args.Length() < 2)
- return v8::Handle<v8::Value>();
- TestObj* imp = V8TestObj::toNative(args.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[0]);
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[1]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0);
- return toV8(imp->methodThatRequiresAllArgs(strArg, objArg));
-}
-
-static v8::Handle<v8::Value> methodThatRequiresAllArgsAndThrowsCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodThatRequiresAllArgsAndThrows");
- if (args.Length() < 2)
- return throwError("Not enough arguments", V8Proxy::SyntaxError);
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ExceptionCode ec = 0;
- {
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[0]);
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[1]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[1])) : 0);
- RefPtr<TestObj> result = imp->methodThatRequiresAllArgsAndThrows(strArg, objArg, ec);
- if (UNLIKELY(ec))
- goto fail;
- return toV8(result.release());
- }
- fail:
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> serializedValueCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.serializedValue");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- bool serializedArgDidThrow = false;
- RefPtr<SerializedScriptValue> serializedArg = SerializedScriptValue::create(args[0], serializedArgDidThrow);
- if (serializedArgDidThrow)
- return v8::Undefined();
- imp->serializedValue(serializedArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> idbKeyCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.idbKey");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ExceptionCode ec = 0;
- {
- RefPtr<IDBKey> key = createIDBKeyFromValue(args[0]);
- if (UNLIKELY(!key)) {
- ec = TYPE_MISMATCH_ERR;
- goto fail;
- }
- imp->idbKey(key);
- return v8::Handle<v8::Value>();
- }
- fail:
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> optionsObjectCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.optionsObject");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(OptionsObject, oo, args[0]);
- if (args.Length() <= 1) {
- imp->optionsObject(oo);
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(OptionsObject, ooo, args[1]);
- imp->optionsObject(oo, ooo);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithExceptionCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithException");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ExceptionCode ec = 0;
- {
- imp->methodWithException(ec);
- if (UNLIKELY(ec))
- goto fail;
- return v8::Handle<v8::Value>();
- }
- fail:
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> customArgsAndExceptionCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.customArgsAndException");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ExceptionCode ec = 0;
- {
- RefPtr<ScriptArguments> scriptArguments(createScriptArguments(args, 1));
- size_t maxStackSize = imp->shouldCaptureFullStackTrace() ? ScriptCallStack::maxCallStackSizeToCapture : 1;
- RefPtr<ScriptCallStack> callStack(createScriptCallStack(maxStackSize));
- if (!callStack)
- return v8::Undefined();
- EXCEPTION_BLOCK(log*, intArg, V8log::HasInstance(args[0]) ? V8log::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
- imp->customArgsAndException(intArg, scriptArguments, callStack, ec);
- if (UNLIKELY(ec))
- goto fail;
- return v8::Handle<v8::Value>();
- }
- fail:
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> addEventListenerCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.addEventListener()");
- RefPtr<EventListener> listener = V8DOMWrapper::getEventListener(args[1], false, ListenerFindOrCreate);
- if (listener) {
- V8TestObj::toNative(args.Holder())->addEventListener(v8ValueToAtomicWebCoreString(args[0]), listener, args[2]->BooleanValue());
- createHiddenDependency(args.Holder(), args[1], V8TestObj::eventListenerCacheIndex);
- }
- return v8::Undefined();
-}
-
-static v8::Handle<v8::Value> removeEventListenerCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.removeEventListener()");
- RefPtr<EventListener> listener = V8DOMWrapper::getEventListener(args[1], false, ListenerFindOnly);
- if (listener) {
- V8TestObj::toNative(args.Holder())->removeEventListener(v8ValueToAtomicWebCoreString(args[0]), listener.get(), args[2]->BooleanValue());
- removeHiddenDependency(args.Holder(), args[1], V8TestObj::eventListenerCacheIndex);
- }
- return v8::Undefined();
-}
-
-static v8::Handle<v8::Value> withDynamicFrameCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withDynamicFrame");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrame(enteredFrame);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withDynamicFrameAndArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withDynamicFrameAndArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrameAndArg(enteredFrame, intArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withDynamicFrameAndOptionalArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withDynamicFrameAndOptionalArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- if (args.Length() <= 1) {
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrameAndOptionalArg(enteredFrame, intArg);
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(int, optionalArg, toInt32(args[1]));
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrameAndOptionalArg(enteredFrame, intArg, optionalArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withDynamicFrameAndUserGestureCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withDynamicFrameAndUserGesture");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrameAndUserGesture(enteredFrame, intArg, processingUserGesture());
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withDynamicFrameAndUserGestureASADCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withDynamicFrameAndUserGestureASAD");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- if (args.Length() <= 1) {
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrameAndUserGestureASAD(enteredFrame, intArg, processingUserGesture());
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(int, optionalArg, toInt32(args[1]));
- Frame* enteredFrame = V8Proxy::retrieveFrameForEnteredContext();
- if (!enteredFrame)
- return v8::Undefined();
- imp->withDynamicFrameAndUserGestureASAD(enteredFrame, intArg, optionalArg, processingUserGesture());
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withScriptStateVoidCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withScriptStateVoid");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EmptyScriptState state;
- imp->withScriptStateVoid(&state);
- if (state.hadException())
- return throwError(state.exception());
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withScriptStateObjCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withScriptStateObj");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EmptyScriptState state;
- RefPtr<TestObj> result = imp->withScriptStateObj(&state);
- if (state.hadException())
- return throwError(state.exception());
- return toV8(result.release());
-}
-
-static v8::Handle<v8::Value> withScriptStateVoidExceptionCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withScriptStateVoidException");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ExceptionCode ec = 0;
- {
- EmptyScriptState state;
- imp->withScriptStateVoidException(&state, ec);
- if (UNLIKELY(ec))
- goto fail;
- if (state.hadException())
- return throwError(state.exception());
- return v8::Handle<v8::Value>();
- }
- fail:
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withScriptStateObjExceptionCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withScriptStateObjException");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ExceptionCode ec = 0;
- {
- EmptyScriptState state;
- RefPtr<TestObj> result = imp->withScriptStateObjException(&state, ec);
- if (UNLIKELY(ec))
- goto fail;
- if (state.hadException())
- return throwError(state.exception());
- return toV8(result.release());
- }
- fail:
- V8Proxy::setDOMException(ec);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> withScriptExecutionContextCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.withScriptExecutionContext");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- ScriptExecutionContext* scriptContext = getScriptExecutionContext();
- if (!scriptContext)
- return v8::Undefined();
- imp->withScriptExecutionContext(scriptContext);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithOptionalArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithOptionalArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- if (args.Length() <= 0) {
- imp->methodWithOptionalArg();
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(int, opt, toInt32(args[0]));
- imp->methodWithOptionalArg(opt);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithNonOptionalArgAndOptionalArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithNonOptionalArgAndOptionalArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, nonOpt, toInt32(args[0]));
- if (args.Length() <= 1) {
- imp->methodWithNonOptionalArgAndOptionalArg(nonOpt);
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(int, opt, toInt32(args[1]));
- imp->methodWithNonOptionalArgAndOptionalArg(nonOpt, opt);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithNonOptionalArgAndTwoOptionalArgsCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithNonOptionalArgAndTwoOptionalArgs");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, nonOpt, toInt32(args[0]));
- if (args.Length() <= 1) {
- imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt);
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(int, opt1, toInt32(args[1]));
- EXCEPTION_BLOCK(int, opt2, toInt32(args[2]));
- imp->methodWithNonOptionalArgAndTwoOptionalArgs(nonOpt, opt1, opt2);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithCallbackArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithCallbackArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- if (args.Length() <= 0 || !args[0]->IsObject())
- return throwError(TYPE_MISMATCH_ERR);
- RefPtr<TestCallback> callback = V8TestCallback::create(args[0], getScriptExecutionContext());
- imp->methodWithCallbackArg(callback);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithNonCallbackArgAndCallbackArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithNonCallbackArgAndCallbackArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, nonCallback, toInt32(args[0]));
- if (args.Length() <= 1 || !args[1]->IsObject())
- return throwError(TYPE_MISMATCH_ERR);
- RefPtr<TestCallback> callback = V8TestCallback::create(args[1], getScriptExecutionContext());
- imp->methodWithNonCallbackArgAndCallbackArg(nonCallback, callback);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> methodWithCallbackAndOptionalArgCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.methodWithCallbackAndOptionalArg");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- RefPtr<TestCallback> callback;
- if (args.Length() > 0 && !args[0]->IsNull() && !args[0]->IsUndefined()) {
- if (!args[0]->IsObject())
- return throwError(TYPE_MISMATCH_ERR);
- callback = V8TestCallback::create(args[0], getScriptExecutionContext());
- }
- imp->methodWithCallbackAndOptionalArg(callback);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> overloadedMethod1Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.overloadedMethod1");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[0]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[1]);
- imp->overloadedMethod(objArg, strArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> overloadedMethod2Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.overloadedMethod2");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(TestObj*, objArg, V8TestObj::HasInstance(args[0]) ? V8TestObj::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
- if (args.Length() <= 1) {
- imp->overloadedMethod(objArg);
- return v8::Handle<v8::Value>();
- }
- EXCEPTION_BLOCK(int, intArg, toInt32(args[1]));
- imp->overloadedMethod(objArg, intArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> overloadedMethod3Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.overloadedMethod3");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- STRING_TO_V8PARAMETER_EXCEPTION_BLOCK(V8Parameter<>, strArg, args[0]);
- imp->overloadedMethod(strArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> overloadedMethod4Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.overloadedMethod4");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, toInt32(args[0]));
- imp->overloadedMethod(intArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> overloadedMethod5Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.overloadedMethod5");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- if (args.Length() <= 0 || !args[0]->IsObject())
- return throwError(TYPE_MISMATCH_ERR);
- RefPtr<TestCallback> callback = V8TestCallback::create(args[0], getScriptExecutionContext());
- imp->overloadedMethod(callback);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> overloadedMethodCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.overloadedMethod");
- if ((args.Length() == 2 && (args[0]->IsNull() || V8TestObj::HasInstance(args[0])) && (args[1]->IsNull() || args[1]->IsUndefined() || args[1]->IsString() || args[1]->IsObject())))
- return overloadedMethod1Callback(args);
- if ((args.Length() == 1 && (args[0]->IsNull() || V8TestObj::HasInstance(args[0]))) || (args.Length() == 2 && (args[0]->IsNull() || V8TestObj::HasInstance(args[0]))))
- return overloadedMethod2Callback(args);
- if ((args.Length() == 1 && (args[0]->IsNull() || args[0]->IsUndefined() || args[0]->IsString() || args[0]->IsObject())))
- return overloadedMethod3Callback(args);
- if (args.Length() == 1)
- return overloadedMethod4Callback(args);
- if ((args.Length() == 1 && (args[0]->IsNull() || args[0]->IsObject())))
- return overloadedMethod5Callback(args);
- V8Proxy::throwTypeError();
- return notHandledByInterceptor();
-}
-
-static v8::Handle<v8::Value> classMethodCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.classMethod");
- TestObj::classMethod();
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> classMethodWithOptionalCallback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.classMethodWithOptional");
- if (args.Length() <= 0) {
- return v8::Integer::New(TestObj::classMethodWithOptional());
- }
- EXCEPTION_BLOCK(int, arg, toInt32(args[0]));
- return v8::Integer::New(TestObj::classMethodWithOptional(arg));
-}
-
-static v8::Handle<v8::Value> enabledAtRuntimeMethod1Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.enabledAtRuntimeMethod1");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(args[0]) ? V8int::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
- imp->enabledAtRuntimeMethod1(intArg);
- return v8::Handle<v8::Value>();
-}
-
-static v8::Handle<v8::Value> enabledAtRuntimeMethod2Callback(const v8::Arguments& args)
-{
- INC_STATS("DOM.TestObj.enabledAtRuntimeMethod2");
- TestObj* imp = V8TestObj::toNative(args.Holder());
- EXCEPTION_BLOCK(int, intArg, V8int::HasInstance(args[0]) ? V8int::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
- imp->enabledAtRuntimeMethod2(intArg);
- return v8::Handle<v8::Value>();
-}
-
-} // namespace TestObjInternal
-
-static const BatchedAttribute TestObjAttrs[] = {
- // Attribute 'readOnlyIntAttr' (Type: 'readonly attribute' ExtAttr: '')
- {"readOnlyIntAttr", TestObjInternal::readOnlyIntAttrAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'readOnlyStringAttr' (Type: 'readonly attribute' ExtAttr: '')
- {"readOnlyStringAttr", TestObjInternal::readOnlyStringAttrAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'readOnlyTestObjAttr' (Type: 'readonly attribute' ExtAttr: '')
- {"readOnlyTestObjAttr", TestObjInternal::readOnlyTestObjAttrAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'shortAttr' (Type: 'attribute' ExtAttr: '')
- {"shortAttr", TestObjInternal::shortAttrAttrGetter, TestObjInternal::shortAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'unsignedShortAttr' (Type: 'attribute' ExtAttr: '')
- {"unsignedShortAttr", TestObjInternal::unsignedShortAttrAttrGetter, TestObjInternal::unsignedShortAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'intAttr' (Type: 'attribute' ExtAttr: '')
- {"intAttr", TestObjInternal::intAttrAttrGetter, TestObjInternal::intAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'longLongAttr' (Type: 'attribute' ExtAttr: '')
- {"longLongAttr", TestObjInternal::longLongAttrAttrGetter, TestObjInternal::longLongAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'unsignedLongLongAttr' (Type: 'attribute' ExtAttr: '')
- {"unsignedLongLongAttr", TestObjInternal::unsignedLongLongAttrAttrGetter, TestObjInternal::unsignedLongLongAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'stringAttr' (Type: 'attribute' ExtAttr: '')
- {"stringAttr", TestObjInternal::stringAttrAttrGetter, TestObjInternal::stringAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'testObjAttr' (Type: 'attribute' ExtAttr: '')
- {"testObjAttr", TestObjInternal::testObjAttrAttrGetter, TestObjInternal::testObjAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'XMLObjAttr' (Type: 'attribute' ExtAttr: '')
- {"XMLObjAttr", TestObjInternal::XMLObjAttrAttrGetter, TestObjInternal::XMLObjAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'create' (Type: 'attribute' ExtAttr: '')
- {"create", TestObjInternal::createAttrGetter, TestObjInternal::createAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedStringAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedStringAttr", TestObjInternal::reflectedStringAttrAttrGetter, TestObjInternal::reflectedStringAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedIntegralAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedIntegralAttr", TestObjInternal::reflectedIntegralAttrAttrGetter, TestObjInternal::reflectedIntegralAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedUnsignedIntegralAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedUnsignedIntegralAttr", TestObjInternal::reflectedUnsignedIntegralAttrAttrGetter, TestObjInternal::reflectedUnsignedIntegralAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedBooleanAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedBooleanAttr", TestObjInternal::reflectedBooleanAttrAttrGetter, TestObjInternal::reflectedBooleanAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedURLAttr' (Type: 'attribute' ExtAttr: 'URL Reflect')
- {"reflectedURLAttr", TestObjInternal::reflectedURLAttrAttrGetter, TestObjInternal::reflectedURLAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedNonEmptyURLAttr' (Type: 'attribute' ExtAttr: 'URL NonEmpty Reflect')
- {"reflectedNonEmptyURLAttr", TestObjInternal::reflectedNonEmptyURLAttrAttrGetter, TestObjInternal::reflectedNonEmptyURLAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedStringAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedStringAttr", TestObjInternal::reflectedStringAttrAttrGetter, TestObjInternal::reflectedStringAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedCustomIntegralAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedCustomIntegralAttr", TestObjInternal::reflectedCustomIntegralAttrAttrGetter, TestObjInternal::reflectedCustomIntegralAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedCustomBooleanAttr' (Type: 'attribute' ExtAttr: 'Reflect')
- {"reflectedCustomBooleanAttr", TestObjInternal::reflectedCustomBooleanAttrAttrGetter, TestObjInternal::reflectedCustomBooleanAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedCustomURLAttr' (Type: 'attribute' ExtAttr: 'URL Reflect')
- {"reflectedCustomURLAttr", TestObjInternal::reflectedCustomURLAttrAttrGetter, TestObjInternal::reflectedCustomURLAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'reflectedCustomNonEmptyURLAttr' (Type: 'attribute' ExtAttr: 'URL NonEmpty Reflect')
- {"reflectedCustomNonEmptyURLAttr", TestObjInternal::reflectedCustomNonEmptyURLAttrAttrGetter, TestObjInternal::reflectedCustomNonEmptyURLAttrAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'attrWithGetterException' (Type: 'attribute' ExtAttr: '')
- {"attrWithGetterException", TestObjInternal::attrWithGetterExceptionAttrGetter, TestObjInternal::attrWithGetterExceptionAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'attrWithSetterException' (Type: 'attribute' ExtAttr: '')
- {"attrWithSetterException", TestObjInternal::attrWithSetterExceptionAttrGetter, TestObjInternal::attrWithSetterExceptionAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'stringAttrWithGetterException' (Type: 'attribute' ExtAttr: '')
- {"stringAttrWithGetterException", TestObjInternal::stringAttrWithGetterExceptionAttrGetter, TestObjInternal::stringAttrWithGetterExceptionAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'stringAttrWithSetterException' (Type: 'attribute' ExtAttr: '')
- {"stringAttrWithSetterException", TestObjInternal::stringAttrWithSetterExceptionAttrGetter, TestObjInternal::stringAttrWithSetterExceptionAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'customAttr' (Type: 'attribute' ExtAttr: 'Custom')
- {"customAttr", V8TestObj::customAttrAccessorGetter, V8TestObj::customAttrAccessorSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'scriptStringAttr' (Type: 'readonly attribute' ExtAttr: 'ConvertScriptString')
- {"scriptStringAttr", TestObjInternal::scriptStringAttrAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
-#if ENABLE(Condition1)
- // Attribute 'conditionalAttr1' (Type: 'attribute' ExtAttr: 'Conditional')
- {"conditionalAttr1", TestObjInternal::conditionalAttr1AttrGetter, TestObjInternal::conditionalAttr1AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
-#endif // ENABLE(Condition1)
-#if ENABLE(Condition1) && ENABLE(Condition2)
- // Attribute 'conditionalAttr2' (Type: 'attribute' ExtAttr: 'Conditional')
- {"conditionalAttr2", TestObjInternal::conditionalAttr2AttrGetter, TestObjInternal::conditionalAttr2AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
-#endif // ENABLE(Condition1) && ENABLE(Condition2)
-#if ENABLE(Condition1) || ENABLE(Condition2)
- // Attribute 'conditionalAttr3' (Type: 'attribute' ExtAttr: 'Conditional')
- {"conditionalAttr3", TestObjInternal::conditionalAttr3AttrGetter, TestObjInternal::conditionalAttr3AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
-#endif // ENABLE(Condition1) || ENABLE(Condition2)
- // Attribute 'description' (Type: 'readonly attribute' ExtAttr: '')
- {"description", TestObjInternal::descriptionAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'id' (Type: 'attribute' ExtAttr: '')
- {"id", TestObjInternal::idAttrGetter, TestObjInternal::idAttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
- // Attribute 'hash' (Type: 'readonly attribute' ExtAttr: '')
- {"hash", TestObjInternal::hashAttrGetter, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
-};
-static const BatchedCallback TestObjCallbacks[] = {
- {"voidMethod", TestObjInternal::voidMethodCallback},
- {"intMethod", TestObjInternal::intMethodCallback},
- {"objMethod", TestObjInternal::objMethodCallback},
- {"serializedValue", TestObjInternal::serializedValueCallback},
- {"idbKey", TestObjInternal::idbKeyCallback},
- {"optionsObject", TestObjInternal::optionsObjectCallback},
- {"methodWithException", TestObjInternal::methodWithExceptionCallback},
- {"customMethod", V8TestObj::customMethodCallback},
- {"customMethodWithArgs", V8TestObj::customMethodWithArgsCallback},
- {"addEventListener", TestObjInternal::addEventListenerCallback},
- {"removeEventListener", TestObjInternal::removeEventListenerCallback},
- {"withDynamicFrame", TestObjInternal::withDynamicFrameCallback},
- {"withDynamicFrameAndArg", TestObjInternal::withDynamicFrameAndArgCallback},
- {"withDynamicFrameAndOptionalArg", TestObjInternal::withDynamicFrameAndOptionalArgCallback},
- {"withDynamicFrameAndUserGesture", TestObjInternal::withDynamicFrameAndUserGestureCallback},
- {"withDynamicFrameAndUserGestureASAD", TestObjInternal::withDynamicFrameAndUserGestureASADCallback},
- {"withScriptStateVoid", TestObjInternal::withScriptStateVoidCallback},
- {"withScriptStateObj", TestObjInternal::withScriptStateObjCallback},
- {"withScriptStateVoidException", TestObjInternal::withScriptStateVoidExceptionCallback},
- {"withScriptStateObjException", TestObjInternal::withScriptStateObjExceptionCallback},
- {"withScriptExecutionContext", TestObjInternal::withScriptExecutionContextCallback},
- {"methodWithOptionalArg", TestObjInternal::methodWithOptionalArgCallback},
- {"methodWithNonOptionalArgAndOptionalArg", TestObjInternal::methodWithNonOptionalArgAndOptionalArgCallback},
- {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjInternal::methodWithNonOptionalArgAndTwoOptionalArgsCallback},
- {"methodWithCallbackArg", TestObjInternal::methodWithCallbackArgCallback},
- {"methodWithNonCallbackArgAndCallbackArg", TestObjInternal::methodWithNonCallbackArgAndCallbackArgCallback},
- {"methodWithCallbackAndOptionalArg", TestObjInternal::methodWithCallbackAndOptionalArgCallback},
- {"overloadedMethod", TestObjInternal::overloadedMethodCallback},
-};
-static const BatchedConstant TestObjConsts[] = {
- {"CONST_VALUE_0", static_cast<signed int>(0)},
- {"CONST_VALUE_1", static_cast<signed int>(1)},
- {"CONST_VALUE_2", static_cast<signed int>(2)},
- {"CONST_VALUE_4", static_cast<signed int>(4)},
- {"CONST_VALUE_8", static_cast<signed int>(8)},
- {"CONST_VALUE_9", static_cast<signed int>(-1)},
- {"CONST_VALUE_10", static_cast<signed int>("my constant string")},
- {"CONST_VALUE_11", static_cast<signed int>(0xffffffff)},
- {"CONST_VALUE_12", static_cast<signed int>(0x01)},
- {"CONST_VALUE_13", static_cast<signed int>(0X20)},
- {"CONST_VALUE_14", static_cast<signed int>(0x1abc)},
-};
-
-COMPILE_ASSERT(0 == TestObj::CONST_VALUE_0, TestObjEnumCONST_VALUE_0IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(1 == TestObj::CONST_VALUE_1, TestObjEnumCONST_VALUE_1IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(2 == TestObj::CONST_VALUE_2, TestObjEnumCONST_VALUE_2IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(4 == TestObj::CONST_VALUE_4, TestObjEnumCONST_VALUE_4IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(8 == TestObj::CONST_VALUE_8, TestObjEnumCONST_VALUE_8IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(-1 == TestObj::CONST_VALUE_9, TestObjEnumCONST_VALUE_9IsWrongUseDontCheckEnums);
-COMPILE_ASSERT("my constant string" == TestObj::CONST_VALUE_10, TestObjEnumCONST_VALUE_10IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0xffffffff == TestObj::CONST_VALUE_11, TestObjEnumCONST_VALUE_11IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0x01 == TestObj::CONST_VALUE_12, TestObjEnumCONST_VALUE_12IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0X20 == TestObj::CONST_VALUE_13, TestObjEnumCONST_VALUE_13IsWrongUseDontCheckEnums);
-COMPILE_ASSERT(0x1abc == TestObj::CONST_VALUE_14, TestObjEnumCONST_VALUE_14IsWrongUseDontCheckEnums);
-
-static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestObjTemplate(v8::Persistent<v8::FunctionTemplate> desc)
-{
- v8::Local<v8::Signature> defaultSignature = configureTemplate(desc, "TestObj", v8::Persistent<v8::FunctionTemplate>(), V8TestObj::internalFieldCount,
- TestObjAttrs, WTF_ARRAY_LENGTH(TestObjAttrs),
- TestObjCallbacks, WTF_ARRAY_LENGTH(TestObjCallbacks));
- v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
- v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
-
- if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) {
- static const BatchedAttribute attrData =\
- // Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime')
- {"enabledAtRuntimeAttr1", TestObjInternal::enabledAtRuntimeAttr1AttrGetter, TestObjInternal::enabledAtRuntimeAttr1AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
- configureAttribute(instance, proto, attrData);
- }
- if (RuntimeEnabledFeatures::featureNameEnabled()) {
- static const BatchedAttribute attrData =\
- // Attribute 'enabledAtRuntimeAttr2' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime')
- {"enabledAtRuntimeAttr2", TestObjInternal::enabledAtRuntimeAttr2AttrGetter, TestObjInternal::enabledAtRuntimeAttr2AttrSetter, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */};
- configureAttribute(instance, proto, attrData);
- }
-
- // Custom Signature 'voidMethodWithArgs'
- const int voidMethodWithArgsArgc = 3;
- v8::Handle<v8::FunctionTemplate> voidMethodWithArgsArgv[voidMethodWithArgsArgc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8TestObj::GetRawTemplate() };
- v8::Handle<v8::Signature> voidMethodWithArgsSignature = v8::Signature::New(desc, voidMethodWithArgsArgc, voidMethodWithArgsArgv);
- proto->Set(v8::String::New("voidMethodWithArgs"), v8::FunctionTemplate::New(TestObjInternal::voidMethodWithArgsCallback, v8::Handle<v8::Value>(), voidMethodWithArgsSignature));
-
- // Custom Signature 'intMethodWithArgs'
- const int intMethodWithArgsArgc = 3;
- v8::Handle<v8::FunctionTemplate> intMethodWithArgsArgv[intMethodWithArgsArgc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8TestObj::GetRawTemplate() };
- v8::Handle<v8::Signature> intMethodWithArgsSignature = v8::Signature::New(desc, intMethodWithArgsArgc, intMethodWithArgsArgv);
- proto->Set(v8::String::New("intMethodWithArgs"), v8::FunctionTemplate::New(TestObjInternal::intMethodWithArgsCallback, v8::Handle<v8::Value>(), intMethodWithArgsSignature));
-
- // Custom Signature 'objMethodWithArgs'
- const int objMethodWithArgsArgc = 3;
- v8::Handle<v8::FunctionTemplate> objMethodWithArgsArgv[objMethodWithArgsArgc] = { v8::Handle<v8::FunctionTemplate>(), v8::Handle<v8::FunctionTemplate>(), V8TestObj::GetRawTemplate() };
- v8::Handle<v8::Signature> objMethodWithArgsSignature = v8::Signature::New(desc, objMethodWithArgsArgc, objMethodWithArgsArgv);
- proto->Set(v8::String::New("objMethodWithArgs"), v8::FunctionTemplate::New(TestObjInternal::objMethodWithArgsCallback, v8::Handle<v8::Value>(), objMethodWithArgsSignature));
-
- // Custom Signature 'methodThatRequiresAllArgs'
- const int methodThatRequiresAllArgsArgc = 2;
- v8::Handle<v8::FunctionTemplate> methodThatRequiresAllArgsArgv[methodThatRequiresAllArgsArgc] = { v8::Handle<v8::FunctionTemplate>(), V8TestObj::GetRawTemplate() };
- v8::Handle<v8::Signature> methodThatRequiresAllArgsSignature = v8::Signature::New(desc, methodThatRequiresAllArgsArgc, methodThatRequiresAllArgsArgv);
- proto->Set(v8::String::New("methodThatRequiresAllArgs"), v8::FunctionTemplate::New(TestObjInternal::methodThatRequiresAllArgsCallback, v8::Handle<v8::Value>(), methodThatRequiresAllArgsSignature));
-
- // Custom Signature 'methodThatRequiresAllArgsAndThrows'
- const int methodThatRequiresAllArgsAndThrowsArgc = 2;
- v8::Handle<v8::FunctionTemplate> methodThatRequiresAllArgsAndThrowsArgv[methodThatRequiresAllArgsAndThrowsArgc] = { v8::Handle<v8::FunctionTemplate>(), V8TestObj::GetRawTemplate() };
- v8::Handle<v8::Signature> methodThatRequiresAllArgsAndThrowsSignature = v8::Signature::New(desc, methodThatRequiresAllArgsAndThrowsArgc, methodThatRequiresAllArgsAndThrowsArgv);
- proto->Set(v8::String::New("methodThatRequiresAllArgsAndThrows"), v8::FunctionTemplate::New(TestObjInternal::methodThatRequiresAllArgsAndThrowsCallback, v8::Handle<v8::Value>(), methodThatRequiresAllArgsAndThrowsSignature));
-
- // Custom Signature 'customArgsAndException'
- const int customArgsAndExceptionArgc = 1;
- v8::Handle<v8::FunctionTemplate> customArgsAndExceptionArgv[customArgsAndExceptionArgc] = { V8log::GetRawTemplate() };
- v8::Handle<v8::Signature> customArgsAndExceptionSignature = v8::Signature::New(desc, customArgsAndExceptionArgc, customArgsAndExceptionArgv);
- proto->Set(v8::String::New("customArgsAndException"), v8::FunctionTemplate::New(TestObjInternal::customArgsAndExceptionCallback, v8::Handle<v8::Value>(), customArgsAndExceptionSignature));
- desc->Set(v8::String::New("classMethod"), v8::FunctionTemplate::New(TestObjInternal::classMethodCallback, v8::Handle<v8::Value>(), v8::Local<v8::Signature>()));
- desc->Set(v8::String::New("classMethodWithOptional"), v8::FunctionTemplate::New(TestObjInternal::classMethodWithOptionalCallback, v8::Handle<v8::Value>(), v8::Local<v8::Signature>()));
- if (RuntimeEnabledFeatures::enabledAtRuntimeMethod1Enabled())
- proto->Set(v8::String::New("enabledAtRuntimeMethod1"), v8::FunctionTemplate::New(TestObjInternal::enabledAtRuntimeMethod1Callback, v8::Handle<v8::Value>(), defaultSignature));
- if (RuntimeEnabledFeatures::featureNameEnabled())
- proto->Set(v8::String::New("enabledAtRuntimeMethod2"), v8::FunctionTemplate::New(TestObjInternal::enabledAtRuntimeMethod2Callback, v8::Handle<v8::Value>(), defaultSignature));
- batchConfigureConstants(desc, proto, TestObjConsts, WTF_ARRAY_LENGTH(TestObjConsts));
-
- // Custom toString template
- desc->Set(getToStringName(), getToStringTemplate());
- return desc;
-}
-
-v8::Persistent<v8::FunctionTemplate> V8TestObj::GetRawTemplate()
-{
- static v8::Persistent<v8::FunctionTemplate> V8TestObjRawCache = createRawTemplate();
- return V8TestObjRawCache;
-}
-
-v8::Persistent<v8::FunctionTemplate> V8TestObj::GetTemplate()
-{
- static v8::Persistent<v8::FunctionTemplate> V8TestObjCache = ConfigureV8TestObjTemplate(GetRawTemplate());
- return V8TestObjCache;
-}
-
-bool V8TestObj::HasInstance(v8::Handle<v8::Value> value)
-{
- return GetRawTemplate()->HasInstance(value);
-}
-
-
-v8::Handle<v8::Object> V8TestObj::wrapSlow(TestObj* impl)
-{
- v8::Handle<v8::Object> wrapper;
- V8Proxy* proxy = 0;
- wrapper = V8DOMWrapper::instantiateV8Object(proxy, &info, impl);
- if (wrapper.IsEmpty())
- return wrapper;
-
- impl->ref();
- getDOMObjectMap().set(impl, v8::Persistent<v8::Object>::New(wrapper));
- return wrapper;
-}
-
-void V8TestObj::derefObject(void* object)
-{
- static_cast<TestObj*>(object)->deref();
-}
-
-} // namespace WebCore
diff --git a/WebCore/bindings/scripts/test/V8/V8TestObj.h b/WebCore/bindings/scripts/test/V8/V8TestObj.h
deleted file mode 100644
index 1e60488..0000000
--- a/WebCore/bindings/scripts/test/V8/V8TestObj.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- This file is part of the WebKit open source project.
- This file has been generated by generate-bindings.pl. DO NOT MODIFY!
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB. If not, write to
- the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-*/
-
-#ifndef V8TestObj_h
-#define V8TestObj_h
-
-#include "TestObj.h"
-#include "V8DOMWrapper.h"
-#include "WrapperTypeInfo.h"
-#include "wtf/text/StringHash.h"
-#include <v8.h>
-#include <wtf/HashMap.h>
-
-namespace WebCore {
-
-class V8TestObj {
-
-public:
- static bool HasInstance(v8::Handle<v8::Value> value);
- static v8::Persistent<v8::FunctionTemplate> GetRawTemplate();
- static v8::Persistent<v8::FunctionTemplate> GetTemplate();
- static TestObj* toNative(v8::Handle<v8::Object> object)
- {
- return reinterpret_cast<TestObj*>(object->GetPointerFromInternalField(v8DOMWrapperObjectIndex));
- }
- inline static v8::Handle<v8::Object> wrap(TestObj*);
- static void derefObject(void*);
- static WrapperTypeInfo info;
- static v8::Handle<v8::Value> customMethodCallback(const v8::Arguments&);
- static v8::Handle<v8::Value> customMethodWithArgsCallback(const v8::Arguments&);
- static v8::Handle<v8::Value> customAttrAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info);
- static void customAttrAccessorSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
-private:
- static v8::Handle<v8::Object> wrapSlow(TestObj*);
-};
-
-
-v8::Handle<v8::Object> V8TestObj::wrap(TestObj* impl)
-{
- v8::Handle<v8::Object> wrapper = getDOMObjectMap().get(impl);
- if (!wrapper.IsEmpty())
- return wrapper;
- return V8TestObj::wrapSlow(impl);
-}
-
-inline v8::Handle<v8::Value> toV8(TestObj* impl)
-{
- if (!impl)
- return v8::Null();
- return V8TestObj::wrap(impl);
-}
-inline v8::Handle<v8::Value> toV8(PassRefPtr< TestObj > impl)
-{
- return toV8(impl.get());
-}
-}
-
-#endif // V8TestObj_h