Add "will-navigate" event for BrowserWindow

This commit is contained in:
Cheng Zhao 2014-12-17 14:40:19 -08:00
parent 5142b7858b
commit fd596d4a65
4 changed files with 22 additions and 4 deletions

View file

@ -27,6 +27,9 @@ class NativeWindowObserver {
const std::string& partition_id,
WindowOpenDisposition disposition) {}
// Called when user is starting an navigation in web page.
virtual void WillNavigate(bool* prevent_default, const GURL& url) {}
// Called when the window is gonna closed.
virtual void WillCloseWindow(bool* prevent_default) {}