1/*
2    This file is part of the WebKit open source project.
3    This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Library General Public
7    License as published by the Free Software Foundation; either
8    version 2 of the License, or (at your option) any later version.
9
10    This library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14
15    You should have received a copy of the GNU Library General Public License
16    along with this library; see the file COPYING.LIB.  If not, write to
17    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18    Boston, MA 02110-1301, USA.
19*/
20
21#include "config.h"
22#include "WebKitDOMFloat64Array.h"
23
24#include "CSSImportRule.h"
25#include "DOMObjectCache.h"
26#include "ExceptionCode.h"
27#include "JSMainThreadExecState.h"
28#include "WebKitDOMFloat32ArrayPrivate.h"
29#include "WebKitDOMFloat64ArrayPrivate.h"
30#include "WebKitDOMInt32ArrayPrivate.h"
31#include "WebKitDOMNodePrivate.h"
32#include "WebKitDOMPrivate.h"
33#include "gobject/ConvertToUTF8String.h"
34#include <wtf/GetPtr.h>
35#include <wtf/RefPtr.h>
36
37namespace WebKit {
38
39WebKitDOMFloat64Array* kit(WebCore::Float64Array* obj)
40{
41    return WEBKIT_DOM_FLOAT64ARRAY(kit(static_cast<WebCore::Node*>(obj)));
42}
43
44WebCore::Float64Array* core(WebKitDOMFloat64Array* request)
45{
46    return request ? static_cast<WebCore::Float64Array*>(WEBKIT_DOM_OBJECT(request)->coreObject) : 0;
47}
48
49WebKitDOMFloat64Array* wrapFloat64Array(WebCore::Float64Array* coreObject)
50{
51    ASSERT(coreObject);
52    return WEBKIT_DOM_FLOAT64ARRAY(g_object_new(WEBKIT_DOM_TYPE_FLOAT64ARRAY, "core-object", coreObject, NULL));
53}
54
55} // namespace WebKit
56
57G_DEFINE_TYPE(WebKitDOMFloat64Array, webkit_dom_float64array, WEBKIT_DOM_TYPE_ARRAY_BUFFER_VIEW)
58
59static void webkit_dom_float64array_class_init(WebKitDOMFloat64ArrayClass* requestClass)
60{
61}
62
63static void webkit_dom_float64array_init(WebKitDOMFloat64Array* request)
64{
65}
66
67WebKitDOMInt32Array*
68webkit_dom_float64array_foo(WebKitDOMFloat64Array* self, WebKitDOMFloat32Array* array)
69{
70    WebCore::JSMainThreadNullState state;
71    g_return_val_if_fail(WEBKIT_DOM_IS_FLOAT64ARRAY(self), 0);
72    g_return_val_if_fail(WEBKIT_DOM_IS_FLOAT32ARRAY(array), 0);
73    WebCore::Float64Array* item = WebKit::core(self);
74    WebCore::Float32Array* convertedArray = WebKit::core(array);
75    RefPtr<WebCore::Int32Array> gobjectResult = WTF::getPtr(item->foo(convertedArray));
76    return WebKit::kit(gobjectResult.get());
77}
78
79