navigaton: handle history operations from renderer
This commit is contained in:
parent
bff2861311
commit
7b03ac6d61
2 changed files with 6 additions and 0 deletions
|
@ -421,6 +421,11 @@ bool WebContents::HandleContextMenu(const content::ContextMenuParams& params) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool WebContents::OnGoToEntryOffset(int offset) {
|
||||||
|
GoToOffset(offset);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
void WebContents::BeforeUnloadFired(const base::TimeTicks& proceed_time) {
|
void WebContents::BeforeUnloadFired(const base::TimeTicks& proceed_time) {
|
||||||
// Do nothing, we override this method just to avoid compilation error since
|
// Do nothing, we override this method just to avoid compilation error since
|
||||||
// there are two virtual functions named BeforeUnloadFired.
|
// there are two virtual functions named BeforeUnloadFired.
|
||||||
|
|
|
@ -186,6 +186,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
||||||
void RendererUnresponsive(content::WebContents* source) override;
|
void RendererUnresponsive(content::WebContents* source) override;
|
||||||
void RendererResponsive(content::WebContents* source) override;
|
void RendererResponsive(content::WebContents* source) override;
|
||||||
bool HandleContextMenu(const content::ContextMenuParams& params) override;
|
bool HandleContextMenu(const content::ContextMenuParams& params) override;
|
||||||
|
bool OnGoToEntryOffset(int offset) override;
|
||||||
|
|
||||||
// content::WebContentsObserver:
|
// content::WebContentsObserver:
|
||||||
void BeforeUnloadFired(const base::TimeTicks& proceed_time) override;
|
void BeforeUnloadFired(const base::TimeTicks& proceed_time) override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue