Show the status bar and therefore the progress bar even in fullscreen mode when

a page is loading.

Fixes #6086.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@551 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
leavengood 2010-12-12 22:11:56 +00:00 committed by Alexandre Deckner
parent f0db6a3bb1
commit 8ee88f9b6d
2 changed files with 21 additions and 2 deletions

View File

@ -1211,9 +1211,9 @@ BrowserWindow::LoadProgress(float progress, BWebView* view)
return;
if (progress < 100 && fLoadingProgressBar->IsHidden())
fLoadingProgressBar->Show();
_ShowProgressBar(true);
else if (progress == 100 && !fLoadingProgressBar->IsHidden())
fLoadingProgressBar->Hide();
_ShowProgressBar(false);
fLoadingProgressBar->SetTo(progress);
}
@ -2036,6 +2036,24 @@ BrowserWindow::_ShowInterface(bool show)
}
void
BrowserWindow::_ShowProgressBar(bool show)
{
if (show) {
if (!fStatusGroup->IsVisible() && (fVisibleInterfaceElements & INTERFACE_ELEMENT_STATUS) != 0)
fStatusGroup->SetVisible(true);
fLoadingProgressBar->Show();
} else {
if (!fInterfaceVisible)
fStatusGroup->SetVisible(false);
// TODO: This is also used in _ShowInterface. Without it the status bar
// doesn't always hide again. It may be an Interface Kit bug.
while (!fLoadingProgressBar->IsHidden())
fLoadingProgressBar->Hide();
}
}
void
BrowserWindow::_InvokeButtonVisibly(BButton* button)
{

View File

@ -187,6 +187,7 @@ private:
void _SetAutoHideInterfaceInFullscreen(bool doIt);
void _CheckAutoHideInterface();
void _ShowInterface(bool show);
void _ShowProgressBar(bool);
void _InvokeButtonVisibly(BButton* button);
BString _NewTabURL(bool isNewWindow) const;