]> khamidou — GitHub mirrors - electron.git/commit
Implement beforeunload event.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 30 Apr 2013 15:56:50 +0000 (23:56 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 30 Apr 2013 16:05:19 +0000 (00:05 +0800)
commita674572dd42be0fc0491eb06e0a0202e9f9e3948
tree7393620fb68a0993b22d09e4a8a8f15b3a543d65
parentbcf6cd9f1b2ba2c3f8debb0e5b0b06880c4328a8
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.
atom.gyp
browser/atom_javascript_dialog_manager.cc [new file with mode: 0644]
browser/atom_javascript_dialog_manager.h [new file with mode: 0644]
browser/native_window.cc
browser/native_window.h