Implement beforeunload event.

Unlike normal browser which would show a dialog to choose whether to
continue, you can just return a empty string in the handler to prevent
unloading.
This commit is contained in:
Cheng Zhao 2013-04-30 23:56:50 +08:00
parent bcf6cd9f1b
commit a674572dd4
5 changed files with 73 additions and 0 deletions

View file

@ -39,6 +39,8 @@
'browser/atom_browser_main_parts.h',
'browser/atom_event_processing_window.h',
'browser/atom_event_processing_window.mm',
'browser/atom_javascript_dialog_manager.cc',
'browser/atom_javascript_dialog_manager.h',
'browser/native_window.cc',
'browser/native_window.h',
'browser/native_window_mac.h',