diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 21:00:59 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 21:00:59 +0000 |
commit | 476b6f8a6880f3074acdeb218ad88b352d96f39f (patch) | |
tree | 2f7c0fc294bcaa7390414ba0ce739b47e739c1d5 /chrome/renderer | |
parent | a2d106884aff55bfc84579c28348ee160ef6e2f4 (diff) | |
download | chromium_src-476b6f8a6880f3074acdeb218ad88b352d96f39f.zip chromium_src-476b6f8a6880f3074acdeb218ad88b352d96f39f.tar.gz chromium_src-476b6f8a6880f3074acdeb218ad88b352d96f39f.tar.bz2 |
Hook up WebFrameClient::didUpdateCurrentHistoryItem
This replaces WebViewDelegate::OnNavStateChanged.
R=dglazkov
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/196080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25916 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 16 | ||||
-rw-r--r-- | chrome/renderer/render_view.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index f4204aa..cb4f6e7 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2039,6 +2039,14 @@ void RenderView::didChangeLocationWithinPage( UpdateTitle(frame, frame->view()->GetMainFrame()->dataSource()->pageTitle()); } +void RenderView::didUpdateCurrentHistoryItem(WebFrame* frame) { + if (!nav_state_sync_timer_.IsRunning()) { + nav_state_sync_timer_.Start( + TimeDelta::FromSeconds(delay_seconds_for_form_state_sync_), this, + &RenderView::SyncNavigationState); + } +} + void RenderView::assignIdentifierToRequest( WebFrame* frame, unsigned identifier, const WebURLRequest& request) { // Ignore @@ -2650,14 +2658,6 @@ int RenderView::GetHistoryForwardListCount() { return history_forward_list_count_; } -void RenderView::OnNavStateChanged(WebView* webview) { - if (!nav_state_sync_timer_.IsRunning()) { - nav_state_sync_timer_.Start( - TimeDelta::FromSeconds(delay_seconds_for_form_state_sync_), this, - &RenderView::SyncNavigationState); - } -} - void RenderView::SetTooltipText(WebView* webview, const std::wstring& tooltip_text, WebTextDirection text_direction_hint) { diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index 3c99ec3..442760e 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -239,7 +239,6 @@ class RenderView : public RenderWidget, virtual void NavigateBackForwardSoon(int offset); virtual int GetHistoryBackListCount(); virtual int GetHistoryForwardListCount(); - virtual void OnNavStateChanged(WebView* webview); virtual void SetTooltipText(WebView* webview, const std::wstring& tooltip_text, WebKit::WebTextDirection text_direction_hint); @@ -341,6 +340,7 @@ class RenderView : public RenderWidget, virtual void didFinishLoad(WebKit::WebFrame* frame); virtual void didChangeLocationWithinPage( WebKit::WebFrame* frame, bool is_new_navigation); + virtual void didUpdateCurrentHistoryItem(WebKit::WebFrame* frame); virtual void assignIdentifierToRequest( WebKit::WebFrame* frame, unsigned identifier, const WebKit::WebURLRequest& request); |