From a8976361c84c5669e1cbaa134ca02af03074625f Mon Sep 17 00:00:00 2001 From: "ben%bengoodger.com" Date: Mon, 8 Mar 2004 09:56:16 +0000 Subject: [PATCH] 236744 - replace winhooks with a XP shell service to better allow for system integration on various platforms --- browser/app/Makefile.in | 3 + browser/app/document-icon.ico | 0 browser/app/document.ico | Bin 0 -> 22486 bytes browser/app/firefox.ico | Bin 0 -> 22486 bytes browser/app/mozilla.ico | 0 browser/app/profile/firefox.js | 4 + browser/app/splash.rc | 25 +- browser/base/content/browser-sets.inc | 2 + browser/base/content/browser.js | 46 +- browser/base/content/setWallpaper.xul | 22 +- browser/base/locale/browser.properties | 61 -- browser/components/Makefile.in | 7 +- browser/components/build/Makefile.in | 6 +- browser/components/build/nsBrowserCompsCID.h | 6 + browser/components/build/nsModule.cpp | 35 +- .../prefwindow/content/pref-navigator.js | 77 +- .../prefwindow/content/pref-navigator.xul | 83 +- .../prefwindow/locale/pref-navigator.dtd | 31 - browser/components/shell/Makefile.in | 47 ++ browser/components/shell/jar.mn | 4 + browser/components/shell/public/Makefile.in | 38 + .../shell/public/nsIShellService.idl | 104 +++ .../shell/public/nsIWindowsShellService.idl | 63 ++ browser/components/shell/src/Makefile.in | 70 ++ .../shell/src/nsGNOMEShellService.cpp | 102 +++ .../shell/src/nsGNOMEShellService.h | 57 ++ .../shell/src/nsMacShellService.cpp | 102 +++ .../components/shell/src/nsMacShellService.h | 58 ++ .../shell/src/nsSetDefaultBrowser.js | 168 ++++ browser/components/shell/src/nsShellService.h | 41 + .../shell/src/nsWindowsShellService.cpp | 796 ++++++++++++++++++ .../shell/src/nsWindowsShellService.h | 67 ++ 32 files changed, 1872 insertions(+), 253 deletions(-) delete mode 100644 browser/app/document-icon.ico create mode 100644 browser/app/document.ico create mode 100644 browser/app/firefox.ico delete mode 100644 browser/app/mozilla.ico diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in index d5b0eab4d7b..e649554f8fd 100644 --- a/browser/app/Makefile.in +++ b/browser/app/Makefile.in @@ -124,6 +124,9 @@ endif ifdef BUILD_STATIC_LIBS RCFLAGS += -DMOZ_STATIC_BUILD endif +ifdef DEBUG +RCFLAGS += -DDEBUG +endif endif ifeq ($(OS_ARCH),OS2) diff --git a/browser/app/document-icon.ico b/browser/app/document-icon.ico deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/browser/app/document.ico b/browser/app/document.ico new file mode 100644 index 0000000000000000000000000000000000000000..2260cf620b451daf180dcf8120d82d7d1f927e1f GIT binary patch literal 22486 zcmeHv2V7N0)Be~sc4PF7?`t&0h{hOSHHkq{?0^-egB9!|A=nTEK@k+eUa*S|lp-LA zC`QHJ6%_0p5qqcJ`JOrFLI5=?G5`F3-|t&^?%sRP?Ah5pyE{9xGnc3Ym8E9Q2zhx5 zszNlBi0aqZelAZ`r7BUiYU=0VWr$*Gla{_d1vMc0qHZ2NK7;N+hdlcFG`uv?n7%|h zxF@Qhfq>K_Y04)`roNQ;<2^Ie-A#^kXXCGQYpp$9Up|tq1`MYwi-*(2`9mnhe=wc% z9Yk5%TuGzJrYD=mk>vYNpn?^Njb|=k? zG>Yurp7{ED;=l=%y?7#7S@}}MY8F(t(MZzk>q$+U_NQRIUnrzQ8(O8`jRM;Cre%8F zXl>i}WNx~czWmaiN|zZyEevOqTf_;9d#)khorzSnsu8_-@|dDxpOS;~Lu%jsHvPBt zHTt^gS^9VV(^TctgDAI`N|xM?&I+OuB^Oh@#>=T=zi=9};utNxl}#bfnHC()B@@>} zbokgavYV7cPQeAO)gFH$)aPaOke%ioems)M2&R)sP^X;goI@Vq{V=+BGnK6EvuM~7 z4Rz??Mg#qszWMP484kNZBj(&DkC1ybbK4yn?tPG2ciTv%%8aLJGwzb*bPbg%?M22` zx9LZt^Hj5L4ArW;knUbcro*{RExXL4xX6pt*HuGa(~`+}){&H+ z!Sr4G1p2qmdiwlZA2RrP1mWpX{COtR$*EMS#v;;fGL^hXdDF_Nb72Nue*3b-wnRL! zJn@ML(xmL9Er#vrNcbjd)_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Z?;}p#tK%Azz<^hkN-z%rqlrTG1zDKY^HOM$9xLW}3hJ z9zP00v>6x)G(>DT7Ml!}2jK%id^XPSG|IkQ{1FhJt;m1GXY+3>E@(chXLcQBR{`dT zFUQ)R^O}rDJUAmBT#@4V^Q+Y1(Y!PqI fXTp~bM7dhP>vBU@mZFfACJ%V~#w4o}R;vF2)lhi0 literal 0 HcmV?d00001 diff --git a/browser/app/firefox.ico b/browser/app/firefox.ico new file mode 100644 index 0000000000000000000000000000000000000000..5f2cce49fb05d7fef65dda059cb594cf37e623ca GIT binary patch literal 22486 zcmeHvd0da#`}buxmI`GFDYRHpQAw7pCHtDKA}uNsDoUjdZ6XRKyU=EjL=xGF>;{o# z?E7Bob3N~Kf66e!e9b)b{r#Rlp7WZw(|zA(xz0J)xz4qm&k$9hs-&+^$g5M50+ACD zsjHVgS0_?XBvMk6KRZ_;+S7o_%Bxe7CXrgx^742_xnn)c%d3-fWumFWiFD8=x}XVw z=trc$8d4_zr^4@lGc(!P1X7(k{i(0zTvBQ{j+(V`CF8z6WMt$-!-g#<4UL&pvEn2$ zuvkC=JMw7jd#1TNkJAjlTVy`!KAH5sN3A>Dpk|sEsb0gAq)_J=)vddWDplHyj^e0d zaKFv#gN{h1|(#lhhX!jGQHLsW=j>yP2T}H-363Ef}GkL9)(Z=gCO8rengFO$U z@4ghgh3V|uB63?Vqup0NQrjMjFxO+KYSl4hVv$Hs4lkp(`$Onz%2IM#E+elEcd2R1 zAgZV0M8#J(5$7+bqEpfI=|~tA?VU-lwzyJaSQ?F+`-o<)yh`nRucS}6cGBbg6}0d8 zLRym@MA7M<no+rs(`Aa=qX~ zIuW|0I9ZXDqm@a`S%U_+KO{xvAo}mJfjy4opp;W zU5-+h5m_{I=^1+axrkoI_oKIqJJOUpv#HDMMKs(`M!c>Y?JitE=GlX(L2?698?=N< zwpq~5k7;Cc#g!UpZKJ`iyQozwXWH{Qm%1JAO#%0p(1=ufTATNn6dTymy-Nou@9lPK zajGSiex6LPUN5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ly9GU@!;^F+ooR$Z5=G_$&cN^1bfpzo(Ci;Cmt z;p`HzC=r_xXXdU)@_3H>`lnp8PPbF2DRigrCMPGZGCA^Nyyu3GpL`PEu + + diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index ceed592034b..0c38d0d1e25 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -512,16 +512,31 @@ function delayedStartup() clearObsoletePrefs(); -#ifdef XP_WIN // Perform default browser checking (after window opens). - try { - var dialogShown = Components.classes["@mozilla.org/winhooks;1"] - .getService(Components.interfaces.nsIWindowsHooks) - .checkSettings(window); - } catch(e) { + var shell = Components.classes["@mozilla.org/browser/shell-service;1"] + .getService(Components.interfaces.nsIShellService); + var shouldCheck = shell.shouldCheckDefaultBrowser; + if (shouldCheck && !shell.isDefaultBrowser(true)) { + var brandBundle = document.getElementById("bundle_brand"); + var shellBundle = document.getElementById("bundle_shell"); + + var brandShortName = brandBundle.getString("brandShortName"); + var promptTitle = shellBundle.getString("setDefaultBrowserTitle"); + var promptMessage = shellBundle.getFormattedString("setDefaultBrowserMessage", + [brandShortName]); + var checkboxLabel = shellBundle.getString("setDefaultBrowserDontAsk"); + const IPS = Components.interfaces.nsIPromptService; + var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] + .getService(IPS); + var checkEveryTime = { value: shouldCheck }; + var rv = ps.confirmEx(window, promptTitle, promptMessage, + (IPS.BUTTON_TITLE_YES * IPS.BUTTON_POS_0) + + (IPS.BUTTON_TITLE_NO * IPS.BUTTON_POS_1), + null, null, null, checkboxLabel, checkEveryTime); + if (rv == 0) + shell.setDefaultBrowser(true); + shell.shouldCheckDefaultBrowser = checkEveryTime.value; } -#endif - } function Shutdown() @@ -4327,20 +4342,23 @@ var MailIntegration = { readMail: function () { - var whs = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks); - whs.openDefaultClient("Mail"); + const ss = Components.interfaces.nsIShellService; + var shell = Components.classes["@mozilla.org/browser/shell-service;1"].getService(ss); + shell.openPreferredApplication(ss.APPLICATION_MAIL); }, readNews: function () { - var whs = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks); - whs.openDefaultClient("News"); + const ss = Components.interfaces.nsIShellService; + var shell = Components.classes["@mozilla.org/browser/shell-service;1"].getService(Components.interfaces.nsIShellService); + shell.openPreferredApplication(ss.APPLICATION_NEWS); }, updateUnreadCount: function () { - var whs = Components.classes["@mozilla.org/winhooks;1"].getService(Components.interfaces.nsIWindowsHooks); - var unreadCount = whs.unreadMailCount; + var shell = Components.classes["@mozilla.org/browser/shell-service;1"] + .getService(Components.interfaces.nsIWindowsShellService); + var unreadCount = shell.unreadMailCount; var message = gNavigatorBundle.getFormattedString("mailUnreadTooltip", [unreadCount]); var element = document.getElementById("mail-button"); element.setAttribute("tooltiptext", message); diff --git a/browser/base/content/setWallpaper.xul b/browser/base/content/setWallpaper.xul index a68baefdd89..6bdbdc51c44 100755 --- a/browser/base/content/setWallpaper.xul +++ b/browser/base/content/setWallpaper.xul @@ -54,8 +54,8 @@ - @@ -170,10 +98,11 @@ - &makeDefaultText; - -