[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

andreas.kling at nokia.com andreas.kling at nokia.com
Sun Feb 20 23:59:23 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit 8c832484c4add3d44732c0ef73a71b84c4bd1a75
Author: andreas.kling at nokia.com <andreas.kling at nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jan 27 15:07:35 2011 +0000

    2011-01-27  Andreas Kling  <kling at webkit.org>
    
            Reviewed by Kenneth Rohde Christiansen.
    
            [Qt][WK2] Add QWKPage APIs regarding engine process availability
            https://bugs.webkit.org/show_bug.cgi?id=53237
    
            QWKPage will now emit engineConnected() and engineDisconnected()
            when the web process crashes and is relaunched respectively.
    
            Also added QWKPage::isConnectedToEngine() for convenience.
    
            * UIProcess/API/qt/qwkpage.cpp:
            (QWKPagePrivate::QWKPagePrivate):
            (QWKPagePrivate::didRelaunchProcess):
            (QWKPagePrivate::processDidCrash):
            (QWKPage::isConnectedToEngine):
            * UIProcess/API/qt/qwkpage.h:
            * UIProcess/API/qt/qwkpage_p.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76798 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/Source/WebKit2/ChangeLog b/Source/WebKit2/ChangeLog
index 9bd9ddf..6c7843f 100644
--- a/Source/WebKit2/ChangeLog
+++ b/Source/WebKit2/ChangeLog
@@ -1,3 +1,23 @@
+2011-01-27  Andreas Kling  <kling at webkit.org>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [Qt][WK2] Add QWKPage APIs regarding engine process availability
+        https://bugs.webkit.org/show_bug.cgi?id=53237
+
+        QWKPage will now emit engineConnected() and engineDisconnected()
+        when the web process crashes and is relaunched respectively.
+
+        Also added QWKPage::isConnectedToEngine() for convenience.
+
+        * UIProcess/API/qt/qwkpage.cpp:
+        (QWKPagePrivate::QWKPagePrivate):
+        (QWKPagePrivate::didRelaunchProcess):
+        (QWKPagePrivate::processDidCrash):
+        (QWKPage::isConnectedToEngine):
+        * UIProcess/API/qt/qwkpage.h:
+        * UIProcess/API/qt/qwkpage_p.h:
+
 2011-01-27  Balazs Kelemen  <kbalazs at webkit.org>
 
         Reviewed by Andreas Kling.
diff --git a/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp b/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
index 0ef603c..eb248e1 100644
--- a/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
+++ b/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
@@ -89,6 +89,7 @@ QWKPagePrivate::QWKPagePrivate(QWKPage* qq, QWKContext* c)
     , preferences(0)
     , createNewPageFn(0)
     , backingStoreType(QGraphicsWKView::Simple)
+    , isConnectedToEngine(true)
 {
     memset(actions, 0, sizeof(actions));
     page = context->d->context->createWebPage(this, 0);
@@ -391,11 +392,15 @@ void QWKPagePrivate::didRelaunchProcess()
     QGraphicsWKView* wkView = static_cast<QGraphicsWKView*>(view);
     if (wkView)
         q->setViewportSize(wkView->size().toSize());
+
+    isConnectedToEngine = true;
+    emit q->engineConnected();
 }
 
 void QWKPagePrivate::processDidCrash()
 {
-    emit q->processCrashed();
+    isConnectedToEngine = false;
+    emit q->engineDisconnected();
 }
 
 QWKPage::QWKPage(QWKContext* context)
@@ -780,4 +785,9 @@ void QWKPagePrivate::didFindZoomableArea(const IntRect& area)
     emit q->zoomableAreaFound(QRect(area));
 }
 
+bool QWKPage::isConnectedToEngine() const
+{
+    return d->isConnectedToEngine;
+}
+
 #include "moc_qwkpage.cpp"
diff --git a/Source/WebKit2/UIProcess/API/qt/qwkpage.h b/Source/WebKit2/UIProcess/API/qt/qwkpage.h
index 163ba41..bb0b154 100644
--- a/Source/WebKit2/UIProcess/API/qt/qwkpage.h
+++ b/Source/WebKit2/UIProcess/API/qt/qwkpage.h
@@ -117,6 +117,8 @@ public:
 
     void findZoomableAreaForPoint(const QPoint&);
 
+    bool isConnectedToEngine() const;
+
 public:
     Q_SIGNAL void statusBarMessage(const QString&);
     Q_SIGNAL void titleChanged(const QString&);
@@ -133,7 +135,8 @@ public:
     Q_SIGNAL void zoomableAreaFound(const QRect&);
     Q_SIGNAL void focusNextPrevChild(bool);
     Q_SIGNAL void showContextMenu(QMenu*);
-    Q_SIGNAL void processCrashed();
+    Q_SIGNAL void engineConnected();
+    Q_SIGNAL void engineDisconnected();
 
 protected:
     void timerEvent(QTimerEvent*);
diff --git a/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h b/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
index a9243c7..d145885 100644
--- a/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
+++ b/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
@@ -123,6 +123,8 @@ public:
     QPoint tripleClick;
     QBasicTimer tripleClickTimer;
     QGraphicsWKView::BackingStoreType backingStoreType;
+
+    bool isConnectedToEngine;
 };
 
 class QtViewportAttributesPrivate : public QSharedData {

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list