Route window.open to "new-window" event

This commit is contained in:
Cheng Zhao 2014-10-27 18:52:55 +08:00
parent 94818aef26
commit 389e56ce36
5 changed files with 41 additions and 24 deletions

View file

@ -45,6 +45,9 @@ class Window : public mate::EventEmitter,
// Implementations of NativeWindowObserver:
void OnPageTitleUpdated(bool* prevent_default,
const std::string& title) override;
void WillCreatePopupWindow(const base::string16& frame_name,
const GURL& target_url,
const std::string& partition_id) override;
void WillCloseWindow(bool* prevent_default) override;
void OnWindowClosed() override;
void OnWindowBlur() override;