Changeset 70218 in webkit
- Timestamp:
- Oct 21, 2010 2:39:47 AM (14 years ago)
- Location:
- trunk/WebKit2
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit2/ChangeLog
r70190 r70218 1 2010-10-21 Juha Savolainen <juha.savolainen@weego.fi> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 This is initial implementation of QWKHistory. The QWKHistory class represents the history of a QWKPage. 6 https://bugs.webkit.org/show_bug.cgi?id=47716 7 8 Each QWKPage instance contains a history of a visited pages that can be accessed by QWKHistory::history(). 9 The QWKPagePrivate class creates QWKHistory in constructor. 10 11 * UIProcess/API/qt/qwkhistory.cpp: Added. 12 (QWKHistoryPrivate::QWKHistoryPrivate): 13 (QWKHistoryPrivate::createHistory): Creates history object. 14 (QWKHistoryPrivate::~QWKHistoryPrivate): 15 (QWKHistory::QWKHistory): 16 (QWKHistory::~QWKHistory): 17 (QWKHistory::backListCount): Gets items count in back. 18 (QWKHistory::forwardListCount): Gets items count in forward. 19 (QWKHistory::count): Gets items count. 20 * UIProcess/API/qt/qwkhistory.h: Added. 21 * UIProcess/API/qt/qwkhistory_p.h: Added. 22 * UIProcess/API/qt/qwkpage.cpp: 23 (QWKPagePrivate::QWKPagePrivate): 24 (QWKPagePrivate::~QWKPagePrivate): 25 (QWKPage::history): Returns history object. 26 * UIProcess/API/qt/qwkpage.h: 27 * UIProcess/API/qt/qwkpage_p.h: Added history member variable. 28 * WebKit2.pro: Added WKBackForwardList.h, WKBackForwardList.cpp and new files. 29 1 30 2010-10-14 Adam Roben <aroben@apple.com> 2 31 -
trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp
r69902 r70218 25 25 26 26 #include "ClientImpl.h" 27 #include "qwkhistory.h" 28 #include "qwkhistory_p.h" 27 29 #include "FindIndicator.h" 28 30 #include "LocalizedStrings.h" … … 61 63 page->setPageClient(this); 62 64 pageNamespaceRef = namespaceRef; 65 history = QWKHistoryPrivate::createHistory(page->backForwardList()); 63 66 } 64 67 … … 66 69 { 67 70 page->close(); 71 delete history; 68 72 } 69 73 … … 478 482 } 479 483 484 QWKHistory* QWKPage::history() const 485 { 486 return d->history; 487 } 488 480 489 #ifndef QT_NO_ACTION 481 490 void QWKPage::triggerAction(WebAction action, bool) -
trunk/WebKit2/UIProcess/API/qt/qwkpage.h
r69570 r70218 18 18 class QWKPagePrivate; 19 19 class QtViewportAttributesPrivate; 20 class QWKHistory; 20 21 21 22 class QWEBKIT_EXPORT QWKPage : public QObject { … … 96 97 void setPageAndTextZoomFactors(qreal pageZoomFactor, qreal textZoomFactor); 97 98 99 QWKHistory* history() const; 100 98 101 public: 99 102 Q_SIGNAL void statusBarMessage(const QString&); -
trunk/WebKit2/UIProcess/API/qt/qwkpage_p.h
r69899 r70218 85 85 QWKPage* q; 86 86 87 QWKHistory* history; 88 87 89 QAction* actions[QWKPage::WebActionCount]; 88 90 QWKPreferences* preferences; -
trunk/WebKit2/WebKit2.pro
r70138 r70218 225 225 UIProcess/API/C/WebKit2.h \ 226 226 UIProcess/API/C/WKAPICast.h \ 227 UIProcess/API/C/WKBackForwardList.h \ 227 228 UIProcess/API/C/WKContext.h \ 228 229 UIProcess/API/C/WKContextPrivate.h \ … … 240 241 UIProcess/API/cpp/WKRetainPtr.h \ 241 242 UIProcess/API/qt/qgraphicswkview.h \ 243 UIProcess/API/qt/qwkhistory.h \ 244 UIProcess/API/qt/qwkhistory_p.h \ 242 245 UIProcess/API/qt/qwkpage.h \ 243 246 UIProcess/API/qt/qwkpage_p.h \ … … 370 373 Shared/WebURLRequest.cpp \ 371 374 Shared/WebURLResponse.cpp \ 375 UIProcess/API/C/WKBackForwardList.cpp \ 372 376 UIProcess/API/C/WKContext.cpp \ 373 377 UIProcess/API/C/WKFrame.cpp \ … … 380 384 UIProcess/API/qt/ClientImpl.cpp \ 381 385 UIProcess/API/qt/qgraphicswkview.cpp \ 386 UIProcess/API/qt/qwkhistory.cpp \ 382 387 UIProcess/API/qt/qwkpage.cpp \ 383 388 UIProcess/API/qt/qwkpreferences.cpp \
Note: See TracChangeset
for help on using the changeset viewer.