diff --git a/mozilla/chrome/public/nsIChromeRegistry.idl b/mozilla/chrome/public/nsIChromeRegistry.idl index ef71efeb2fd..df35a87ce4e 100644 --- a/mozilla/chrome/public/nsIChromeRegistry.idl +++ b/mozilla/chrome/public/nsIChromeRegistry.idl @@ -77,6 +77,15 @@ interface nsIChromeRegistry : nsISupports void deselectSkinForPackage(in wstring skinName, in wstring packageName, in boolean useProfile); void deselectLocaleForPackage(in wstring localeName, in wstring packageName, in boolean useProfile); + /* Installation APIs */ + void installSkin(in nsIURI baseURL, in boolean useProfile); + void uninstallSkin(in wstring skinName, in boolean useProfile); + + void installLocale(in nsIURI baseURL, in boolean useProfile); + void uninstallLocale(in wstring localeName, in boolean useProfile); + + void installPackage(in nsIURI baseURL, in boolean useProfile); + void uninstallPackage(in wstring packageName, in boolean useProfile); }; diff --git a/mozilla/chrome/src/nsChromeRegistry.cpp b/mozilla/chrome/src/nsChromeRegistry.cpp index 68a9bf6161a..c3a8a0d237f 100644 --- a/mozilla/chrome/src/nsChromeRegistry.cpp +++ b/mozilla/chrome/src/nsChromeRegistry.cpp @@ -1142,6 +1142,42 @@ NS_IMETHODIMP nsChromeRegistry::SelectProviderForPackage(const PRUnichar *aTheme return NS_OK; } +NS_IMETHODIMP nsChromeRegistry::InstallSkin(nsIURI* aBaseURL, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::InstallLocale(nsIURI* aBaseURL, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::InstallPackage(nsIURI* aBaseURL, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::UninstallSkin(const PRUnichar* aSkinName, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::UninstallLocale(const PRUnichar* aLocaleName, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::UninstallPackage(const PRUnichar* aPackageName, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + NS_IMETHODIMP nsChromeRegistry::GetProfileRoot(nsCAutoString& aFileURL) { diff --git a/mozilla/rdf/chrome/public/nsIChromeRegistry.idl b/mozilla/rdf/chrome/public/nsIChromeRegistry.idl index ef71efeb2fd..df35a87ce4e 100644 --- a/mozilla/rdf/chrome/public/nsIChromeRegistry.idl +++ b/mozilla/rdf/chrome/public/nsIChromeRegistry.idl @@ -77,6 +77,15 @@ interface nsIChromeRegistry : nsISupports void deselectSkinForPackage(in wstring skinName, in wstring packageName, in boolean useProfile); void deselectLocaleForPackage(in wstring localeName, in wstring packageName, in boolean useProfile); + /* Installation APIs */ + void installSkin(in nsIURI baseURL, in boolean useProfile); + void uninstallSkin(in wstring skinName, in boolean useProfile); + + void installLocale(in nsIURI baseURL, in boolean useProfile); + void uninstallLocale(in wstring localeName, in boolean useProfile); + + void installPackage(in nsIURI baseURL, in boolean useProfile); + void uninstallPackage(in wstring packageName, in boolean useProfile); }; diff --git a/mozilla/rdf/chrome/src/nsChromeRegistry.cpp b/mozilla/rdf/chrome/src/nsChromeRegistry.cpp index 68a9bf6161a..c3a8a0d237f 100644 --- a/mozilla/rdf/chrome/src/nsChromeRegistry.cpp +++ b/mozilla/rdf/chrome/src/nsChromeRegistry.cpp @@ -1142,6 +1142,42 @@ NS_IMETHODIMP nsChromeRegistry::SelectProviderForPackage(const PRUnichar *aTheme return NS_OK; } +NS_IMETHODIMP nsChromeRegistry::InstallSkin(nsIURI* aBaseURL, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::InstallLocale(nsIURI* aBaseURL, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::InstallPackage(nsIURI* aBaseURL, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::UninstallSkin(const PRUnichar* aSkinName, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::UninstallLocale(const PRUnichar* aLocaleName, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + +NS_IMETHODIMP nsChromeRegistry::UninstallPackage(const PRUnichar* aPackageName, PRBool aUseProfile) +{ + NS_ERROR("Write me!\n"); + return NS_OK; +} + NS_IMETHODIMP nsChromeRegistry::GetProfileRoot(nsCAutoString& aFileURL) {