diff options
Diffstat (limited to 'chrome')
-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); |