2
* This file is part of the WebKit open source project.
3
* This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
23
#if ENABLE(Condition1) || ENABLE(Condition2)
25
#include "WebDOMTestInterface.h"
29
#include "TestSupplemental.h"
30
#include "WebDOMNode.h"
31
#include "WebDOMString.h"
32
#include "WebExceptionHandler.h"
33
#include "wtf/text/AtomicString.h"
34
#include <wtf/GetPtr.h>
35
#include <wtf/RefPtr.h>
37
struct WebDOMTestInterface::WebDOMTestInterfacePrivate {
38
WebDOMTestInterfacePrivate(WebCore::TestInterface* object = 0)
43
RefPtr<WebCore::TestInterface> impl;
46
WebDOMTestInterface::WebDOMTestInterface()
52
WebDOMTestInterface::WebDOMTestInterface(WebCore::TestInterface* impl)
54
, m_impl(new WebDOMTestInterfacePrivate(impl))
58
WebDOMTestInterface::WebDOMTestInterface(const WebDOMTestInterface& copy)
61
m_impl = copy.impl() ? new WebDOMTestInterfacePrivate(copy.impl()) : 0;
64
WebDOMTestInterface& WebDOMTestInterface::operator=(const WebDOMTestInterface& copy)
67
m_impl = copy.impl() ? new WebDOMTestInterfacePrivate(copy.impl()) : 0;
71
WebCore::TestInterface* WebDOMTestInterface::impl() const
73
return m_impl ? WTF::getPtr(m_impl->impl) : 0;
76
WebDOMTestInterface::~WebDOMTestInterface()
82
#if ENABLE(Condition11) || ENABLE(Condition12)
83
WebDOMString WebDOMTestInterface::supplementalStr1() const
86
return WebDOMString();
88
return static_cast<const WTF::String&>(TestSupplemental::supplementalStr1(impl()));
92
#if ENABLE(Condition11) || ENABLE(Condition12)
93
WebDOMString WebDOMTestInterface::supplementalStr2() const
96
return WebDOMString();
98
return static_cast<const WTF::String&>(TestSupplemental::supplementalStr2(impl()));
101
void WebDOMTestInterface::setSupplementalStr2(const WebDOMString& newSupplementalStr2)
106
TestSupplemental::setSupplementalStr2(impl(), newSupplementalStr2);
110
#if ENABLE(Condition11) || ENABLE(Condition12)
111
WebDOMNode WebDOMTestInterface::supplementalNode() const
116
return toWebKit(WTF::getPtr(TestSupplemental::supplementalNode(impl())));
119
void WebDOMTestInterface::setSupplementalNode(const WebDOMNode& newSupplementalNode)
124
TestSupplemental::setSupplementalNode(impl(), toWebCore(newSupplementalNode));
129
#if ENABLE(Condition11) || ENABLE(Condition12)
130
void WebDOMTestInterface::supplementalMethod1()
135
WebCore::TestSupplemental::supplementalMethod1(impl());
141
#if ENABLE(Condition11) || ENABLE(Condition12)
142
void WebDOMTestInterface::supplementalMethod4()
147
WebCore::TestSupplemental::supplementalMethod4(impl());
152
WebCore::TestInterface* toWebCore(const WebDOMTestInterface& wrapper)
154
return wrapper.impl();
157
WebDOMTestInterface toWebKit(WebCore::TestInterface* value)
159
return WebDOMTestInterface(value);
162
#endif // ENABLE(Condition1) || ENABLE(Condition2)