зеркало из https://github.com/mozilla/pjs.git
WinCE only. remove snav.dll -- it is statically build. reorder minimo-link-names to make diffing being generated one easier. Added GetScreenSize so that we can calculate the screensize when opening a new window. NPODB.
This commit is contained in:
Родитель
caac0d7b61
Коммит
04068176ba
|
@ -98,5 +98,6 @@
|
|||
|
||||
void CreateSplashScreen();
|
||||
void KillSplashScreen();
|
||||
void GetScreenSize(unsigned long* x, unsigned long* y);
|
||||
|
||||
#endif // MINIMO_PRIVATE_H
|
||||
|
|
|
@ -118,3 +118,12 @@ void CreateSplashScreen()
|
|||
CloseHandle(handle);
|
||||
}
|
||||
|
||||
|
||||
void GetScreenSize(unsigned long* x, unsigned long* y)
|
||||
{
|
||||
RECT workarea;
|
||||
SystemParametersInfo(SPI_GETWORKAREA, 0, &workarea, 0);
|
||||
|
||||
*x = workarea.right - workarea.left;
|
||||
*y = workarea.bottom - workarea.top;
|
||||
}
|
||||
|
|
|
@ -94,11 +94,14 @@ WindowCreator::CreateChromeWindow2(nsIWebBrowserChrome *aParent,
|
|||
|
||||
nsCOMPtr<nsIXULWindow> xulParent(do_GetInterface(aParent));
|
||||
|
||||
unsigned long x, y;
|
||||
GetScreenSize(&x, &y);
|
||||
|
||||
appShell->CreateTopLevelWindow(xulParent,
|
||||
0,
|
||||
aChromeFlags,
|
||||
240, //XXXXXX
|
||||
320 - 24 /* 24 is the height of the menubar */,
|
||||
x,
|
||||
y,
|
||||
mAppShell,
|
||||
getter_AddRefs(newWindow));
|
||||
}
|
||||
|
|
|
@ -3,12 +3,13 @@ nsUConvModule
|
|||
nsI18nModule
|
||||
necko_core_and_primary_protocols
|
||||
nsJarModule
|
||||
nsRDFModule
|
||||
nsPrefModule
|
||||
nsSecurityManagerModule
|
||||
nsRDFModule
|
||||
nsParserModule
|
||||
nsGfxModule
|
||||
nsImageLib2Module
|
||||
nsPluginModule
|
||||
nsWidgetModule
|
||||
nsLayoutModule
|
||||
docshell_provider
|
||||
|
@ -22,5 +23,4 @@ nsMorkModule
|
|||
nsXMLExtrasModule
|
||||
TransformiixModule
|
||||
nsWebServicesModule
|
||||
nsPluginModule
|
||||
SoftKeyBoardModule
|
||||
|
|
|
@ -48,8 +48,6 @@ cp -a bin/components/nsDictionary.js wince/components
|
|||
cp -a bin/components/nsInterfaceInfoToIDL.js wince/components
|
||||
cp -a bin/components/nsXmlRpcClient.js wince/components
|
||||
|
||||
cp -a bin/components/snav.dll wince/components
|
||||
|
||||
cp -a bin/components/pipboot.dll wince/components
|
||||
cp -a bin/components/pipnss.dll wince/components
|
||||
cp -a bin/components/pippki.dll wince/components
|
||||
|
|
Загрузка…
Ссылка в новой задаче