diff --git a/embedding/minimo/mozconfig b/embedding/minimo/mozconfig index 1833e2a1e3b..e69de29bb2d 100644 --- a/embedding/minimo/mozconfig +++ b/embedding/minimo/mozconfig @@ -1,66 +0,0 @@ -# build minimo -MINIMO=1 -mk_add_options MINIMO=1 - -# use GTK+-2 widget set with XFT font rendering -ac_add_options --enable-default-toolkit=gtk2 -ac_add_options --enable-xft -ac_add_options --disable-freetype2 - -# disable XUL support to reduce codesize -ac_add_options --disable-xul - -# enable minimal profile support -ac_add_options --disable-profilesharing -ac_add_options --disable-profilelocking -ac_add_options --enable-single-profile - -# disable features and skip various build steps -ac_add_options --disable-extensions -ac_add_options --disable-accessibility -ac_add_options --disable-composer -ac_add_options --enable-plaintext-editor-only -ac_add_options --disable-mailnews -ac_add_options --disable-ldap -ac_add_options --disable-postscript -ac_add_options --disable-mathml -ac_add_options --disable-jsd -ac_add_options --disable-jsloader -ac_add_options --disable-installer -ac_add_options --disable-xpinstall -ac_add_options --disable-xpfe-components -ac_add_options --disable-xprint -ac_add_options --disable-necko-disk-cache -ac_add_options --disable-plugins - -# configure necko to allocate smaller network buffers -ac_add_options --enable-necko-small-buffers - -# disable debug logging and tests -ac_add_options --disable-dtd-debug -ac_add_options --disable-logging -ac_add_options --disable-tests - -# build crypto module (PSM + NSS) -ac_add_options --enable-crypto - -# build minimal set of protocol handlers -ac_add_options --enable-necko-protocols=http,file,res,jar - -# build minimal set of image decoders -ac_add_options --enable-image-decoders=png,gif,jpeg - -# code generation options (optimize for size) -# ac_add_options --enable-optimize=-Os -# ac_add_options --enable-strip -# ac_add_options --disable-debug -ac_add_options --enable-reorder -ac_add_options --enable-elf-dynstr-gc - -# enable static build -ac_add_options --disable-shared -ac_add_options --enable-static - -# remove link dependency on libstdc++.so -LIBS=-lsupc++ -CXX=gcc diff --git a/embedding/minimo/smallScreen.css b/embedding/minimo/smallScreen.css index 75546099eaf..32e93c67892 100644 --- a/embedding/minimo/smallScreen.css +++ b/embedding/minimo/smallScreen.css @@ -69,3 +69,13 @@ a { img[src*="spacer"] { display: none ! important; } + + +/* google maps hack */ +div#rhs { display: none ! important;} + +div#map { height: 100%; + width: 100%; + overflow: hidden; + position: inherit; + } diff --git a/embedding/minimo/wince/Makefile.in b/embedding/minimo/wince/Makefile.in index accbd94cb13..b953d451397 100755 --- a/embedding/minimo/wince/Makefile.in +++ b/embedding/minimo/wince/Makefile.in @@ -58,6 +58,7 @@ REQUIRES = xpcom \ layout \ content \ profdirserviceprovider \ + pref \ embedcomponents \ appcomps \ $(NULL) diff --git a/embedding/minimo/wince/MinimoPrivate.h b/embedding/minimo/wince/MinimoPrivate.h index 3473994a636..842af88e75e 100755 --- a/embedding/minimo/wince/MinimoPrivate.h +++ b/embedding/minimo/wince/MinimoPrivate.h @@ -42,6 +42,9 @@ #include "nsIDOMWindow.h" #include "nsIComponentRegistrar.h" +#include "nsIPrefBranch.h" +#include "nsIPrefService.h" + #include "nsIWidget.h" // Local header files diff --git a/embedding/minimo/wince/all.js b/embedding/minimo/wince/all.js index 7dcf37485bb..3eb33780cc7 100755 --- a/embedding/minimo/wince/all.js +++ b/embedding/minimo/wince/all.js @@ -208,3 +208,5 @@ pref("ui.key.menuAccessKey", 18); pref("ui.key.menuAccessKeyFocuses", false); pref("ui.key.saveLink.shift", true); pref("viewmanager.do_doublebuffering", true); + +pref("network.autodial-helper.enabled", true); diff --git a/embedding/minimo/wince/mozconfig/ppc2003arm b/embedding/minimo/wince/mozconfig/ppc2003arm index b586fa9e522..d604d0c44b0 100755 --- a/embedding/minimo/wince/mozconfig/ppc2003arm +++ b/embedding/minimo/wince/mozconfig/ppc2003arm @@ -72,7 +72,7 @@ ac_add_options --disable-debug #ac_add_options --disable-optimize #ac_add_options --enable-debug -ac_add_options --enable-optimize=-Os +#ac_add_options --enable-optimize=-Os # enable static build ac_add_options --disable-shared diff --git a/embedding/minimo/wince/winEmbed.cpp b/embedding/minimo/wince/winEmbed.cpp index 99fd27400b8..4c03a0dbb30 100755 --- a/embedding/minimo/wince/winEmbed.cpp +++ b/embedding/minimo/wince/winEmbed.cpp @@ -71,6 +71,15 @@ nsresult StartupProfile() return locProvider->SetProfileDir(localAppDataDir); } +void SetPreferences() +{ + nsCOMPtr prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID); + if (!prefBranch) + return; + + +} + LRESULT CALLBACK MainWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { nsIWebBrowserChrome *chrome = (nsIWebBrowserChrome *) GetWindowLong(hWnd, GWL_USERDATA); @@ -230,7 +239,6 @@ PRBool CheckForProcess() int main(int argc, char *argv[]) { - if (!CheckForProcess()) return 0; @@ -253,6 +261,8 @@ int main(int argc, char *argv[]) RegisterMainWindowClass(); + SetPreferences(); + WindowCreator *creatorCallback = new WindowCreator(); if (!creatorCallback) return 1;