зеркало из https://github.com/mozilla/gecko-dev.git
Bug 618663 - qt fails to build ifndef ipc ifndef meegotouch r=romaxa a=npodb
This commit is contained in:
Родитель
d6fc95290e
Коммит
696a357754
|
@ -72,7 +72,7 @@ nsScreenQt::GetRect(PRInt32 *outLeft,PRInt32 *outTop,
|
||||||
PRInt32 *outWidth,PRInt32 *outHeight)
|
PRInt32 *outWidth,PRInt32 *outHeight)
|
||||||
{
|
{
|
||||||
QRect r;
|
QRect r;
|
||||||
#ifdef MOZ_ENABLE_MEEGOTOUCH
|
#if defined MOZ_IPC && defined MOZ_ENABLE_MEEGOTOUCH
|
||||||
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||||
MWindow *window = MApplication::activeWindow();
|
MWindow *window = MApplication::activeWindow();
|
||||||
if (window) {
|
if (window) {
|
||||||
|
|
|
@ -2261,12 +2261,14 @@ nsWindow::NativeResize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint)
|
||||||
|
|
||||||
mNeedsResize = PR_FALSE;
|
mNeedsResize = PR_FALSE;
|
||||||
|
|
||||||
|
#ifdef MOZ_IPC
|
||||||
#ifndef MOZ_ENABLE_MEEGOTOUCH
|
#ifndef MOZ_ENABLE_MEEGOTOUCH
|
||||||
if (mIsTopLevel && XRE_GetProcessType() == GeckoProcessType_Default) {
|
if (mIsTopLevel && XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||||
QWidget *widget = GetViewWidget();
|
QWidget *widget = GetViewWidget();
|
||||||
NS_ENSURE_TRUE(widget,);
|
NS_ENSURE_TRUE(widget,);
|
||||||
widget->resize(aWidth, aHeight);
|
widget->resize(aWidth, aHeight);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mWidget->resize( aWidth, aHeight);
|
mWidget->resize( aWidth, aHeight);
|
||||||
|
@ -2286,6 +2288,7 @@ nsWindow::NativeResize(PRInt32 aX, PRInt32 aY,
|
||||||
mNeedsResize = PR_FALSE;
|
mNeedsResize = PR_FALSE;
|
||||||
mNeedsMove = PR_FALSE;
|
mNeedsMove = PR_FALSE;
|
||||||
|
|
||||||
|
#ifdef MOZ_IPC
|
||||||
#ifndef MOZ_ENABLE_MEEGOTOUCH
|
#ifndef MOZ_ENABLE_MEEGOTOUCH
|
||||||
if (mIsTopLevel) {
|
if (mIsTopLevel) {
|
||||||
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||||
|
@ -2294,6 +2297,7 @@ nsWindow::NativeResize(PRInt32 aX, PRInt32 aY,
|
||||||
widget->setGeometry(aX, aY, aWidth, aHeight);
|
widget->setGeometry(aX, aY, aWidth, aHeight);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mWidget->setGeometry(aX, aY, aWidth, aHeight);
|
mWidget->setGeometry(aX, aY, aWidth, aHeight);
|
||||||
|
@ -2310,8 +2314,11 @@ nsWindow::NativeShow(PRBool aAction)
|
||||||
// On e10s, we never want the child process or plugin process
|
// On e10s, we never want the child process or plugin process
|
||||||
// to go fullscreen because if we do the window because visible
|
// to go fullscreen because if we do the window because visible
|
||||||
// do to disabled Qt-Xembed
|
// do to disabled Qt-Xembed
|
||||||
if ((XRE_GetProcessType() == GeckoProcessType_Default) &&
|
if (widget &&
|
||||||
widget && !widget->isVisible())
|
#ifdef MOZ_IPC
|
||||||
|
(XRE_GetProcessType() == GeckoProcessType_Default) &&
|
||||||
|
#endif
|
||||||
|
!widget->isVisible())
|
||||||
MakeFullScreen(mSizeMode == nsSizeMode_Fullscreen);
|
MakeFullScreen(mSizeMode == nsSizeMode_Fullscreen);
|
||||||
mWidget->show();
|
mWidget->show();
|
||||||
|
|
||||||
|
@ -2561,12 +2568,14 @@ nsWindow::createQWidget(MozQWidget *parent, nsWidgetInitData *aInitData)
|
||||||
|
|
||||||
if (mIsTopLevel) {
|
if (mIsTopLevel) {
|
||||||
QGraphicsView* newView = nsnull;
|
QGraphicsView* newView = nsnull;
|
||||||
#ifdef MOZ_ENABLE_MEEGOTOUCH
|
#if defined MOZ_IPC && defined MOZ_ENABLE_MEEGOTOUCH
|
||||||
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||||
newView = new MozMGraphicsView(widget);
|
newView = new MozMGraphicsView(widget);
|
||||||
} else
|
} else
|
||||||
#else
|
#else
|
||||||
|
{
|
||||||
newView = new MozQGraphicsView(widget);
|
newView = new MozQGraphicsView(widget);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!newView) {
|
if (!newView) {
|
||||||
delete widget;
|
delete widget;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче