Add native chrome-registry support for platform-specific packages (through the c:platformPackage arc), and centralize the chrome://global-platform/locale/ files.
git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@159472 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -895,7 +895,6 @@ chrome/tools/chromereg/Makefile
|
||||
toolkit/Makefile
|
||||
toolkit/content/Makefile
|
||||
toolkit/content/buildconfig.html
|
||||
toolkit/locale/Makefile
|
||||
toolkit/obsolete/Makefile
|
||||
toolkit/components/autocomplete/Makefile
|
||||
toolkit/components/autocomplete/public/Makefile
|
||||
@@ -926,7 +925,6 @@ toolkit/mozapps/installer/windows/wizard/setup/Makefile
|
||||
toolkit/mozapps/installer/windows/wizard/setuprsc/Makefile
|
||||
toolkit/mozapps/installer/windows/wizard/uninstall/Makefile
|
||||
toolkit/xre/Makefile
|
||||
toolkit/locale/contents-platform.rdf
|
||||
toolkit/components/passwordmgr/resources/content/contents.rdf
|
||||
toolkit/components/passwordmgr/resources/locale/contents.rdf
|
||||
toolkit/mozapps/contents-content.rdf
|
||||
|
||||
@@ -129,6 +129,7 @@ DEFINE_RDF_VOCAB(CHROME_URI, CHROME, skinVersion);
|
||||
DEFINE_RDF_VOCAB(CHROME_URI, CHROME, localeVersion);
|
||||
DEFINE_RDF_VOCAB(CHROME_URI, CHROME, packageVersion);
|
||||
DEFINE_RDF_VOCAB(CHROME_URI, CHROME, disabled);
|
||||
DEFINE_RDF_VOCAB(CHROME_URI, CHROME, platformPackage);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -300,6 +301,10 @@ nsChromeRegistry::Init()
|
||||
getter_AddRefs(mDisabled));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF resource");
|
||||
|
||||
rv = mRDFService->GetResource(nsDependentCString(kURICHROME_platformPackage),
|
||||
getter_AddRefs(mPlatformPackage));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF resource");
|
||||
|
||||
nsCOMPtr<nsIObserverService> observerService =
|
||||
do_GetService("@mozilla.org/observer-service;1", &rv);
|
||||
if (observerService) {
|
||||
@@ -615,7 +620,21 @@ nsChromeRegistry::GetBaseURL(const nsACString& aPackage,
|
||||
}
|
||||
|
||||
// From this resource, follow the "baseURL" arc.
|
||||
return FollowArc(mChromeDataSource, aBaseURL, resource, mBaseURL);
|
||||
rv = FollowArc(mChromeDataSource, aBaseURL, resource, mBaseURL);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCAutoString isPlatformPackage;
|
||||
rv = FollowArc(mChromeDataSource, isPlatformPackage, packageResource, mPlatformPackage);
|
||||
if (NS_FAILED(rv) || !isPlatformPackage.Equals("true")) return NS_OK;
|
||||
|
||||
#if defined(XP_WIN) || defined(XP_OS2)
|
||||
aBaseURL.Append("win/");
|
||||
#elif defined(XP_MACOSX)
|
||||
aBaseURL.Append("mac/");
|
||||
#else
|
||||
aBaseURL.Append("unix/");
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
||||
@@ -252,6 +252,7 @@ protected:
|
||||
nsCOMPtr<nsIRDFResource> mLocaleVersion;
|
||||
nsCOMPtr<nsIRDFResource> mPackageVersion;
|
||||
nsCOMPtr<nsIRDFResource> mDisabled;
|
||||
nsCOMPtr<nsIRDFResource> mPlatformPackage;
|
||||
|
||||
nsCOMPtr<nsIZipReader> mOverrideJAR;
|
||||
nsCString mOverrideJARURL;
|
||||
|
||||
@@ -45,7 +45,6 @@ include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = \
|
||||
content \
|
||||
locale \
|
||||
locales \
|
||||
obsolete \
|
||||
profile \
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- list all the locale being supplied by this package -->
|
||||
<RDF:Seq about="urn:mozilla:locale:root">
|
||||
<RDF:li resource="urn:mozilla:locale:en-US"/>
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- locale information -->
|
||||
<RDF:Description about="urn:mozilla:locale:en-US"
|
||||
chrome:name="en-US">
|
||||
<chrome:packages>
|
||||
<RDF:Seq about="urn:mozilla:locale:en-US:packages">
|
||||
<RDF:li resource="urn:mozilla:locale:en-US:global-platform"/>
|
||||
</RDF:Seq>
|
||||
</chrome:packages>
|
||||
</RDF:Description>
|
||||
|
||||
<!-- Version Information. State that we work only with major version of this
|
||||
package. -->
|
||||
<RDF:Description about="urn:mozilla:locale:en-US:global-platform"
|
||||
chrome:localeVersion="@MOZILLA_LOCALE_VERSION@"/>
|
||||
</RDF:RDF>
|
||||
@@ -1,14 +0,0 @@
|
||||
en-win.jar:
|
||||
+ locale/en-US/global-platform/contents.rdf (contents-platform.rdf)
|
||||
locale/en-US/global-platform/intl.properties (win/intl.properties)
|
||||
+ locale/en-US/global-platform/platformKeys.properties (platformKeys.properties)
|
||||
|
||||
en-unix.jar:
|
||||
+ locale/en-US/global-platform/contents.rdf (contents-platform.rdf)
|
||||
locale/en-US/global-platform/intl.properties (unix/intl.properties)
|
||||
+ locale/en-US/global-platform/platformKeys.properties (platformKeys.properties)
|
||||
|
||||
en-mac.jar:
|
||||
+ locale/en-US/global-platform/contents.rdf (contents-platform.rdf)
|
||||
locale/en-US/global-platform/intl.properties (mac/intl.properties)
|
||||
+ locale/en-US/global-platform/platformKeys.properties (platformKeys-mac.properties)
|
||||
@@ -0,0 +1,18 @@
|
||||
#default
|
||||
#this file defines the on screen display names for the various modifier keys
|
||||
#these are used in XP menus to show keyboard shortcuts
|
||||
|
||||
#the shift key
|
||||
VK_SHIFT=Shift
|
||||
|
||||
#the command key
|
||||
VK_META=Meta
|
||||
|
||||
#the alt key
|
||||
VK_ALT=Alt
|
||||
|
||||
#the control key
|
||||
VK_CONTROL=Ctrl
|
||||
|
||||
#the separator character used between modifiers
|
||||
MODIFIER_SEPARATOR=+
|
||||
@@ -71,6 +71,13 @@
|
||||
+ locale/global-region/region.dtd (@AB_CD@/chrome/global-region/region.dtd)
|
||||
+ locale/global-region/region.properties (@AB_CD@/chrome/global-region/region.properties)
|
||||
+ locale/global-region/builtinURLs.rdf (@AB_CD@/chrome/global-region/builtinURLs.rdf)
|
||||
* locale/global-platform/contents.rdf (@AB_CD@/chrome/global-platform/contents.rdf)
|
||||
locale/global-platform/mac/platformKeys.properties (@AB_CD@/chrome/global-platform/mac/platformKeys.properties)
|
||||
locale/global-platform/unix/platformKeys.properties (@AB_CD@/chrome/global-platform/unix/platformKeys.properties)
|
||||
locale/global-platform/win/platformKeys.properties (@AB_CD@/chrome/global-platform/win/platformKeys.properties)
|
||||
locale/global-platform/mac/intl.properties (@AB_CD@/chrome/global-platform/mac/intl.properties)
|
||||
locale/global-platform/unix/intl.properties (@AB_CD@/chrome/global-platform/unix/intl.properties)
|
||||
locale/global-platform/win/intl.properties (@AB_CD@/chrome/global-platform/win/intl.properties)
|
||||
* locale/necko/contents.rdf (@AB_CD@/chrome/necko/contents.rdf)
|
||||
locale/necko/necko.properties (@AB_CD@/chrome/necko/necko.properties)
|
||||
locale/necko/redirect_loop.dtd (@AB_CD@/chrome/necko/redirect_loop.dtd)
|
||||
|
||||
Reference in New Issue
Block a user