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:
@ -254,16 +254,24 @@ class CefBrowserHost : public virtual CefBase {
|
||||
///
|
||||
// Call this method before destroying a contained browser window. This method
|
||||
// performs any internal cleanup that may be needed before the browser window
|
||||
// is destroyed.
|
||||
// is destroyed. See CefLifeSpanHandler::DoClose() documentation for
|
||||
// additional usage information.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void ParentWindowWillClose() =0;
|
||||
|
||||
///
|
||||
// Closes this browser window.
|
||||
// Request that the browser close. The JavaScript 'onbeforeunload' event will
|
||||
// be fired. If |force_close| is false the event handler, if any, will be
|
||||
// allowed to prompt the user and the user can optionally cancel the close.
|
||||
// If |force_close| is true the prompt will not be displayed and the close
|
||||
// will proceed. Results in a call to CefLifeSpanHandler::DoClose() if the
|
||||
// event handler allows the close or if |force_close| is true. See
|
||||
// CefLifeSpanHandler::DoClose() documentation for additional usage
|
||||
// information.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual void CloseBrowser() =0;
|
||||
virtual void CloseBrowser(bool force_close) =0;
|
||||
|
||||
///
|
||||
// Set focus for the browser window. If |enable| is true focus will be set to
|
||||
|
Reference in New Issue
Block a user