Changeset 76798 in webkit
- Timestamp:
- Jan 27, 2011 7:07:35 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r76797 r76798 1 2011-01-27 Andreas Kling <kling@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt][WK2] Add QWKPage APIs regarding engine process availability 6 https://bugs.webkit.org/show_bug.cgi?id=53237 7 8 QWKPage will now emit engineConnected() and engineDisconnected() 9 when the web process crashes and is relaunched respectively. 10 11 Also added QWKPage::isConnectedToEngine() for convenience. 12 13 * UIProcess/API/qt/qwkpage.cpp: 14 (QWKPagePrivate::QWKPagePrivate): 15 (QWKPagePrivate::didRelaunchProcess): 16 (QWKPagePrivate::processDidCrash): 17 (QWKPage::isConnectedToEngine): 18 * UIProcess/API/qt/qwkpage.h: 19 * UIProcess/API/qt/qwkpage_p.h: 20 1 21 2011-01-27 Balazs Kelemen <kbalazs@webkit.org> 2 22 -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
r76585 r76798 90 90 , createNewPageFn(0) 91 91 , backingStoreType(QGraphicsWKView::Simple) 92 , isConnectedToEngine(true) 92 93 { 93 94 memset(actions, 0, sizeof(actions)); … … 392 393 if (wkView) 393 394 q->setViewportSize(wkView->size().toSize()); 395 396 isConnectedToEngine = true; 397 emit q->engineConnected(); 394 398 } 395 399 396 400 void QWKPagePrivate::processDidCrash() 397 401 { 398 emit q->processCrashed(); 402 isConnectedToEngine = false; 403 emit q->engineDisconnected(); 399 404 } 400 405 … … 781 786 } 782 787 788 bool QWKPage::isConnectedToEngine() const 789 { 790 return d->isConnectedToEngine; 791 } 792 783 793 #include "moc_qwkpage.cpp" -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage.h
r76585 r76798 118 118 void findZoomableAreaForPoint(const QPoint&); 119 119 120 bool isConnectedToEngine() const; 121 120 122 public: 121 123 Q_SIGNAL void statusBarMessage(const QString&); … … 134 136 Q_SIGNAL void focusNextPrevChild(bool); 135 137 Q_SIGNAL void showContextMenu(QMenu*); 136 Q_SIGNAL void processCrashed(); 138 Q_SIGNAL void engineConnected(); 139 Q_SIGNAL void engineDisconnected(); 137 140 138 141 protected: -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
r76657 r76798 124 124 QBasicTimer tripleClickTimer; 125 125 QGraphicsWKView::BackingStoreType backingStoreType; 126 127 bool isConnectedToEngine; 126 128 }; 127 129
Note: See TracChangeset
for help on using the changeset viewer.