зеркало из https://github.com/mozilla/gecko-dev.git
bug 1355788 rename Appearance to Themes r=aswan
MozReview-Commit-ID: mUhecHDOUD --HG-- extra : rebase_source : 50835e38c9cbb37caf706c1d05d0bb386067d9be
This commit is contained in:
Родитель
8c19582e1b
Коммит
d98a197abf
|
@ -55,7 +55,6 @@ const PREF_FORCE_SAMPLE = "force-sample-value"; // experiments.force-sam
|
||||||
const PREF_TELEMETRY_ENABLED = "toolkit.telemetry.enabled";
|
const PREF_TELEMETRY_ENABLED = "toolkit.telemetry.enabled";
|
||||||
|
|
||||||
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
||||||
const STRING_TYPE_NAME = "type.%ID%.name";
|
|
||||||
|
|
||||||
const CACHE_WRITE_RETRY_DELAY_SEC = 60 * 3;
|
const CACHE_WRITE_RETRY_DELAY_SEC = 60 * 3;
|
||||||
const MANIFEST_FETCH_TIMEOUT_MSEC = 60 * 3 * 1000; // 3 minutes
|
const MANIFEST_FETCH_TIMEOUT_MSEC = 60 * 3 * 1000; // 3 minutes
|
||||||
|
@ -538,7 +537,7 @@ Experiments.Experiments.prototype = {
|
||||||
AddonManagerPrivate.registerProvider(gAddonProvider, [
|
AddonManagerPrivate.registerProvider(gAddonProvider, [
|
||||||
new AddonManagerPrivate.AddonType("experiment",
|
new AddonManagerPrivate.AddonType("experiment",
|
||||||
URI_EXTENSION_STRINGS,
|
URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.experiment.name",
|
||||||
AddonManager.VIEW_TYPE_LIST,
|
AddonManager.VIEW_TYPE_LIST,
|
||||||
11000,
|
11000,
|
||||||
AddonManager.TYPE_UI_HIDE_EMPTY),
|
AddonManager.TYPE_UI_HIDE_EMPTY),
|
||||||
|
|
|
@ -182,7 +182,7 @@ cmd.purchaseAddon.accesskey=u
|
||||||
eulaHeader=%S requires that you accept the following End User License Agreement before installation can proceed:
|
eulaHeader=%S requires that you accept the following End User License Agreement before installation can proceed:
|
||||||
|
|
||||||
type.extension.name=Extensions
|
type.extension.name=Extensions
|
||||||
type.theme.name=Appearance
|
type.themes.name=Themes
|
||||||
type.locale.name=Languages
|
type.locale.name=Languages
|
||||||
type.plugin.name=Plugins
|
type.plugin.name=Plugins
|
||||||
type.dictionary.name=Dictionaries
|
type.dictionary.name=Dictionaries
|
||||||
|
|
|
@ -566,9 +566,7 @@ AddonCompatibilityOverride.prototype = {
|
||||||
* The URI of a localized properties file to get the displayable name
|
* The URI of a localized properties file to get the displayable name
|
||||||
* for the type from
|
* for the type from
|
||||||
* @param aLocaleKey
|
* @param aLocaleKey
|
||||||
* The key for the string in the properties file or the actual display
|
* The key for the string in the properties file.
|
||||||
* name if aLocaleURI is null. Include %ID% to include the type ID in
|
|
||||||
* the key
|
|
||||||
* @param aViewType
|
* @param aViewType
|
||||||
* The optional type of view to use in the UI
|
* The optional type of view to use in the UI
|
||||||
* @param aUIPriority
|
* @param aUIPriority
|
||||||
|
@ -598,7 +596,7 @@ function AddonType(aID, aLocaleURI, aLocaleKey, aViewType, aUIPriority, aFlags)
|
||||||
if (aLocaleURI) {
|
if (aLocaleURI) {
|
||||||
XPCOMUtils.defineLazyGetter(this, "name", () => {
|
XPCOMUtils.defineLazyGetter(this, "name", () => {
|
||||||
let bundle = Services.strings.createBundle(aLocaleURI);
|
let bundle = Services.strings.createBundle(aLocaleURI);
|
||||||
return bundle.GetStringFromName(aLocaleKey.replace("%ID%", aID));
|
return bundle.GetStringFromName(aLocaleKey);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.name = aLocaleKey;
|
this.name = aLocaleKey;
|
||||||
|
|
|
@ -23,8 +23,6 @@ const ADDON_TYPE_WEBEXT = "webextension-theme";
|
||||||
|
|
||||||
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
||||||
|
|
||||||
const STRING_TYPE_NAME = "type.%ID%.name";
|
|
||||||
|
|
||||||
const DEFAULT_MAX_USED_THEMES_COUNT = 30;
|
const DEFAULT_MAX_USED_THEMES_COUNT = 30;
|
||||||
|
|
||||||
const MAX_PREVIEW_SECONDS = 30;
|
const MAX_PREVIEW_SECONDS = 30;
|
||||||
|
@ -901,6 +899,6 @@ function _persistProgressListener(successCallback) {
|
||||||
|
|
||||||
AddonManagerPrivate.registerProvider(LightweightThemeManager, [
|
AddonManagerPrivate.registerProvider(LightweightThemeManager, [
|
||||||
new AddonManagerPrivate.AddonType("theme", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("theme", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.themes.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 5000)
|
AddonManager.VIEW_TYPE_LIST, 5000)
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -28,7 +28,6 @@ XPCOMUtils.defineLazyModuleGetter(
|
||||||
this, "setTimeout", "resource://gre/modules/Timer.jsm");
|
this, "setTimeout", "resource://gre/modules/Timer.jsm");
|
||||||
|
|
||||||
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
||||||
const STRING_TYPE_NAME = "type.%ID%.name";
|
|
||||||
|
|
||||||
const SEC_IN_A_DAY = 24 * 60 * 60;
|
const SEC_IN_A_DAY = 24 * 60 * 60;
|
||||||
// How long to wait after a user enabled EME before attempting to download CDMs.
|
// How long to wait after a user enabled EME before attempting to download CDMs.
|
||||||
|
@ -688,7 +687,7 @@ var GMPProvider = {
|
||||||
|
|
||||||
AddonManagerPrivate.registerProvider(GMPProvider, [
|
AddonManagerPrivate.registerProvider(GMPProvider, [
|
||||||
new AddonManagerPrivate.AddonType("plugin", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("plugin", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.plugin.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 6000,
|
AddonManager.VIEW_TYPE_LIST, 6000,
|
||||||
AddonManager.TYPE_SUPPORTS_ASK_TO_ACTIVATE)
|
AddonManager.TYPE_SUPPORTS_ASK_TO_ACTIVATE)
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -17,7 +17,6 @@ Cu.import("resource://gre/modules/AddonManager.jsm");
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
||||||
const STRING_TYPE_NAME = "type.%ID%.name";
|
|
||||||
const LIST_UPDATED_TOPIC = "plugins-list-updated";
|
const LIST_UPDATED_TOPIC = "plugins-list-updated";
|
||||||
const FLASH_MIME_TYPE = "application/x-shockwave-flash";
|
const FLASH_MIME_TYPE = "application/x-shockwave-flash";
|
||||||
|
|
||||||
|
@ -569,7 +568,7 @@ PluginWrapper.prototype = {
|
||||||
|
|
||||||
AddonManagerPrivate.registerProvider(PluginProvider, [
|
AddonManagerPrivate.registerProvider(PluginProvider, [
|
||||||
new AddonManagerPrivate.AddonType("plugin", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("plugin", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.plugin.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 6000,
|
AddonManager.VIEW_TYPE_LIST, 6000,
|
||||||
AddonManager.TYPE_SUPPORTS_ASK_TO_ACTIVATE)
|
AddonManager.TYPE_SUPPORTS_ASK_TO_ACTIVATE)
|
||||||
]);
|
]);
|
||||||
|
|
|
@ -110,8 +110,6 @@ const OBSOLETE_PREFERENCES = [
|
||||||
const URI_EXTENSION_UPDATE_DIALOG = "chrome://mozapps/content/extensions/update.xul";
|
const URI_EXTENSION_UPDATE_DIALOG = "chrome://mozapps/content/extensions/update.xul";
|
||||||
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
|
||||||
|
|
||||||
const STRING_TYPE_NAME = "type.%ID%.name";
|
|
||||||
|
|
||||||
const DIR_EXTENSIONS = "extensions";
|
const DIR_EXTENSIONS = "extensions";
|
||||||
const DIR_SYSTEM_ADDONS = "features";
|
const DIR_SYSTEM_ADDONS = "features";
|
||||||
const DIR_STAGE = "staged";
|
const DIR_STAGE = "staged";
|
||||||
|
@ -6934,18 +6932,18 @@ this.XPIInternal = {
|
||||||
|
|
||||||
var addonTypes = [
|
var addonTypes = [
|
||||||
new AddonManagerPrivate.AddonType("extension", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("extension", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.extension.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 4000,
|
AddonManager.VIEW_TYPE_LIST, 4000,
|
||||||
AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL),
|
AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL),
|
||||||
new AddonManagerPrivate.AddonType("theme", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("theme", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.themes.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 5000),
|
AddonManager.VIEW_TYPE_LIST, 5000),
|
||||||
new AddonManagerPrivate.AddonType("dictionary", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("dictionary", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.dictionary.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 7000,
|
AddonManager.VIEW_TYPE_LIST, 7000,
|
||||||
AddonManager.TYPE_UI_HIDE_EMPTY | AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL),
|
AddonManager.TYPE_UI_HIDE_EMPTY | AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL),
|
||||||
new AddonManagerPrivate.AddonType("locale", URI_EXTENSION_STRINGS,
|
new AddonManagerPrivate.AddonType("locale", URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.locale.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 8000,
|
AddonManager.VIEW_TYPE_LIST, 8000,
|
||||||
AddonManager.TYPE_UI_HIDE_EMPTY | AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL),
|
AddonManager.TYPE_UI_HIDE_EMPTY | AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL),
|
||||||
];
|
];
|
||||||
|
@ -6958,7 +6956,7 @@ if (Services.prefs.getBoolPref("experiments.supported", false)) {
|
||||||
addonTypes.push(
|
addonTypes.push(
|
||||||
new AddonManagerPrivate.AddonType("experiment",
|
new AddonManagerPrivate.AddonType("experiment",
|
||||||
URI_EXTENSION_STRINGS,
|
URI_EXTENSION_STRINGS,
|
||||||
STRING_TYPE_NAME,
|
"type.experiment.name",
|
||||||
AddonManager.VIEW_TYPE_LIST, 11000,
|
AddonManager.VIEW_TYPE_LIST, 11000,
|
||||||
AddonManager.TYPE_UI_HIDE_EMPTY | AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL));
|
AddonManager.TYPE_UI_HIDE_EMPTY | AddonManager.TYPE_SUPPORTS_UNDO_RESTARTLESS_UNINSTALL));
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче