summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/WebKitPart
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/WebKitPart')
-rw-r--r--WebKit/qt/WebKitPart/WebKitFactory.cpp114
-rw-r--r--WebKit/qt/WebKitPart/WebKitFactory.h66
-rw-r--r--WebKit/qt/WebKitPart/WebKitPart.cpp133
-rw-r--r--WebKit/qt/WebKitPart/WebKitPart.desktop12
-rw-r--r--WebKit/qt/WebKitPart/WebKitPart.h106
-rw-r--r--WebKit/qt/WebKitPart/WebKitPart.rc16
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartBrowser.rc46
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartBrowserExtension.cpp40
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartBrowserExtension.h84
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartClient.cpp50
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartClient.h48
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartInterface.cpp55
-rw-r--r--WebKit/qt/WebKitPart/WebKitPartInterface.h54
-rw-r--r--WebKit/qt/WebKitPart/org.kde.WebKitPart.xml10
14 files changed, 0 insertions, 834 deletions
diff --git a/WebKit/qt/WebKitPart/WebKitFactory.cpp b/WebKit/qt/WebKitPart/WebKitFactory.cpp
deleted file mode 100644
index ac43f86..0000000
--- a/WebKit/qt/WebKitPart/WebKitFactory.cpp
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#include "config.h"
-#include "WebKitFactory.h"
-
-#include "WebKitPart.h"
-
-#include <klocale.h>
-#include <kinstance.h>
-#include <kaboutdata.h>
-
-WebKitFactory* WebKitFactory::s_self = 0;
-unsigned long int WebKitFactory::s_refCount = 0;
-KInstance* WebKitFactory::s_instance = 0;
-KAboutData* WebKitFactory::s_about = 0;
-
-WebKitFactory::WebKitFactory(bool clone)
-{
- if (clone)
- ref();
-}
-
-WebKitFactory::~WebKitFactory()
-{
- if (s_self == this) {
- Q_ASSERT(!s_refCount);
-
- delete s_instance;
- delete s_about;
-
- s_instance = 0;
- s_about = 0;
- }
- else
- deref();
-}
-
-KParts::Part* WebKitFactory::createPartObject(QWidget* parentWidget,
- QObject* parentObject,
- const char* className,
- const QStringList& args)
-{
- WebKitPart::GUIProfile prof = WebKitPart::DefaultGUI;
-
- if (strcmp(className, "Browser/View") == 0)
- prof = WebKitPart::BrowserViewGUI;
-
- return new WebKitPart(parentWidget, parentObject, prof);
-}
-
-KInstance* WebKitFactory::instance()
-{
- Q_ASSERT(s_self != 0);
-
- if (!s_instance) {
- s_about = new KAboutData("WebKitPart", I18N_NOOP("WebKit"), "0.1",
- I18N_NOOP("Embeddable HTML/SVG component"),
- KAboutData::License_LGPL);
-
- // FIXME: Add copyright information in the KAboutData!
- s_instance = new KInstance(s_about);
- }
-
- return s_instance;
-}
-
-void WebKitFactory::ref()
-{
- if (!s_refCount && !s_self)
- s_self = new WebKitFactory();
-
- s_refCount++;
-}
-
-void WebKitFactory::deref()
-{
- if(!--s_refCount && s_self) {
- delete s_self;
- s_self = 0;
- }
-}
-
-// Factory entry point
-extern "C" void* init_libWebKitPart()
-{
- return new WebKitFactory(true);
-}
-
-#include "WebKitFactory.moc"
diff --git a/WebKit/qt/WebKitPart/WebKitFactory.h b/WebKit/qt/WebKitPart/WebKitFactory.h
deleted file mode 100644
index ff83437..0000000
--- a/WebKit/qt/WebKitPart/WebKitFactory.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#ifndef WebKitFactory_H
-#define WebKitFactory_H
-
-#include <QObject>
-
-#include <kparts/factory.h>
-
-class KInstance;
-class KAboutData;
-
-class WebKitFactory : public KParts::Factory
-{
-Q_OBJECT
-
-public:
- WebKitFactory(bool clone = false);
- virtual ~WebKitFactory();
-
- virtual KParts::Part* createPartObject(QWidget* parentWidget,
- QObject* parentObject,
- const char* className,
- const QStringList& args);
-
- static KInstance* instance();
-
-
-protected:
- static void ref();
- static void deref();
-
-private:
- static unsigned long s_refCount;
-
- static WebKitFactory* s_self;
- static KInstance* s_instance;
- static KAboutData* s_about;
-};
-
-#endif
diff --git a/WebKit/qt/WebKitPart/WebKitPart.cpp b/WebKit/qt/WebKitPart/WebKitPart.cpp
deleted file mode 100644
index 26c2668..0000000
--- a/WebKit/qt/WebKitPart/WebKitPart.cpp
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- * Copyright (C) 2006 Zack Rusin <zack@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#include "config.h"
-#include "WebKitPart.h"
-
-#include "FrameLoader.h"
-#include "FrameView.h"
-#include "ChromeClientQt.h"
-#include "ContextMenuClientQt.h"
-#include "DragClientQt.h"
-#include "EditorClientQt.h"
-#include "InspectorClientQt.h"
-#include "KURL.h"
-
-#include <QDebug>
-
-#include "Page.h"
-#include "FrameQt.h"
-#include "WebKitFactory.h"
-#include "WebKitPartClient.h"
-#include "WebKitPartBrowserExtension.h"
-
-using namespace WebCore;
-
-WebKitPart::WebKitPart(QWidget* parentWidget, QObject* parentObject, GUIProfile prof)
- : KParts::ReadOnlyPart(parentObject)
- , m_frame(0)
- , m_frameView(0)
- , m_client(0)
-{
- setInstance(WebKitFactory::instance(), prof == BrowserViewGUI && !parentPart());
- initView(parentWidget, prof);
-
- m_extension = new WebKitPartBrowserExtension(this);
-}
-
-WebKitPart::~WebKitPart()
-{
- if (m_frame)
- delete m_frame->page();
-
- delete m_client;
- delete m_extension;
-}
-
-bool WebKitPart::openFile()
-{
- return true;
-}
-
-bool WebKitPart::openUrl(const KUrl& url)
-{
- if (!m_client)
- return false;
-
- emit started(0);
- m_client->openURL(KURL(url.toEncoded()));
- return true;
-}
-
-bool WebKitPart::closeUrl()
-{
- return m_frame->loader()->closeURL();
-}
-
-WebKitPart* WebKitPart::parentPart()
-{
- return qobject_cast<WebKitPart*>(parent());
-}
-
-Frame* WebKitPart::frame()
-{
- return m_frame.get();
-}
-
-void WebKitPart::initView(QWidget* parentWidget, GUIProfile prof)
-{
- if (prof == DefaultGUI)
- setXMLFile("WebKitPart.rc");
- else if (prof == BrowserViewGUI)
- setXMLFile("WebKitPartBrowser.rc");
-
- m_client = new WebKitPartClient(this);
-
- // Initialize WebCore in Qt platform mode...
- Page* page = new Page(new ChromeClientQt(), new ContextMenuClientQt(), new EditorClientQt(), new DragClientQt(), new InspectorClientQt());
- Frame* frame = new FrameQt(page, 0, m_client);
-
- m_frame = frame;
- frame->deref(); // Frames are created with a refcount of 1. Release this ref, since we've assigned it to a RefPtr
-
- page->setMainFrame(frame);
-
- FrameView* frameView = new FrameView(frame);
- m_frameView = frameView;
- frameView->deref(); // FrameViews are created with a refcount of 1. Release this ref, since we've assigned it to a RefPtr
-
- m_frame->setView(frameView);
- m_frameView->setParentWidget(parentWidget);
-
- m_frame->init();
-
- // Initialize KParts widget...
- setWidget(m_frame->view()->qwidget());
-}
-
-#include "WebKitPart.moc"
diff --git a/WebKit/qt/WebKitPart/WebKitPart.desktop b/WebKit/qt/WebKitPart/WebKitPart.desktop
deleted file mode 100644
index a942139..0000000
--- a/WebKit/qt/WebKitPart/WebKitPart.desktop
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Type=Service
-Comment=Embeddable HTML/SVG viewing component
-Comment[x-test]=xxEmbeddable HTML/SVg viewing componentxx
-MimeType=text/html;text/xml;application/xhtml+xml;image/svg+xml;image/svg-xml
-Icon=konqueror
-Name=WebKit
-Name[x-test]=xxWebKitLxx
-ServiceTypes=KParts/ReadOnlyPart,Browser/View
-X-KDE-Library=libWebKitPart
-InitialPreference=10
diff --git a/WebKit/qt/WebKitPart/WebKitPart.h b/WebKit/qt/WebKitPart/WebKitPart.h
deleted file mode 100644
index 6472d44..0000000
--- a/WebKit/qt/WebKitPart/WebKitPart.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#ifndef WebKitPart_H
-#define WebKitPart_H
-
-#include <QObject>
-
-#include <wtf/RefPtr.h>
-#include <kparts/part.h>
-
-namespace WebCore {
- class Frame;
- class FrameView;
-}
-
-class WebKitPartClient;
-class WebKitPartBrowserExtension;
-
-class WebKitPart : public KParts::ReadOnlyPart
-{
-Q_OBJECT
-
-public:
- enum GUIProfile {
- DefaultGUI,
- BrowserViewGUI
- };
-
- WebKitPart(QWidget* parentWidget = 0,
- QObject* parentObject = 0,
- GUIProfile prof = DefaultGUI);
-
- virtual ~WebKitPart();
-
- /**
- * Opens the specified URL @p url.
- *
- * Reimplemented from KParts::ReadOnlyPart::openURL .
- */
- virtual bool openUrl(const KUrl&);
-
- /**
- * Stops loading the document and kills all data requests (for images, etc.)
- */
- virtual bool closeUrl();
-
- /**
- * Returns a pointer to the parent WebKitPart
- * if the part is a frame in an HTML frameset.
- *
- * Returns 0 otherwise.
- */
- WebKitPart* parentPart();
-
-private:
- friend class WebKitPartClient;
-
- /**
- * Returns pointer the current frame.
- */
- WebCore::Frame* frame();
-
- /**
- * Internal empty reimplementation of KParts::ReadOnlyPart::openFile .
- */
- virtual bool openFile();
-
- /**
- * Internal helper method
- */
- void initView(QWidget*, GUIProfile);
-
-private:
- WTF::RefPtr<WebCore::Frame> m_frame;
- WTF::RefPtr<WebCore::FrameView> m_frameView;
-
- WebKitPartClient* m_client;
- WebKitPartBrowserExtension* m_extension;
-};
-
-#endif
diff --git a/WebKit/qt/WebKitPart/WebKitPart.rc b/WebKit/qt/WebKitPart/WebKitPart.rc
deleted file mode 100644
index 886af21..0000000
--- a/WebKit/qt/WebKitPart/WebKitPart.rc
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui name="WebKitPart" version="1">
-<MenuBar>
- <Menu name="edit"><text>&amp;Edit</text>
- <Action name="selectAll" />
- <Separator />
- <Action name="find" />
- <Action name="findNext" />
- <Action name="findPrevious" />
- <Action name="findAheadText" />
- <Action name="findAheadLink" />
- </Menu>
-</MenuBar>
-<ActionProperties>
-</ActionProperties>
-</kpartgui>
diff --git a/WebKit/qt/WebKitPart/WebKitPartBrowser.rc b/WebKit/qt/WebKitPart/WebKitPartBrowser.rc
deleted file mode 100644
index 7fcc844..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartBrowser.rc
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui name="WebKitPart" version="1">
-<MenuBar>
- <Menu name="file"><text>&amp;File</text>
- <Action name="saveBackground" />
- <Action name="saveDocument" />
- <Action name="saveFrame" />
- <Separator />
- <Action name="printFrame" group="print" />
- </Menu>
- <Menu name="edit"><text>&amp;Edit</text>
- <Action name="selectAll" />
- <Separator />
- <Action name="find" />
- <Action name="findNext" />
- <Action name="findPrevious" />
- <Action name="findAheadText" />
- <Action name="findAheadLink" />
- </Menu>
- <Menu name="view"><text>&amp;View</text>
- <Action name="incFontSizes" />
- <Action name="decFontSizes" />
- <Action name="viewDocumentSource" />
- <Action name="viewPageInfo" />
- <Action name="setEncoding" />
- <Action name="useStylesheet" />
- <ActionList name="debugScriptList" />
-<!--
-<!--
- <Separator />
- <Action name="debugRenderTree" />
- <Action name="debugDOMTree" />
--->
- </Menu>
-</MenuBar>
-<ToolBar name="mainToolBar"><text>Main Toolbar</text>
- <Action name="find" />
- <Separator />
- <Action name="incFontSizes" />
- <Action name="decFontSizes" />
- <ActionList name="loadImages" />
-</ToolBar>
-<ActionProperties>
- <Action shortcut="F7" name="caretMode" />
-</ActionProperties>
-</kpartgui>
diff --git a/WebKit/qt/WebKitPart/WebKitPartBrowserExtension.cpp b/WebKit/qt/WebKitPart/WebKitPartBrowserExtension.cpp
deleted file mode 100644
index 66bf854..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartBrowserExtension.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#include "config.h"
-#include "WebKitPartBrowserExtension.h"
-
-WebKitPartBrowserExtension::WebKitPartBrowserExtension(KParts::ReadOnlyPart* part)
- : KParts::BrowserExtension(part)
-{
-}
-
-WebKitPartBrowserExtension::~WebKitPartBrowserExtension()
-{
-}
-
-// vim: ts=4 sw=4 et
diff --git a/WebKit/qt/WebKitPart/WebKitPartBrowserExtension.h b/WebKit/qt/WebKitPart/WebKitPartBrowserExtension.h
deleted file mode 100644
index 5ef4c0a..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartBrowserExtension.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#ifndef WebKitPartBrowserExtension_H
-#define WebKitPartBrowserExtension_H
-
-#include <kparts/browserextension.h>
-
-class WebKitPartBrowserExtension : public KParts::BrowserExtension
-{
-public:
- WebKitPartBrowserExtension(KParts::ReadOnlyPart*);
- virtual ~WebKitPartBrowserExtension();
-};
-
-#endif
-
-// vim: ts=4 sw=4 et
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#ifndef WebKitPartBrowserExtension_H
-#define WebKitPartBrowserExtension_H
-
-#include <kparts/browserextension.h>
-
-class WebKitPartBrowserExtension : public KParts::BrowserExtension
-{
-public:
- WebKitPartBrowserExtension(KParts::ReadOnlyPart*);
- virtual ~WebKitPartBrowserExtension();
-};
-
-#endif
-
-// vim: ts=4 sw=4 et
diff --git a/WebKit/qt/WebKitPart/WebKitPartClient.cpp b/WebKit/qt/WebKitPart/WebKitPartClient.cpp
deleted file mode 100644
index 2c89e7e..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartClient.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#include "config.h"
-#include "WebKitPartClient.h"
-
-#include "WebKitPart.h"
-
-using namespace WebCore;
-
-WebKitPartClient::WebKitPartClient(WebKitPart* part)
- : FrameQtClientDefault()
- , m_part(part)
-{
-}
-
-WebKitPartClient::~WebKitPartClient()
-{
-}
-
-void WebKitPartClient::loadFinished() const
-{
- emit m_part->completed();
-}
-
-// vim: ts=4 sw=4 et
diff --git a/WebKit/qt/WebKitPart/WebKitPartClient.h b/WebKit/qt/WebKitPart/WebKitPartClient.h
deleted file mode 100644
index 8874334..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartClient.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#ifndef WebKitPartClient_H
-#define WebKitPartClient_H
-
-#include "FrameQt.h"
-
-class WebKitPart;
-class WebKitPartClient : public WebCore::FrameQtClientDefault
-{
-public:
- WebKitPartClient(WebKitPart*);
- virtual ~WebKitPartClient();
-
- virtual void loadFinished() const;
-
-private:
- WebKitPart* m_part;
-};
-
-#endif
-
-// vim: ts=4 sw=4 et
diff --git a/WebKit/qt/WebKitPart/WebKitPartInterface.cpp b/WebKit/qt/WebKitPart/WebKitPartInterface.cpp
deleted file mode 100644
index ae49b96..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartInterface.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#include "config.h"
-#include "WebKitPartInterface.h"
-
-#include "WebKitPart.h"
-
-WebKitPartInterface::WebKitPartInterface(WebKitPart* part)
- : QObject(part)
- , m_part(part)
-{
- Q_ASSERT(m_part != 0);
-}
-
-WebKitPartInterface::~WebKitPartInterface()
-{
-}
-
-
-KUrl WebKitPartInterface::url() const
-{
- return m_part->url();
-}
-
-bool WebKitPartInterface::closeURL()
-{
- return m_part->closeUrl();
-}
-
-#include "WebKitPartInterface.moc"
diff --git a/WebKit/qt/WebKitPart/WebKitPartInterface.h b/WebKit/qt/WebKitPart/WebKitPartInterface.h
deleted file mode 100644
index a011370..0000000
--- a/WebKit/qt/WebKitPart/WebKitPartInterface.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
- *
- * All rights reserved.
- *
- * 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.
- */
-
-#ifndef WebKitPartInterface_H
-#define WebKitPartInterface_H
-
-#include <QObject>
-
-class KUrl;
-class WebKitPart;
-
-// Exposed to DBUS.
-class WebKitPartInterface : public QObject
-{
-Q_OBJECT
-
-public:
- WebKitPartInterface(WebKitPart*);
- virtual ~WebKitPartInterface();
-
-public Q_SLOTS:
- KUrl url() const;
-
- bool closeURL();
-
-private:
- WebKitPart* m_part;
-};
-
-#endif
diff --git a/WebKit/qt/WebKitPart/org.kde.WebKitPart.xml b/WebKit/qt/WebKitPart/org.kde.WebKitPart.xml
deleted file mode 100644
index 84cacd1..0000000
--- a/WebKit/qt/WebKitPart/org.kde.WebKitPart.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
-"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
-<node>
- <interface name="org.kde.WebKitPart">
- <property name="url" type="s" access="read"/>
- <method name="closeURL">
- <arg type="b" direction="out"/>
- </method>
- </interface>
-</node>