summaryrefslogtreecommitdiffstats
path: root/lib/web_contents_adapter.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-19 17:48:19 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-20 18:16:15 +0200
commitdddfe170077e022f0d428569fe8d5298736a2b68 (patch)
tree87d6045362ce89da7427b7b385b56a4619aab0f5 /lib/web_contents_adapter.h
parent75d9159924fcb2b4c11a43c87e8e62332fdf38fd (diff)
Implement the basic parts of QWebEngineHistory.
Mark the remaining methods as not implemented to allow enabling most of the dependent code in the demo browser and in API tests. Add two new tests to cover cases that might be problematic with the index-based implementation. This also renames WebContentsAdapter::navigateHistory to navigateToOffset in order to avoid confusion with navigateToIndex. Change-Id: I7c5cb9f5f878e34206fdfe48334a2dc7d9d95a1d Reviewed-by: Zeno Albisser <zeno.albisser@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'lib/web_contents_adapter.h')
-rw-r--r--lib/web_contents_adapter.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/web_contents_adapter.h b/lib/web_contents_adapter.h
index c9d3a67ad..2bc6b9881 100644
--- a/lib/web_contents_adapter.h
+++ b/lib/web_contents_adapter.h
@@ -62,13 +62,21 @@ public:
bool canGoBack() const;
bool canGoForward() const;
bool isLoading() const;
- void navigateHistory(int);
void stop();
void reload();
void load(const QUrl&);
QUrl activeUrl() const;
QString pageTitle() const;
+ void navigateToIndex(int);
+ void navigateToOffset(int);
+ int navigationEntryCount();
+ int currentNavigationEntryIndex();
+ QUrl getNavigationEntryOriginalUrl(int index);
+ QUrl getNavigationEntryUrl(int index);
+ QString getNavigationEntryTitle(int index);
+ void clearNavigationHistory();
+
private:
inline content::WebContents* webContents() const;
Q_DECLARE_PRIVATE(WebContentsAdapter);