Add "will-navigate" event for BrowserWindow
This commit is contained in:
parent
5142b7858b
commit
fd596d4a65
4 changed files with 22 additions and 4 deletions
|
@ -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) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue