electron/atom/browser
Cheng Zhao b994ae8174 mac: Always cancel application termination.
OS X's application termination doesn't work very well with C++ message
loops. Especially when we return NSTerminateLater for shouldTerminate,
it would be impossible for the C++ message loop to quit, because unless
we explictly let NSApp terminate the application, the message loop would
think the application is not terminated and will run forever.

The fix is to simply ignore the Cocoa's application termination request
and let the C++ message loop deal with it compeletey. But we had the
side effect that atom-shell would always cancel OS X's shutdown request,
this is also the approach chosen by Chromium.

Fixes #229.
Fixes atom/atom#1864.
2014-04-15 00:13:00 +08:00
..
api Fix app.exit compatibility. 2014-04-10 17:08:22 +08:00
default_app Deprecate app.terminate API. 2014-04-10 15:08:14 +08:00
lib Make remote.getCurrentWindow work for devtools. 2014-04-04 22:28:47 +08:00
net Order header files. 2014-03-16 09:37:04 +08:00
resources Bump v0.11.9. 2014-04-11 10:44:41 +00:00
ui Order header files. 2014-03-16 09:37:04 +08:00
atom_application_delegate_mac.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_application_delegate_mac.mm mac: Always cancel application termination. 2014-04-15 00:13:00 +08:00
atom_application_mac.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_application_mac.mm Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_browser_client.cc Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_browser_client.h Bring back build/header_guard cpplint. 2014-03-16 08:58:59 +08:00
atom_browser_context.cc Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_browser_context.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_browser_main_parts.cc Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_browser_main_parts.h Bring back build/header_guard cpplint. 2014-03-16 08:58:59 +08:00
atom_browser_main_parts_mac.mm Move all sources under atom/. 2014-03-16 08:30:26 +08:00
atom_javascript_dialog_manager.cc Bring back build/include_order cpplint. 2014-03-16 09:13:06 +08:00
atom_javascript_dialog_manager.h Bring back build/include_order cpplint. 2014-03-16 09:13:06 +08:00
auto_updater.cc Move all sources under atom/. 2014-03-16 08:30:26 +08:00
auto_updater.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
auto_updater_delegate.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
auto_updater_linux.cc Move all sources under atom/. 2014-03-16 08:30:26 +08:00
auto_updater_mac.mm Move all sources under atom/. 2014-03-16 08:30:26 +08:00
auto_updater_win.cc Move all sources under atom/. 2014-03-16 08:30:26 +08:00
browser.cc mac: Always cancel application termination. 2014-04-15 00:13:00 +08:00
browser.h mac: Always cancel application termination. 2014-04-15 00:13:00 +08:00
browser_linux.cc mac: Always cancel application termination. 2014-04-15 00:13:00 +08:00
browser_mac.mm mac: Always cancel application termination. 2014-04-15 00:13:00 +08:00
browser_observer.h Bring back build/header_guard cpplint. 2014-03-16 08:58:59 +08:00
browser_win.cc mac: Always cancel application termination. 2014-04-15 00:13:00 +08:00
devtools_delegate.cc Bring back build/include_order cpplint. 2014-03-16 09:13:06 +08:00
devtools_delegate.h Bring back build/include_order cpplint. 2014-03-16 09:13:06 +08:00
devtools_web_contents_observer.cc Allow sending ipc messages to devtools. 2014-04-04 22:05:43 +08:00
devtools_web_contents_observer.h Allow sending ipc messages to devtools. 2014-04-04 22:05:43 +08:00
native_window.cc Fix a crash when destroying window. 2014-04-11 18:43:01 +08:00
native_window.h Fix a crash when destroying window. 2014-04-11 18:43:01 +08:00
native_window_gtk.cc gtk: Connect to window-state-event, fixes #226. 2014-04-08 09:32:44 +08:00
native_window_gtk.h gtk: Handle accelerators after renderer handled them. 2014-04-05 19:21:18 +08:00
native_window_mac.h mac: Avoid managing NSWindow by hand. 2014-04-11 12:47:22 +08:00
native_window_mac.mm Fix a crash when destroying window. 2014-04-11 18:43:01 +08:00
native_window_observer.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
native_window_win.cc Bring back build/include_order cpplint. 2014-03-16 09:13:06 +08:00
native_window_win.h Bring back build/include_order cpplint. 2014-03-16 09:13:06 +08:00
window_list.cc Order header files. 2014-03-16 09:37:04 +08:00
window_list.h Move all sources under atom/. 2014-03-16 08:30:26 +08:00
window_list_observer.h Bring back build/header_guard cpplint. 2014-03-16 08:58:59 +08:00