summaryrefslogtreecommitdiff
path: root/chrome/nsChromeRegistryContent.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2021-11-14 04:30:01 -0500
committerMatt A. Tobin <email@mattatobin.com>2021-11-14 04:30:01 -0500
commit93f5ecf4693025d9068f38fcb5fe1b7abc0356b2 (patch)
treeacec26376b1fc14794ef28b4c92dc0d11d5c3405 /chrome/nsChromeRegistryContent.h
parent5b7b789898077c1a8718ab0052c939a994b391a5 (diff)
downloadaura-central-93f5ecf4693025d9068f38fcb5fe1b7abc0356b2.tar.gz
Issue %3005 - Move chrome/ to components/registry
Diffstat (limited to 'chrome/nsChromeRegistryContent.h')
-rw-r--r--chrome/nsChromeRegistryContent.h84
1 files changed, 0 insertions, 84 deletions
diff --git a/chrome/nsChromeRegistryContent.h b/chrome/nsChromeRegistryContent.h
deleted file mode 100644
index 0a74d13db..000000000
--- a/chrome/nsChromeRegistryContent.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-#ifndef nsChromeRegistryContent_h
-#define nsChromeRegistryContent_h
-
-#include "nsChromeRegistry.h"
-#include "nsClassHashtable.h"
-
-struct ChromePackage;
-struct SubstitutionMapping;
-struct OverrideMapping;
-
-class nsChromeRegistryContent : public nsChromeRegistry
-{
- public:
- nsChromeRegistryContent();
-
- void RegisterRemoteChrome(const InfallibleTArray<ChromePackage>& aPackages,
- const InfallibleTArray<SubstitutionMapping>& aResources,
- const InfallibleTArray<OverrideMapping>& aOverrides,
- const nsACString& aLocale,
- bool aReset);
-
- NS_IMETHOD GetLocalesForPackage(const nsACString& aPackage,
- nsIUTF8StringEnumerator* *aResult) override;
- NS_IMETHOD CheckForNewChrome() override;
- NS_IMETHOD CheckForOSAccessibility() override;
- NS_IMETHOD Observe(nsISupports* aSubject, const char* aTopic,
- const char16_t* aData) override;
- NS_IMETHOD IsLocaleRTL(const nsACString& package,
- bool *aResult) override;
- NS_IMETHOD GetSelectedLocale(const nsACString& aPackage,
- bool aAsBCP47,
- nsACString& aLocale) override;
- NS_IMETHOD GetStyleOverlays(nsIURI *aChromeURL,
- nsISimpleEnumerator **aResult) override;
- NS_IMETHOD GetXULOverlays(nsIURI *aChromeURL,
- nsISimpleEnumerator **aResult) override;
-
- void RegisterPackage(const ChromePackage& aPackage);
- void RegisterOverride(const OverrideMapping& aOverride);
- void RegisterSubstitution(const SubstitutionMapping& aResource);
-
- private:
- struct PackageEntry
- {
- PackageEntry() : flags(0) { }
- ~PackageEntry() { }
-
- nsCOMPtr<nsIURI> contentBaseURI;
- nsCOMPtr<nsIURI> localeBaseURI;
- nsCOMPtr<nsIURI> skinBaseURI;
- uint32_t flags;
- };
-
- nsresult UpdateSelectedLocale() override;
- nsIURI* GetBaseURIFromPackage(const nsCString& aPackage,
- const nsCString& aProvider,
- const nsCString& aPath) override;
- nsresult GetFlagsFromPackage(const nsCString& aPackage, uint32_t* aFlags) override;
-
- nsClassHashtable<nsCStringHashKey, PackageEntry> mPackagesHash;
- nsCString mLocale;
-
- virtual void ManifestContent(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
- virtual void ManifestLocale(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
- virtual void ManifestSkin(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
- virtual void ManifestOverlay(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
- virtual void ManifestStyle(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
- virtual void ManifestOverride(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
- virtual void ManifestResource(ManifestProcessingContext& cx, int lineno,
- char *const * argv, int flags) override;
-};
-
-#endif // nsChromeRegistryContent_h