Changeset 70218 in webkit


Ignore:
Timestamp:
Oct 21, 2010 2:39:47 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-21 Juha Savolainen <juha.savolainen@weego.fi>

Reviewed by Kenneth Rohde Christiansen.

This is initial implementation of QWKHistory. The QWKHistory class represents the history of a QWKPage.
https://bugs.webkit.org/show_bug.cgi?id=47716

Each QWKPage instance contains a history of a visited pages that can be accessed by QWKHistory::history().
The QWKPagePrivate class creates QWKHistory in constructor.

  • UIProcess/API/qt/qwkhistory.cpp: Added. (QWKHistoryPrivate::QWKHistoryPrivate): (QWKHistoryPrivate::createHistory): Creates history object. (QWKHistoryPrivate::~QWKHistoryPrivate): (QWKHistory::QWKHistory): (QWKHistory::~QWKHistory): (QWKHistory::backListCount): Gets items count in back. (QWKHistory::forwardListCount): Gets items count in forward. (QWKHistory::count): Gets items count.
  • UIProcess/API/qt/qwkhistory.h: Added.
  • UIProcess/API/qt/qwkhistory_p.h: Added.
  • UIProcess/API/qt/qwkpage.cpp: (QWKPagePrivate::QWKPagePrivate): (QWKPagePrivate::~QWKPagePrivate): (QWKPage::history): Returns history object.
  • UIProcess/API/qt/qwkpage.h:
  • UIProcess/API/qt/qwkpage_p.h: Added history member variable.
  • WebKit2.pro: Added WKBackForwardList.h, WKBackForwardList.cpp and new files.
Location:
trunk/WebKit2
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r70190 r70218  
     12010-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
    1302010-10-14  Adam Roben  <aroben@apple.com>
    231
  • trunk/WebKit2/UIProcess/API/qt/qwkpage.cpp

    r69902 r70218  
    2525
    2626#include "ClientImpl.h"
     27#include "qwkhistory.h"
     28#include "qwkhistory_p.h"
    2729#include "FindIndicator.h"
    2830#include "LocalizedStrings.h"
     
    6163    page->setPageClient(this);
    6264    pageNamespaceRef = namespaceRef;
     65    history = QWKHistoryPrivate::createHistory(page->backForwardList());
    6366}
    6467
     
    6669{
    6770    page->close();
     71    delete history;
    6872}
    6973
     
    478482}
    479483
     484QWKHistory* QWKPage::history() const
     485{
     486    return d->history;
     487}
     488
    480489#ifndef QT_NO_ACTION
    481490void QWKPage::triggerAction(WebAction action, bool)
  • trunk/WebKit2/UIProcess/API/qt/qwkpage.h

    r69570 r70218  
    1818class QWKPagePrivate;
    1919class QtViewportAttributesPrivate;
     20class QWKHistory;
    2021
    2122class QWEBKIT_EXPORT QWKPage : public QObject {
     
    9697    void setPageAndTextZoomFactors(qreal pageZoomFactor, qreal textZoomFactor);
    9798
     99    QWKHistory* history() const;
     100
    98101public:
    99102    Q_SIGNAL void statusBarMessage(const QString&);
  • trunk/WebKit2/UIProcess/API/qt/qwkpage_p.h

    r69899 r70218  
    8585    QWKPage* q;
    8686
     87    QWKHistory* history;
     88
    8789    QAction* actions[QWKPage::WebActionCount];
    8890    QWKPreferences* preferences;
  • trunk/WebKit2/WebKit2.pro

    r70138 r70218  
    225225    UIProcess/API/C/WebKit2.h \
    226226    UIProcess/API/C/WKAPICast.h \
     227    UIProcess/API/C/WKBackForwardList.h \
    227228    UIProcess/API/C/WKContext.h \
    228229    UIProcess/API/C/WKContextPrivate.h \
     
    240241    UIProcess/API/cpp/WKRetainPtr.h \
    241242    UIProcess/API/qt/qgraphicswkview.h \
     243    UIProcess/API/qt/qwkhistory.h \
     244    UIProcess/API/qt/qwkhistory_p.h \
    242245    UIProcess/API/qt/qwkpage.h \
    243246    UIProcess/API/qt/qwkpage_p.h \
     
    370373    Shared/WebURLRequest.cpp \
    371374    Shared/WebURLResponse.cpp \
     375    UIProcess/API/C/WKBackForwardList.cpp \
    372376    UIProcess/API/C/WKContext.cpp \
    373377    UIProcess/API/C/WKFrame.cpp \
     
    380384    UIProcess/API/qt/ClientImpl.cpp \
    381385    UIProcess/API/qt/qgraphicswkview.cpp \
     386    UIProcess/API/qt/qwkhistory.cpp \
    382387    UIProcess/API/qt/qwkpage.cpp \
    383388    UIProcess/API/qt/qwkpreferences.cpp \
Note: See TracChangeset for help on using the changeset viewer.