Merge pull request #3875 from deepak1556/history_navigation_patch

navigaton: handle history operations from renderer
This commit is contained in:
Cheng Zhao 2015-12-21 18:18:45 +08:00
commit fa8d251370
2 changed files with 6 additions and 0 deletions

View file

@ -421,6 +421,11 @@ bool WebContents::HandleContextMenu(const content::ContextMenuParams& params) {
return true;
}
bool WebContents::OnGoToEntryOffset(int offset) {
GoToOffset(offset);
return false;
}
void WebContents::BeforeUnloadFired(const base::TimeTicks& proceed_time) {
// Do nothing, we override this method just to avoid compilation error since
// there are two virtual functions named BeforeUnloadFired.

View file

@ -186,6 +186,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
void RendererUnresponsive(content::WebContents* source) override;
void RendererResponsive(content::WebContents* source) override;
bool HandleContextMenu(const content::ContextMenuParams& params) override;
bool OnGoToEntryOffset(int offset) override;
// content::WebContentsObserver:
void BeforeUnloadFired(const base::TimeTicks& proceed_time) override;