Bug 503207 - Fullscreen mode did not work in Firefox on Windows CE. r=vlad

This commit is contained in:
Doug Turner 2009-07-09 13:09:28 -07:00
Родитель 93e4d23feb
Коммит c573fb1b6f
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -2307,7 +2307,7 @@ NS_METHOD nsWindow::Invalidate(const nsIntRect & aRect, PRBool aIsSynchronous)
NS_IMETHODIMP
nsWindow::MakeFullScreen(PRBool aFullScreen)
{
#if WINCE
#if WINCE_WINDOWS_MOBILE
RECT rc;
if (aFullScreen) {
SetForegroundWindow(mWnd);
@ -2319,10 +2319,12 @@ nsWindow::MakeFullScreen(PRBool aFullScreen)
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, FALSE);
}
MoveWindow(mWnd, rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top, TRUE);
return NS_OK;
#else
return nsBaseWidget::MakeFullScreen(aFullScreen);
if (aFullScreen)
mSizeMode = nsSizeMode_Fullscreen;
#endif
return nsBaseWidget::MakeFullScreen(aFullScreen);
}
/**************************************************************

Просмотреть файл

@ -346,6 +346,10 @@ NS_IMETHODIMP nsWindow::SetSizeMode(PRInt32 aMode)
if (aMode == nsSizeMode_Normal)
aMode = nsSizeMode_Maximized;
}
// also on windows mobile, we never minimize.
if (aMode == nsSizeMode_Minimized)
return NS_OK;
#endif
// save the requested state