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:
@@ -97,6 +97,9 @@ class TestHandler : public CefClient,
|
||||
// returns.
|
||||
void ExecuteTest();
|
||||
|
||||
// Returns true if a browser currently exists.
|
||||
static bool HasBrowser() { return browser_count_ > 0; }
|
||||
|
||||
protected:
|
||||
// Destroy the browser window. Once the window is destroyed test completion
|
||||
// will be signaled.
|
||||
@@ -128,6 +131,9 @@ class TestHandler : public CefClient,
|
||||
IMPLEMENT_REFCOUNTING(TestHandler);
|
||||
// Include the default locking implementation.
|
||||
IMPLEMENT_LOCKING(TestHandler);
|
||||
|
||||
// Used to track the number of currently existing browser windows.
|
||||
static int browser_count_;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user