summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bindings/scripts/test/CPP
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/scripts/test/CPP')
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp120
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h66
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp87
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h57
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp92
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h55
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp834
-rw-r--r--Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h174
8 files changed, 1485 insertions, 0 deletions
diff --git a/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp
new file mode 100644
index 0000000..a58da40
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.cpp
@@ -0,0 +1,120 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h
new file mode 100644
index 0000000..91ff787
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestCallback.h
@@ -0,0 +1,66 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp
new file mode 100644
index 0000000..7fa4af3
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.cpp
@@ -0,0 +1,87 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h
new file mode 100644
index 0000000..5db5db8
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestInterface.h
@@ -0,0 +1,57 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp
new file mode 100644
index 0000000..7543fc4
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp
@@ -0,0 +1,92 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h
new file mode 100644
index 0000000..8f89836
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h
@@ -0,0 +1,55 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp
new file mode 100644
index 0000000..65e5bf3
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.cpp
@@ -0,0 +1,834 @@
+/*
+ * 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/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h
new file mode 100644
index 0000000..abbbf2f
--- /dev/null
+++ b/Source/WebCore/bindings/scripts/test/CPP/WebDOMTestObj.h
@@ -0,0 +1,174 @@
+/*
+ * 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