2011-01-25 Andreas Kling <kling@webkit.org>
authorandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2011 12:43:02 +0000 (12:43 +0000)
committerandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2011 12:43:02 +0000 (12:43 +0000)
        Reviewed by Kenneth Rohde Christiansen.

        [Qt][WK2] Add QWKPage::processCrashed() signal
        https://bugs.webkit.org/show_bug.cgi?id=53076

        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPagePrivate::processDidCrash):
        * UIProcess/API/qt/qwkpage.h:
        * UIProcess/API/qt/qwkpage_p.h:

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
Source/WebKit2/UIProcess/API/qt/qwkpage.h
Source/WebKit2/UIProcess/API/qt/qwkpage_p.h

index 8a8ed30..7d20887 100644 (file)
@@ -1,3 +1,15 @@
+2011-01-25  Andreas Kling  <kling@webkit.org>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [Qt][WK2] Add QWKPage::processCrashed() signal
+        https://bugs.webkit.org/show_bug.cgi?id=53076
+
+        * UIProcess/API/qt/qwkpage.cpp:
+        (QWKPagePrivate::processDidCrash):
+        * UIProcess/API/qt/qwkpage.h:
+        * UIProcess/API/qt/qwkpage_p.h:
+
 2011-01-24  Anders Carlsson  <andersca@apple.com>
 
         Fix build.
index 72c1322..0ef603c 100644 (file)
@@ -393,6 +393,11 @@ void QWKPagePrivate::didRelaunchProcess()
         q->setViewportSize(wkView->size().toSize());
 }
 
+void QWKPagePrivate::processDidCrash()
+{
+    emit q->processCrashed();
+}
+
 QWKPage::QWKPage(QWKContext* context)
     : d(new QWKPagePrivate(this, context))
 {
index e0bb4c3..163ba41 100644 (file)
@@ -133,6 +133,7 @@ public:
     Q_SIGNAL void zoomableAreaFound(const QRect&);
     Q_SIGNAL void focusNextPrevChild(bool);
     Q_SIGNAL void showContextMenu(QMenu*);
+    Q_SIGNAL void processCrashed();
 
 protected:
     void timerEvent(QTimerEvent*);
index 420ff62..ec1a6a2 100644 (file)
@@ -61,7 +61,7 @@ public:
     void pageDidLeaveAcceleratedCompositing() { }
 #endif // USE(ACCELERATED_COMPOSITING)
     virtual void pageDidRequestScroll(const WebCore::IntSize&);
-    virtual void processDidCrash() { }
+    virtual void processDidCrash();
     virtual void didRelaunchProcess();
     virtual void didChangeContentsSize(const WebCore::IntSize&);
     virtual void didFindZoomableArea(const WebCore::IntRect&);