2006-11-12 Simon Hausmann <hausmann@kde.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Nov 2006 15:18:32 +0000 (15:18 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Nov 2006 15:18:32 +0000 (15:18 +0000)
        Reviewed by Sam Weinig.

        Fix Qt build. Missing AbstractShared implementation.
        http://bugs.webkit.org/show_bug.cgi?id=11581

        * loader/qt/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::ref):
        (WebCore::FrameLoaderClientQt::deref):
        * loader/qt/FrameLoaderClientQt.h:
        * platform/qt/ChromeClientQt.cpp:
        (WebCore::ChromeClientQt::ref):
        (WebCore::ChromeClientQt::deref):
        * platform/qt/ChromeClientQt.h:
        * platform/qt/EditorClientQt.cpp:
        (WebCore::EditorClientQt::ref):
        (WebCore::EditorClientQt::deref):
        * platform/qt/EditorClientQt.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17744 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/loader/qt/FrameLoaderClientQt.cpp
WebCore/loader/qt/FrameLoaderClientQt.h
WebCore/platform/qt/ChromeClientQt.cpp
WebCore/platform/qt/ChromeClientQt.h
WebCore/platform/qt/EditorClientQt.cpp
WebCore/platform/qt/EditorClientQt.h

index ca533b7a658eb8ad61e8fc7a2eb98f05740d723c..619c454ac84ca66863a6663708687b40b9e5431a 100644 (file)
@@ -1,3 +1,23 @@
+2006-11-12  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Sam Weinig.
+
+        Fix Qt build. Missing AbstractShared implementation.
+        http://bugs.webkit.org/show_bug.cgi?id=11581
+
+        * loader/qt/FrameLoaderClientQt.cpp:
+        (WebCore::FrameLoaderClientQt::ref):
+        (WebCore::FrameLoaderClientQt::deref):
+        * loader/qt/FrameLoaderClientQt.h:
+        * platform/qt/ChromeClientQt.cpp:
+        (WebCore::ChromeClientQt::ref):
+        (WebCore::ChromeClientQt::deref):
+        * platform/qt/ChromeClientQt.h:
+        * platform/qt/EditorClientQt.cpp:
+        (WebCore::EditorClientQt::ref):
+        (WebCore::EditorClientQt::deref):
+        * platform/qt/EditorClientQt.h:
+
 2006-11-13  Mark Rowe  <bdash@webkit.org>
 
         Reviewed by Mitz.
index 7ffa3aeff7f496ab9fc43eaf13e5ea3263cd5038..daaab039ff6f42e72697b44bef9e1b106d4b95a7 100644 (file)
@@ -51,6 +51,15 @@ void FrameLoaderClientQt::detachFrameLoader()
     notImplemented();
 }
 
+void FrameLoaderClientQt::ref()
+{
+    Shared<FrameLoaderClientQt>::ref();
+}
+
+void FrameLoaderClientQt::deref()
+{
+    Shared<FrameLoaderClientQt>::deref();
+}
 
 bool FrameLoaderClientQt::hasWebView() const
 {
index ec6e24dd081c68fced33d005d8232a5a0792ddc0..649e8ed64f2f433950ff4fbd33e8bcb90bdfaa2f 100644 (file)
@@ -32,6 +32,7 @@
 #include "KURL.h"
 #include "FrameQt.h"
 #include "FrameLoader.h"
+#include "Shared.h"
 
 namespace WebCore {
 
@@ -44,13 +45,15 @@ namespace WebCore {
 
     struct LoadErrorResetToken;
 
-    class FrameLoaderClientQt : public FrameLoaderClient
-    {
+    class FrameLoaderClientQt : public FrameLoaderClient, public Shared<FrameLoaderClientQt> {
     public:
         FrameLoaderClientQt();
         ~FrameLoaderClientQt();
         virtual void detachFrameLoader();
 
+        virtual void ref();
+        virtual void deref();
+
         virtual bool hasWebView() const; // mainly for assertions
         virtual bool hasFrameView() const; // ditto
 
index c404fa87380f5d36d21f0b53a13194f75a8fb6c4..51d2dd779e41b1661fad1a2334dc955c7ed0422c 100644 (file)
@@ -59,6 +59,15 @@ ChromeClientQt::~ChromeClientQt()
     
 }
 
+void ChromeClientQt::ref()
+{
+    Shared<ChromeClientQt>::ref();
+}
+
+void ChromeClientQt::deref()
+{
+    Shared<ChromeClientQt>::deref();
+}
 
 void ChromeClientQt::setWindowRect(const FloatRect&)
 {
index 0a4b4f09494ffc979c0a416c6c100a7d43e52a2b..e9409d3423bcaf8e3896c9ead93d2a81d4fde50e 100644 (file)
 
 #include "ChromeClient.h"
 #include "FloatRect.h"
+#include "Shared.h"
 
 namespace WebCore {
 
     class FloatRect;
     class Page;
     struct FrameLoadRequest;
-    
-    class ChromeClientQt : public ChromeClient
-    {
+
+    class ChromeClientQt : public ChromeClient, public Shared<ChromeClientQt> {
     public:
         ChromeClientQt();
         virtual ~ChromeClientQt();
 
+        virtual void ref();
+        virtual void deref();
+
         virtual void setWindowRect(const FloatRect&);
         virtual FloatRect windowRect();
         
index 12b9bf563c5e0840240906aee855381717bae935..2acb64e85768e619f18a8be2fe978c4d40cc46f3 100644 (file)
 
 namespace WebCore {
 
+void EditorClientQt::ref()
+{
+    Shared<EditorClientQt>::ref();
+}
+
+void EditorClientQt::deref()
+{
+    Shared<EditorClientQt>::deref();
+}
+
 bool EditorClientQt::shouldDeleteRange(Range*)
 {
     notImplemented();
index 40d884ab110627d4f9f0eed6a9c05b2d64dc5718..ea53b3af8ec2f9e956e3dd783914b2a2b186d4f4 100644 (file)
 #define EditorClientQt_H
 
 #include "EditorClient.h"
+#include "Shared.h"
 
 namespace WebCore {
 
-class EditorClientQt : public EditorClient {
+class EditorClientQt : public EditorClient, public Shared<EditorClientQt> {
 public:
+    virtual void ref();
+    virtual void deref();
+
     virtual bool shouldDeleteRange(Range*);
     virtual bool shouldShowDeleteInterface(HTMLElement*);