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"
28 #include "TestInterface.h"
29 #include "TestSupplemental.h"
30 #include "WebDOMString.h"
31 #include "WebExceptionHandler.h"
32 #include "wtf/text/AtomicString.h"
33 #include <wtf/GetPtr.h>
34 #include <wtf/RefPtr.h>
36 struct WebDOMTestInterface::WebDOMTestInterfacePrivate {
37 WebDOMTestInterfacePrivate(WebCore::TestInterface* object = 0)
42 RefPtr<WebCore::TestInterface> impl;
45 WebDOMTestInterface::WebDOMTestInterface()
51 WebDOMTestInterface::WebDOMTestInterface(WebCore::TestInterface* impl)
53 , m_impl(new WebDOMTestInterfacePrivate(impl))
57 WebDOMTestInterface::WebDOMTestInterface(const WebDOMTestInterface& copy)
60 m_impl = copy.impl() ? new WebDOMTestInterfacePrivate(copy.impl()) : 0;
63 WebDOMTestInterface& WebDOMTestInterface::operator=(const WebDOMTestInterface& copy)
66 m_impl = copy.impl() ? new WebDOMTestInterfacePrivate(copy.impl()) : 0;
70 WebCore::TestInterface* WebDOMTestInterface::impl() const
72 return m_impl ? m_impl->impl.get() : 0;
75 WebDOMTestInterface::~WebDOMTestInterface()
81 #if ENABLE(Condition11) || ENABLE(Condition12)
82 WebDOMString WebDOMTestInterface::str1() const
85 return WebDOMString();
87 return static_cast<const WTF::String&>(TestSupplemental::str1(impl()));
91 #if ENABLE(Condition11) || ENABLE(Condition12)
92 WebDOMString WebDOMTestInterface::str2() const
95 return WebDOMString();
97 return static_cast<const WTF::String&>(TestSupplemental::str2(impl()));
100 void WebDOMTestInterface::setStr2(const WebDOMString& newStr2)
105 TestSupplemental::setStr2(impl(), newStr2);
109 WebCore::TestInterface* toWebCore(const WebDOMTestInterface& wrapper)
111 return wrapper.impl();
114 WebDOMTestInterface toWebKit(WebCore::TestInterface* value)
116 return WebDOMTestInterface(value);
119 #endif // ENABLE(Condition1) || ENABLE(Condition2)