static QWebHistoryInterface *defaultInterface();
virtual bool historyContains(const QString &url) const = 0;
+ virtual void addHistoryEntry(const QString &url) const = 0;
};
#endif
void selectionChanged();
- // ### call addedToHistory instead, something more signal'ish
- void addToHistory(const QUrl&);
-
void frameCreated(QWebFrame *frame);
void geometryChangeRequest(const QRect& geom);
+2008-01-04 Simon Hausmann <hausmann@webkit.org>
+
+ Reviewed by Lars.
+
+ Moved the QWebPage::addToHistory signal into QWebHistoryInterface
+
+
+ * Api/qwebhistoryinterface.h:
+ * Api/qwebpage.h:
+ * WebCoreSupport/FrameLoaderClientQt.cpp:
+ (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
+
2008-01-04 Lars Knoll <lars@trolltech.com>
Reviewed by Simon.
#include "qwebframe_p.h"
#include "qwebobjectplugin_p.h"
#include "qwebnetworkinterface_p.h"
+#include "qwebhistoryinterface.h"
#include <qfileinfo.h>
void FrameLoaderClientQt::updateGlobalHistoryForStandardLoad(const WebCore::KURL& url)
{
- emit m_webFrame->page()->addToHistory(QUrl(url.prettyURL()));
+ QWebHistoryInterface *history = QWebHistoryInterface::defaultInterface();
+ if (history)
+ history->addHistoryEntry(url.prettyURL());
}
void FrameLoaderClientQt::updateGlobalHistoryForReload(const WebCore::KURL&)