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 "WebDOMTestOverloadedConstructors.h"
23
24#include "TestOverloadedConstructors.h"
25#include "WebExceptionHandler.h"
26#include <wtf/GetPtr.h>
27#include <wtf/RefPtr.h>
28
29struct WebDOMTestOverloadedConstructors::WebDOMTestOverloadedConstructorsPrivate {
30    WebDOMTestOverloadedConstructorsPrivate(WebCore::TestOverloadedConstructors* object = 0)
31        : impl(object)
32    {
33    }
34
35    RefPtr<WebCore::TestOverloadedConstructors> impl;
36};
37
38WebDOMTestOverloadedConstructors::WebDOMTestOverloadedConstructors()
39    : WebDOMObject()
40    , m_impl(0)
41{
42}
43
44WebDOMTestOverloadedConstructors::WebDOMTestOverloadedConstructors(WebCore::TestOverloadedConstructors* impl)
45    : WebDOMObject()
46    , m_impl(new WebDOMTestOverloadedConstructorsPrivate(impl))
47{
48}
49
50WebDOMTestOverloadedConstructors::WebDOMTestOverloadedConstructors(const WebDOMTestOverloadedConstructors& copy)
51    : WebDOMObject()
52{
53    m_impl = copy.impl() ? new WebDOMTestOverloadedConstructorsPrivate(copy.impl()) : 0;
54}
55
56WebDOMTestOverloadedConstructors& WebDOMTestOverloadedConstructors::operator=(const WebDOMTestOverloadedConstructors& copy)
57{
58    delete m_impl;
59    m_impl = copy.impl() ? new WebDOMTestOverloadedConstructorsPrivate(copy.impl()) : 0;
60    return *this;
61}
62
63WebCore::TestOverloadedConstructors* WebDOMTestOverloadedConstructors::impl() const
64{
65    return m_impl ? WTF::getPtr(m_impl->impl) : 0;
66}
67
68WebDOMTestOverloadedConstructors::~WebDOMTestOverloadedConstructors()
69{
70    delete m_impl;
71    m_impl = 0;
72}
73
74WebCore::TestOverloadedConstructors* toWebCore(const WebDOMTestOverloadedConstructors& wrapper)
75{
76    return wrapper.impl();
77}
78
79WebDOMTestOverloadedConstructors toWebKit(WebCore::TestOverloadedConstructors* value)
80{
81    return WebDOMTestOverloadedConstructors(value);
82}
83