mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Change the way that application shutdown works in order to support JavaScript 'onbeforeunload' handling (issue #853). See comments in cef_life_span_handler.h for a detailed description of the new shutdown process.
- Fix a crash on Linux during window destruction (issue #681). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1149 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -119,7 +119,8 @@ void CEF_CALLBACK browser_host_parent_window_will_close(
|
||||
CefBrowserHostCppToC::Get(self)->ParentWindowWillClose();
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self) {
|
||||
void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self,
|
||||
int force_close) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -127,7 +128,8 @@ void CEF_CALLBACK browser_host_close_browser(struct _cef_browser_host_t* self) {
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefBrowserHostCppToC::Get(self)->CloseBrowser();
|
||||
CefBrowserHostCppToC::Get(self)->CloseBrowser(
|
||||
force_close?true:false);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK browser_host_set_focus(struct _cef_browser_host_t* self,
|
||||
|
Reference in New Issue
Block a user