1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-23 01:44:22 +00:00

Rebuilt the docs including a couple of missing classes; tweaked WebBrowserComponent to make page unloading optional; small efficiency improvement to ThreadPool

This commit is contained in:
Julian Storer 2009-09-29 17:58:18 +01:00
parent f72563d6c7
commit 54831605c3
10 changed files with 58 additions and 41 deletions

View file

@ -220,9 +220,10 @@ private:
//==============================================================================
WebBrowserComponent::WebBrowserComponent()
WebBrowserComponent::WebBrowserComponent (const bool unloadPageWhenBrowserIsHidden_)
: browser (0),
blankPageShown (false)
blankPageShown (false),
unloadPageWhenBrowserIsHidden (unloadPageWhenBrowserIsHidden_)
{
setOpaque (true);
addAndMakeVisible (browser = new WebBrowserComponentInternal());
@ -306,7 +307,7 @@ void WebBrowserComponent::checkWindowAssociation()
}
else
{
if (browser != 0 && ! blankPageShown)
if (browser != 0 && unloadPageWhenBrowserIsHidden && ! blankPageShown)
{
// when the component becomes invisible, some stuff like flash
// carries on playing audio, so we need to force it onto a blank