Commit 682b1ec3 authored by Florian Quèze's avatar Florian Quèze
Browse files

Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8.

parent a45db315
......@@ -6,7 +6,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["AccessFu"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["AccessFu"]; // jshint ignore:line
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/accessibility/Utils.jsm");
......@@ -23,7 +23,7 @@ const SCREENREADER_SETTING = "accessibility.screenreader";
const QUICKNAV_MODES_PREF = "accessibility.accessfu.quicknav_modes";
const QUICKNAV_INDEX_PREF = "accessibility.accessfu.quicknav_index";
this.AccessFu = { // jshint ignore:line
var AccessFu = { // jshint ignore:line
/**
* Initialize chrome-layer accessibility functionality.
* If accessibility is enabled on the platform, then a special accessibility
......
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
this.EXPORTED_SYMBOLS = ["Roles", "Events", "Relations",
"Filters", "States", "Prefilters"];
var EXPORTED_SYMBOLS = ["Roles", "Events", "Relations",
"Filters", "States", "Prefilters"];
function ConstantsMap(aObject, aPrefix, aMap = {}, aModifier = null) {
let offset = aPrefix.length;
......
......@@ -18,16 +18,16 @@ ChromeUtils.defineModuleGetter(this, "TraversalHelper",
ChromeUtils.defineModuleGetter(this, "Presentation",
"resource://gre/modules/accessibility/Presentation.jsm");
this.EXPORTED_SYMBOLS = ["ContentControl"];
var EXPORTED_SYMBOLS = ["ContentControl"];
const MOVEMENT_GRANULARITY_CHARACTER = 1;
const MOVEMENT_GRANULARITY_WORD = 2;
const MOVEMENT_GRANULARITY_PARAGRAPH = 8;
this.ContentControl = function ContentControl(aContentScope) {
function ContentControl(aContentScope) {
this._contentScope = Cu.getWeakReference(aContentScope);
this._childMessageSenders = new WeakMap();
};
}
this.ContentControl.prototype = {
messagesOfInterest: ["AccessFu:MoveCursor",
......
......@@ -22,9 +22,9 @@ ChromeUtils.defineModuleGetter(this, "Events",
ChromeUtils.defineModuleGetter(this, "States",
"resource://gre/modules/accessibility/Constants.jsm");
this.EXPORTED_SYMBOLS = ["EventManager"];
var EXPORTED_SYMBOLS = ["EventManager"];
this.EventManager = function EventManager(aContentScope, aContentControl) {
function EventManager(aContentScope, aContentControl) {
this.contentScope = aContentScope;
this.contentControl = aContentControl;
this.addEventListener = this.contentScope.addEventListener.bind(
......@@ -36,7 +36,7 @@ this.EventManager = function EventManager(aContentScope, aContentControl) {
this.webProgress = this.contentScope.docShell.
QueryInterface(Ci.nsIInterfaceRequestor).
getInterface(Ci.nsIWebProgress);
};
}
this.EventManager.prototype = {
editState: { editing: false },
......
......@@ -36,7 +36,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["GestureSettings", "GestureTracker"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["GestureSettings", "GestureTracker"]; // jshint ignore:line
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......@@ -132,7 +132,7 @@ Point.prototype = {
* An externally accessible collection of settings used in gesture resolition.
* @type {Object}
*/
this.GestureSettings = { // jshint ignore:line
var GestureSettings = { // jshint ignore:line
/**
* Maximum duration of swipe
* @type {Number}
......@@ -179,7 +179,7 @@ this.GestureSettings = { // jshint ignore:line
* gestures.
* @type {Object}
*/
this.GestureTracker = { // jshint ignore:line
var GestureTracker = { // jshint ignore:line
/**
* Reset GestureTracker to its initial state.
* @return {[type]} [description]
......
......@@ -27,7 +27,7 @@ ChromeUtils.defineModuleGetter(this, "Roles", // jshint ignore:line
ChromeUtils.defineModuleGetter(this, "States", // jshint ignore:line
"resource://gre/modules/accessibility/Constants.jsm");
this.EXPORTED_SYMBOLS = ["UtteranceGenerator", "BrailleGenerator"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["UtteranceGenerator", "BrailleGenerator"]; // jshint ignore:line
var OutputGenerator = {
......@@ -581,7 +581,7 @@ var OutputGenerator = {
* clicked event. Speaking only 'clicked' makes sense. Speaking 'button' does
* not.
*/
this.UtteranceGenerator = { // jshint ignore:line
var UtteranceGenerator = { // jshint ignore:line
__proto__: OutputGenerator, // jshint ignore:line
gActionMap: {
......@@ -840,7 +840,7 @@ this.UtteranceGenerator = { // jshint ignore:line
}
};
this.BrailleGenerator = { // jshint ignore:line
var BrailleGenerator = { // jshint ignore:line
__proto__: OutputGenerator, // jshint ignore:line
genForContext: function genForContext(aContext) {
......
......@@ -6,7 +6,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["PointerRelay", "PointerAdapter"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["PointerRelay", "PointerAdapter"]; // jshint ignore:line
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......@@ -137,7 +137,7 @@ var PointerRelay = { // jshint ignore:line
}
};
this.PointerAdapter = { // jshint ignore:line
var PointerAdapter = { // jshint ignore:line
start: function PointerAdapter_start() {
Logger.debug("PointerAdapter.start");
GestureTracker.reset();
......
......@@ -21,7 +21,7 @@ ChromeUtils.defineModuleGetter(this, "Roles", // jshint ignore:line
ChromeUtils.defineModuleGetter(this, "States", // jshint ignore:line
"resource://gre/modules/accessibility/Constants.jsm");
this.EXPORTED_SYMBOLS = ["Presentation"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["Presentation"]; // jshint ignore:line
/**
* The interface for all presenter classes. A presenter could be, for example,
......@@ -672,7 +672,7 @@ BraillePresenter.prototype.textSelectionChanged =
};
};
this.Presentation = { // jshint ignore:line
var Presentation = { // jshint ignore:line
get presenters() {
delete this.presenters;
let presenterMap = {
......
......@@ -6,7 +6,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["TraversalRules", "TraversalHelper"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["TraversalRules", "TraversalHelper"]; // jshint ignore:line
ChromeUtils.import("resource://gre/modules/accessibility/Utils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......@@ -180,7 +180,7 @@ var gSimplePreFilter = Prefilters.DEFUNCT |
Prefilters.ARIA_HIDDEN |
Prefilters.TRANSPARENT;
this.TraversalRules = { // jshint ignore:line
var TraversalRules = { // jshint ignore:line
Simple: new BaseTraversalRule(gSimpleTraversalRoles, gSimpleMatchFunc),
SimpleOnScreen: new BaseTraversalRule(
......@@ -361,7 +361,7 @@ this.TraversalRules = { // jshint ignore:line
}
};
this.TraversalHelper = {
var TraversalHelper = {
_helperPivotCache: null,
get helperPivotCache() {
......
......@@ -22,9 +22,9 @@ ChromeUtils.defineModuleGetter(this, "States", // jshint ignore:line
ChromeUtils.defineModuleGetter(this, "PluralForm", // jshint ignore:line
"resource://gre/modules/PluralForm.jsm");
this.EXPORTED_SYMBOLS = ["Utils", "Logger", "PivotContext", "PrefCache"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["Utils", "Logger", "PivotContext", "PrefCache"]; // jshint ignore:line
this.Utils = { // jshint ignore:line
var Utils = { // jshint ignore:line
_buildAppMap: {
"{3c2e2abc-06d4-11e1-ac3b-374f68613e61}": "b2g",
"{d1bfe7d9-c01e-4237-998b-7b5f960a4314}": "graphene",
......@@ -543,7 +543,7 @@ State.prototype = {
}
};
this.Logger = { // jshint ignore:line
var Logger = { // jshint ignore:line
GESTURE: -1,
DEBUG: 0,
INFO: 1,
......@@ -701,7 +701,7 @@ this.Logger = { // jshint ignore:line
* label. In this case the |accessible| field would be the embedded control,
* and the |accessibleForBounds| field would be the label.
*/
this.PivotContext = function PivotContext(aAccessible, aOldAccessible, // jshint ignore:line
function PivotContext(aAccessible, aOldAccessible, // jshint ignore:line
aStartOffset, aEndOffset, aIgnoreAncestry = false,
aIncludeInvisible = false) {
this._accessible = aAccessible;
......@@ -712,7 +712,7 @@ this.PivotContext = function PivotContext(aAccessible, aOldAccessible, // jshint
this.endOffset = aEndOffset;
this._ignoreAncestry = aIgnoreAncestry;
this._includeInvisible = aIncludeInvisible;
};
}
PivotContext.prototype = {
get accessible() {
......@@ -1013,7 +1013,7 @@ PivotContext.prototype = {
}
};
this.PrefCache = function PrefCache(aName, aCallback, aRunCallbackNow) { // jshint ignore:line
function PrefCache(aName, aCallback, aRunCallbackNow) { // jshint ignore:line
this.name = aName;
this.callback = aCallback;
......@@ -1029,7 +1029,7 @@ this.PrefCache = function PrefCache(aName, aCallback, aRunCallbackNow) { // jshi
}
branch.addObserver(aName, this, true);
};
}
PrefCache.prototype = {
_getValue: function _getValue(aBranch) {
......
......@@ -2,13 +2,13 @@
* 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/. */
this.EXPORTED_SYMBOLS = [
var EXPORTED_SYMBOLS = [
"Panel",
];
ChromeUtils.import("resource://gre/modules/Timer.jsm");
this.Panel = function(panelElt, iframeURL) {
var Panel = function(panelElt, iframeURL) {
this.p = panelElt;
this.iframeURL = iframeURL;
this._initPanel();
......
......@@ -4,7 +4,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["CustomizableUI"];
var EXPORTED_SYMBOLS = ["CustomizableUI"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......@@ -2943,7 +2943,7 @@ var CustomizableUIInternal = {
};
Object.freeze(CustomizableUIInternal);
this.CustomizableUI = {
var CustomizableUI = {
/**
* Constant reference to the ID of the navigation toolbar.
*/
......
......@@ -4,7 +4,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["CustomizableWidgets"];
var EXPORTED_SYMBOLS = ["CustomizableWidgets"];
ChromeUtils.import("resource:///modules/CustomizableUI.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
......
......@@ -4,7 +4,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["CustomizeMode"];
var EXPORTED_SYMBOLS = ["CustomizeMode"];
const kPrefCustomizationDebug = "browser.uiCustomization.debug";
const kPaletteId = "customization-palette";
......
......@@ -11,7 +11,7 @@ var gManagers = new WeakMap();
const kPaletteId = "customization-palette";
this.EXPORTED_SYMBOLS = ["DragPositionManager"];
var EXPORTED_SYMBOLS = ["DragPositionManager"];
function AreaPositionManager(aContainer) {
// Caching the direction and bounds of the container for quick access later:
......
......@@ -87,7 +87,7 @@
"use strict";
this.EXPORTED_SYMBOLS = [
var EXPORTED_SYMBOLS = [
"PanelMultiView",
"PanelView",
];
......@@ -123,7 +123,7 @@ let gMultiLineElementsMap = new WeakMap();
* Classes deriving from this one may be easily converted to Custom Elements,
* although they would lose the ability of being associated lazily.
*/
this.AssociatedToNode = class {
var AssociatedToNode = class {
constructor(node) {
/**
* Node associated to this object.
......@@ -249,7 +249,7 @@ this.AssociatedToNode = class {
/**
* This is associated to <panelmultiview> elements by the panelUI.xml binding.
*/
this.PanelMultiView = class extends this.AssociatedToNode {
var PanelMultiView = class extends this.AssociatedToNode {
/**
* Tries to open the specified <panel> and displays the main view specified
* with the "mainViewId" attribute on the <panelmultiview> node it contains.
......@@ -1116,7 +1116,7 @@ this.PanelMultiView = class extends this.AssociatedToNode {
/**
* This is associated to <panelview> elements.
*/
this.PanelView = class extends this.AssociatedToNode {
var PanelView = class extends this.AssociatedToNode {
/**
* The "mainview" attribute is set before the panel is opened when this view
* is displayed as the main view, and is removed before the <panelview> is
......
......@@ -4,14 +4,14 @@
"use strict";
this.EXPORTED_SYMBOLS = ["ScrollbarSampler"];
var EXPORTED_SYMBOLS = ["ScrollbarSampler"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
var gSystemScrollbarWidth = null;
this.ScrollbarSampler = {
var ScrollbarSampler = {
getSystemScrollbarWidth() {
if (gSystemScrollbarWidth !== null) {
return Promise.resolve(gSystemScrollbarWidth);
......
......@@ -8,7 +8,7 @@
"use strict";
this.EXPORTED_SYMBOLS = ["SearchWidgetTracker"];
var EXPORTED_SYMBOLS = ["SearchWidgetTracker"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
......
......@@ -2,7 +2,7 @@
* 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/. */
this.EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
var EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
const DISTRIBUTION_CUSTOMIZATION_COMPLETE_TOPIC =
"distribution-customization-complete";
......@@ -18,8 +18,8 @@ ChromeUtils.defineModuleGetter(this, "Preferences",
ChromeUtils.defineModuleGetter(this, "PlacesUtils",
"resource://gre/modules/PlacesUtils.jsm");
this.DistributionCustomizer = function DistributionCustomizer() {
};
function DistributionCustomizer() {
}
DistributionCustomizer.prototype = {
get _iniFile() {
......
......@@ -6,7 +6,7 @@
"use strict";
this.EXPORTED_SYMBOLS = [
var EXPORTED_SYMBOLS = [
"DownloadsCommon",
];
......@@ -120,7 +120,7 @@ PrefObserver.register({
* This object is exposed directly to the consumers of this JavaScript module,
* and provides shared methods for all the instances of the user interface.
*/
this.DownloadsCommon = {
var DownloadsCommon = {
// The following legacy constants are still returned by stateOfDownload, but
// individual properties of the Download object should normally be used.
DOWNLOAD_NOTSTARTED: -1,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment