[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

commit-queue at webkit.org commit-queue at webkit.org
Wed Dec 22 14:49:32 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 862d2c4741bc448f638539ea3785af8231b204d2
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Oct 21 11:04:00 2010 +0000

    2010-10-21  Luiz Agostini  <luiz.agostini at openbossa.org>
    
            Reviewed by Darin Adler.
    
            Adding MediaQueryListListener binding test cases
            https://bugs.webkit.org/show_bug.cgi?id=48028
    
            MediaQueryListListener type will need special handling of the code generators. Adding the test cases.
    
            * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Added.
            (WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListenerPrivate::WebDOMTestMediaQueryListListenerPrivate):
            (WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListener):
            (WebDOMTestMediaQueryListListener::operator=):
            (WebDOMTestMediaQueryListListener::impl):
            (WebDOMTestMediaQueryListListener::~WebDOMTestMediaQueryListListener):
            (WebDOMTestMediaQueryListListener::method):
            (toWebCore):
            (toWebKit):
            * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Added.
            * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp: Added.
            (WebKit::kit):
            (webkit_dom_test_media_query_list_listener_method):
            (WebKit::core):
            (webkit_dom_test_media_query_list_listener_finalize):
            (webkit_dom_test_media_query_list_listener_set_property):
            (webkit_dom_test_media_query_list_listener_get_property):
            (webkit_dom_test_media_query_list_listener_constructed):
            (webkit_dom_test_media_query_list_listener_class_init):
            (webkit_dom_test_media_query_list_listener_init):
            (WebKit::wrapTestMediaQueryListListener):
            * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h: Added.
            * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h: Added.
            * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: Added.
            (WebCore::JSTestMediaQueryListListenerConstructor::classInfo):
            (WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
            (WebCore::JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor):
            (WebCore::JSTestMediaQueryListListenerConstructor::getOwnPropertySlot):
            (WebCore::JSTestMediaQueryListListenerConstructor::getOwnPropertyDescriptor):
            (WebCore::JSTestMediaQueryListListenerPrototype::self):
            (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertySlot):
            (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertyDescriptor):
            (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
            (WebCore::JSTestMediaQueryListListener::~JSTestMediaQueryListListener):
            (WebCore::JSTestMediaQueryListListener::createPrototype):
            (WebCore::JSTestMediaQueryListListener::getOwnPropertySlot):
            (WebCore::JSTestMediaQueryListListener::getOwnPropertyDescriptor):
            (WebCore::jsTestMediaQueryListListenerConstructor):
            (WebCore::JSTestMediaQueryListListener::getConstructor):
            (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
            (WebCore::toJS):
            (WebCore::toTestMediaQueryListListener):
            * bindings/scripts/test/JS/JSTestMediaQueryListListener.h: Added.
            (WebCore::JSTestMediaQueryListListener::classInfo):
            (WebCore::JSTestMediaQueryListListener::createStructure):
            (WebCore::JSTestMediaQueryListListener::impl):
            (WebCore::JSTestMediaQueryListListenerPrototype::classInfo):
            (WebCore::JSTestMediaQueryListListenerPrototype::createStructure):
            (WebCore::JSTestMediaQueryListListenerPrototype::JSTestMediaQueryListListenerPrototype):
            * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h: Added.
            * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm: Added.
            (-[DOMTestMediaQueryListListener dealloc]):
            (-[DOMTestMediaQueryListListener finalize]):
            (-[DOMTestMediaQueryListListener method:]):
            (core):
            (kit):
            * bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h: Added.
            * bindings/scripts/test/TestMediaQueryListListener.idl: Added.
            * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: Added.
            (WebCore::TestMediaQueryListListenerInternal::V8_USE):
            (WebCore::TestMediaQueryListListenerInternal::methodCallback):
            (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
            (WebCore::V8TestMediaQueryListListener::GetRawTemplate):
            (WebCore::V8TestMediaQueryListListener::GetTemplate):
            (WebCore::V8TestMediaQueryListListener::HasInstance):
            (WebCore::V8TestMediaQueryListListener::wrapSlow):
            (WebCore::V8TestMediaQueryListListener::derefObject):
            * bindings/scripts/test/V8/V8TestMediaQueryListListener.h: Added.
            (WebCore::V8TestMediaQueryListListener::toNative):
            (WebCore::V8TestMediaQueryListListener::wrap):
            (WebCore::toV8):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70226 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 98ceacd..de28b31 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,84 @@
+2010-10-21  Luiz Agostini  <luiz.agostini at openbossa.org>
+
+        Reviewed by Darin Adler.
+
+        Adding MediaQueryListListener binding test cases
+        https://bugs.webkit.org/show_bug.cgi?id=48028
+
+        MediaQueryListListener type will need special handling of the code generators. Adding the test cases.
+
+        * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp: Added.
+        (WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListenerPrivate::WebDOMTestMediaQueryListListenerPrivate):
+        (WebDOMTestMediaQueryListListener::WebDOMTestMediaQueryListListener):
+        (WebDOMTestMediaQueryListListener::operator=):
+        (WebDOMTestMediaQueryListListener::impl):
+        (WebDOMTestMediaQueryListListener::~WebDOMTestMediaQueryListListener):
+        (WebDOMTestMediaQueryListListener::method):
+        (toWebCore):
+        (toWebKit):
+        * bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h: Added.
+        * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp: Added.
+        (WebKit::kit):
+        (webkit_dom_test_media_query_list_listener_method):
+        (WebKit::core):
+        (webkit_dom_test_media_query_list_listener_finalize):
+        (webkit_dom_test_media_query_list_listener_set_property):
+        (webkit_dom_test_media_query_list_listener_get_property):
+        (webkit_dom_test_media_query_list_listener_constructed):
+        (webkit_dom_test_media_query_list_listener_class_init):
+        (webkit_dom_test_media_query_list_listener_init):
+        (WebKit::wrapTestMediaQueryListListener):
+        * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h: Added.
+        * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h: Added.
+        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: Added.
+        (WebCore::JSTestMediaQueryListListenerConstructor::classInfo):
+        (WebCore::JSTestMediaQueryListListenerConstructor::createStructure):
+        (WebCore::JSTestMediaQueryListListenerConstructor::JSTestMediaQueryListListenerConstructor):
+        (WebCore::JSTestMediaQueryListListenerConstructor::getOwnPropertySlot):
+        (WebCore::JSTestMediaQueryListListenerConstructor::getOwnPropertyDescriptor):
+        (WebCore::JSTestMediaQueryListListenerPrototype::self):
+        (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertySlot):
+        (WebCore::JSTestMediaQueryListListenerPrototype::getOwnPropertyDescriptor):
+        (WebCore::JSTestMediaQueryListListener::JSTestMediaQueryListListener):
+        (WebCore::JSTestMediaQueryListListener::~JSTestMediaQueryListListener):
+        (WebCore::JSTestMediaQueryListListener::createPrototype):
+        (WebCore::JSTestMediaQueryListListener::getOwnPropertySlot):
+        (WebCore::JSTestMediaQueryListListener::getOwnPropertyDescriptor):
+        (WebCore::jsTestMediaQueryListListenerConstructor):
+        (WebCore::JSTestMediaQueryListListener::getConstructor):
+        (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
+        (WebCore::toJS):
+        (WebCore::toTestMediaQueryListListener):
+        * bindings/scripts/test/JS/JSTestMediaQueryListListener.h: Added.
+        (WebCore::JSTestMediaQueryListListener::classInfo):
+        (WebCore::JSTestMediaQueryListListener::createStructure):
+        (WebCore::JSTestMediaQueryListListener::impl):
+        (WebCore::JSTestMediaQueryListListenerPrototype::classInfo):
+        (WebCore::JSTestMediaQueryListListenerPrototype::createStructure):
+        (WebCore::JSTestMediaQueryListListenerPrototype::JSTestMediaQueryListListenerPrototype):
+        * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h: Added.
+        * bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm: Added.
+        (-[DOMTestMediaQueryListListener dealloc]):
+        (-[DOMTestMediaQueryListListener finalize]):
+        (-[DOMTestMediaQueryListListener method:]):
+        (core):
+        (kit):
+        * bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h: Added.
+        * bindings/scripts/test/TestMediaQueryListListener.idl: Added.
+        * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: Added.
+        (WebCore::TestMediaQueryListListenerInternal::V8_USE):
+        (WebCore::TestMediaQueryListListenerInternal::methodCallback):
+        (WebCore::ConfigureV8TestMediaQueryListListenerTemplate):
+        (WebCore::V8TestMediaQueryListListener::GetRawTemplate):
+        (WebCore::V8TestMediaQueryListListener::GetTemplate):
+        (WebCore::V8TestMediaQueryListListener::HasInstance):
+        (WebCore::V8TestMediaQueryListListener::wrapSlow):
+        (WebCore::V8TestMediaQueryListListener::derefObject):
+        * bindings/scripts/test/V8/V8TestMediaQueryListListener.h: Added.
+        (WebCore::V8TestMediaQueryListListener::toNative):
+        (WebCore::V8TestMediaQueryListListener::wrap):
+        (WebCore::toV8):
+
 2010-10-21  takano takumi  <takano1 at asia.apple.com>
 
         Reviewed by Dan Bernstein.
diff --git a/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp
new file mode 100644
index 0000000..7543fc4
--- /dev/null
+++ b/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/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.h
new file mode 100644
index 0000000..8f89836
--- /dev/null
+++ b/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 at 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/GObject/WebKitDOMTestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp
new file mode 100644
index 0000000..af9300d
--- /dev/null
+++ b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.cpp
@@ -0,0 +1,163 @@
+/*
+    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 "ExceptionCode.h"
+#include "JSMainThreadExecState.h"
+#include "TestMediaQueryListListener.h"
+#include "WebKitDOMBinding.h"
+#include "gobject/ConvertToUTF8String.h"
+#include "webkit/WebKitDOMMediaQueryListListener.h"
+#include "webkit/WebKitDOMMediaQueryListListenerPrivate.h"
+#include "webkit/WebKitDOMTestMediaQueryListListener.h"
+#include "webkit/WebKitDOMTestMediaQueryListListenerPrivate.h"
+#include "webkitmarshal.h"
+#include "webkitprivate.h"
+
+namespace WebKit {
+    
+gpointer kit(WebCore::TestMediaQueryListListener* obj)
+{
+    g_return_val_if_fail(obj, 0);
+
+    if (gpointer ret = DOMObjectCache::get(obj))
+        return ret;
+
+    return DOMObjectCache::put(obj, WebKit::wrapTestMediaQueryListListener(obj));
+}
+    
+} // namespace WebKit //
+
+void
+webkit_dom_test_media_query_list_listener_method(WebKitDOMTestMediaQueryListListener* self, WebKitDOMMediaQueryListListener* listener)
+{
+    WebCore::JSMainThreadNullState state;
+    g_return_if_fail(self);
+    WebCore::TestMediaQueryListListener * item = WebKit::core(self);
+    g_return_if_fail(listener);
+    WebCore::MediaQueryListListener * converted_listener = NULL;
+    if (listener != NULL) {
+        converted_listener = WebKit::core(listener);
+        g_return_if_fail(converted_listener);
+    }
+    item->method(converted_listener);
+}
+
+
+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
new file mode 100644
index 0000000..94e825e
--- /dev/null
+++ b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h
@@ -0,0 +1,54 @@
+/*
+    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);
+
+WEBKIT_API void
+webkit_dom_test_media_query_list_listener_method(WebKitDOMTestMediaQueryListListener* self, WebKitDOMMediaQueryListListener* listener);
+
+G_END_DECLS
+
+#endif /* WebKitDOMTestMediaQueryListListener_h */
diff --git a/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h
new file mode 100644
index 0000000..c8ba6cc
--- /dev/null
+++ b/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListenerPrivate.h
@@ -0,0 +1,39 @@
+/*
+    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);
+
+    gpointer
+    kit(WebCore::TestMediaQueryListListener* node);
+
+} // namespace WebKit
+
+#endif /* WEB_KIT_DOM_TEST_MEDIA_QUERY_LIST_LISTENER_PRIVATE_H */
diff --git a/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
new file mode 100644
index 0000000..cde9672
--- /dev/null
+++ b/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
@@ -0,0 +1,194 @@
+/*
+    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 "JSMediaQueryListListener.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());
+    MediaQueryListListener* listener = toMediaQueryListListener(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
new file mode 100644
index 0000000..1863703
--- /dev/null
+++ b/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.h
@@ -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.
+*/
+
+#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/ObjC/DOMTestMediaQueryListListener.h b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h
new file mode 100644
index 0000000..20be806
--- /dev/null
+++ b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2006 Samuel Weinig <sam.weinig at 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
+
+ at class DOMMediaQueryListListener;
+
+ at interface DOMTestMediaQueryListListener : DOMObject
+- (void)method:(DOMMediaQueryListListener *)listener;
+ at end
+
+#endif
diff --git a/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm
new file mode 100644
index 0000000..74e3d52
--- /dev/null
+++ b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListener.mm
@@ -0,0 +1,95 @@
+/*
+ * 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)
+
+ at 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));
+}
+
+ at 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
new file mode 100644
index 0000000..b1421a3
--- /dev/null
+++ b/WebCore/bindings/scripts/test/ObjC/DOMTestMediaQueryListListenerInternal.h
@@ -0,0 +1,38 @@
+/*
+ * 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/TestMediaQueryListListener.idl b/WebCore/bindings/scripts/test/TestMediaQueryListListener.idl
new file mode 100644
index 0000000..536393b
--- /dev/null
+++ b/WebCore/bindings/scripts/test/TestMediaQueryListListener.idl
@@ -0,0 +1,32 @@
+/*
+ * 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/V8/V8TestMediaQueryListListener.cpp b/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp
new file mode 100644
index 0000000..1f78f39
--- /dev/null
+++ b/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp
@@ -0,0 +1,109 @@
+/*
+    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 "RuntimeEnabledFeatures.h"
+#include "V8Binding.h"
+#include "V8BindingMacros.h"
+#include "V8BindingState.h"
+#include "V8DOMWrapper.h"
+#include "V8IsolatedContext.h"
+#include "V8MediaQueryListListener.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(MediaQueryListListener*, listener, V8MediaQueryListListener::HasInstance(args[0]) ? V8MediaQueryListListener::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0);
+    imp->method(listener);
+    return v8::Handle<v8::Value>();
+}
+
+} // namespace TestMediaQueryListListenerInternal
+
+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,
+        0, 0);
+    v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate();
+    v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate();
+    
+
+    // Custom Signature 'method'
+    const int methodArgc = 1;
+    v8::Handle<v8::FunctionTemplate> methodArgv[methodArgc] = { V8MediaQueryListListener::GetRawTemplate() };
+    v8::Handle<v8::Signature> methodSignature = v8::Signature::New(desc, methodArgc, methodArgv);
+    proto->Set(v8::String::New("method"), v8::FunctionTemplate::New(TestMediaQueryListListenerInternal::methodCallback, v8::Handle<v8::Value>(), methodSignature));
+
+    // 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
new file mode 100644
index 0000000..908d9cd
--- /dev/null
+++ b/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.h
@@ -0,0 +1,72 @@
+/*
+    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

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list