summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_delegate.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 21:28:48 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 21:28:48 +0000
commit8ee37f03d400794478584634d3d493a12f6b989d (patch)
treec6418a199d69b13bf0e05e558da2bcd60e971850 /webkit/glue/webview_delegate.h
parent8165dcf042237c13d41aaad2a9c654c64bc4cb35 (diff)
downloadchromium_src-8ee37f03d400794478584634d3d493a12f6b989d.zip
chromium_src-8ee37f03d400794478584634d3d493a12f6b989d.tar.gz
chromium_src-8ee37f03d400794478584634d3d493a12f6b989d.tar.bz2
Eliminate webkit/glue/webhistoryitem* in favor of adding a
NavigateBackForwardSoon method WebViewDelegate. This moves all of the hacky details of how we intercept "history.{back, forward,go}" into the webkit layer. My eventual plan is to teach WebCore how to make this not hacky. BUG=11423 R=mpcomplete Review URL: http://codereview.chromium.org/100353 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_delegate.h')
-rw-r--r--webkit/glue/webview_delegate.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/webkit/glue/webview_delegate.h b/webkit/glue/webview_delegate.h
index 27036db..483ef1c 100644
--- a/webkit/glue/webview_delegate.h
+++ b/webkit/glue/webview_delegate.h
@@ -53,7 +53,6 @@ class SkBitmap;
class WebDevToolsAgentDelegate;
class WebError;
class WebFrame;
-class WebHistoryItem;
class WebMediaPlayerDelegate;
class WebPluginDelegate;
class WebRequest;
@@ -695,10 +694,9 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
// History Related ---------------------------------------------------------
- // Returns the session history entry at a distance |offset| relative to the
- // current entry. Returns NULL on failure.
- virtual WebHistoryItem* GetHistoryEntryAtOffset(int offset) {
- return NULL;
+ // Tells the embedder to navigate back or forward in session history by the
+ // given offset (relative to the current position in session history).
+ virtual void NavigateBackForwardSoon(int offset) {
}
// Returns how many entries are in the back and forward lists, respectively.