зеркало из https://github.com/mozilla/gecko-dev.git
Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE
This commit is contained in:
Родитель
2d587fe010
Коммит
4144129728
|
@ -9,7 +9,7 @@ const Ci = Components.interfaces;
|
|||
const Cu = Components.utils;
|
||||
const Cr = Components.results;
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['AccessFu'];
|
||||
var EXPORTED_SYMBOLS = ['AccessFu'];
|
||||
|
||||
Cu.import('resource://gre/modules/Services.jsm');
|
||||
Cu.import('resource://gre/modules/Geometry.jsm');
|
||||
|
@ -21,7 +21,7 @@ const ACCESSFU_DISABLE = 0;
|
|||
const ACCESSFU_ENABLE = 1;
|
||||
const ACCESSFU_AUTO = 2;
|
||||
|
||||
this.AccessFu = {
|
||||
var AccessFu = {
|
||||
/**
|
||||
* Initialize chrome-layer accessibility functionality.
|
||||
* If accessibility is enabled on the platform, then a special accessibility
|
||||
|
|
|
@ -13,9 +13,9 @@ Cu.import('resource://gre/modules/accessibility/TraversalRules.jsm');
|
|||
Cu.import('resource://gre/modules/Services.jsm');
|
||||
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['EventManager'];
|
||||
var EXPORTED_SYMBOLS = ['EventManager'];
|
||||
|
||||
this.EventManager = {
|
||||
var EventManager = {
|
||||
editState: {},
|
||||
|
||||
start: function start(aSendMsgFunc) {
|
||||
|
|
|
@ -13,11 +13,11 @@ Cu.import('resource://gre/modules/accessibility/Utils.jsm');
|
|||
Cu.import('resource://gre/modules/accessibility/UtteranceGenerator.jsm');
|
||||
Cu.import('resource://gre/modules/Geometry.jsm');
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['VisualPresenter',
|
||||
'AndroidPresenter',
|
||||
'DummyAndroidPresenter',
|
||||
'SpeechPresenter',
|
||||
'PresenterContext'];
|
||||
var EXPORTED_SYMBOLS = ['VisualPresenter',
|
||||
'AndroidPresenter',
|
||||
'DummyAndroidPresenter',
|
||||
'SpeechPresenter',
|
||||
'PresenterContext'];
|
||||
|
||||
/**
|
||||
* The interface for all presenter classes. A presenter could be, for example,
|
||||
|
@ -111,7 +111,7 @@ Presenter.prototype = {
|
|||
* Visual presenter. Draws a box around the virtual cursor's position.
|
||||
*/
|
||||
|
||||
this.VisualPresenter = function VisualPresenter() {}
|
||||
function VisualPresenter() {}
|
||||
|
||||
VisualPresenter.prototype = {
|
||||
__proto__: Presenter.prototype,
|
||||
|
@ -179,7 +179,7 @@ VisualPresenter.prototype = {
|
|||
* Android presenter. Fires Android a11y events.
|
||||
*/
|
||||
|
||||
this.AndroidPresenter = function AndroidPresenter() {}
|
||||
function AndroidPresenter() {}
|
||||
|
||||
AndroidPresenter.prototype = {
|
||||
__proto__: Presenter.prototype,
|
||||
|
@ -332,7 +332,7 @@ AndroidPresenter.prototype = {
|
|||
* A speech presenter for direct TTS output
|
||||
*/
|
||||
|
||||
this.SpeechPresenter = function SpeechPresenter() {}
|
||||
function SpeechPresenter() {}
|
||||
|
||||
SpeechPresenter.prototype = {
|
||||
__proto__: Presenter.prototype,
|
||||
|
@ -376,7 +376,7 @@ SpeechPresenter.prototype = {
|
|||
* PresenterContext: An object that generates and caches context information
|
||||
* for a given accessible and its relationship with another accessible.
|
||||
*/
|
||||
this.PresenterContext = function PresenterContext(aAccessible, aOldAccessible) {
|
||||
function PresenterContext(aAccessible, aOldAccessible) {
|
||||
this._accessible = aAccessible;
|
||||
this._oldAccessible =
|
||||
this._isDefunct(aOldAccessible) ? null : aOldAccessible;
|
||||
|
|
|
@ -9,7 +9,7 @@ const Ci = Components.interfaces;
|
|||
const Cu = Components.utils;
|
||||
const Cr = Components.results;
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['TouchAdapter', 'AndroidTouchAdapter'];
|
||||
var EXPORTED_SYMBOLS = ['TouchAdapter', 'AndroidTouchAdapter'];
|
||||
|
||||
Cu.import('resource://gre/modules/accessibility/Utils.jsm');
|
||||
|
||||
|
@ -17,7 +17,7 @@ Cu.import('resource://gre/modules/accessibility/Utils.jsm');
|
|||
// It is granular enough to feel natural, and it does not hammer the CPU.
|
||||
const EXPLORE_THROTTLE = 100;
|
||||
|
||||
this.TouchAdapter = {
|
||||
var TouchAdapter = {
|
||||
// minimal swipe distance in inches
|
||||
SWIPE_MIN_DISTANCE: 0.4,
|
||||
|
||||
|
@ -366,7 +366,7 @@ var Mouse2Touch = {
|
|||
}
|
||||
};
|
||||
|
||||
this.AndroidTouchAdapter = {
|
||||
var AndroidTouchAdapter = {
|
||||
attach: function AndroidTouchAdapter_attach(aWindow) {
|
||||
if (this.chromeWin)
|
||||
return;
|
||||
|
|
|
@ -9,7 +9,7 @@ const Ci = Components.interfaces;
|
|||
const Cu = Components.utils;
|
||||
const Cr = Components.results;
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['TraversalRules'];
|
||||
var EXPORTED_SYMBOLS = ['TraversalRules'];
|
||||
|
||||
Cu.import('resource://gre/modules/accessibility/Utils.jsm');
|
||||
Cu.import('resource://gre/modules/XPCOMUtils.jsm');
|
||||
|
@ -70,7 +70,7 @@ var gSimpleTraversalRoles =
|
|||
// Used for traversing in to child OOP frames.
|
||||
Ci.nsIAccessibleRole.ROLE_INTERNAL_FRAME];
|
||||
|
||||
this.TraversalRules = {
|
||||
var TraversalRules = {
|
||||
Simple: new BaseTraversalRule(
|
||||
gSimpleTraversalRoles,
|
||||
function Simple_match(aAccessible) {
|
||||
|
|
|
@ -10,9 +10,9 @@ const Ci = Components.interfaces;
|
|||
|
||||
Cu.import('resource://gre/modules/Services.jsm');
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['Utils', 'Logger'];
|
||||
var EXPORTED_SYMBOLS = ['Utils', 'Logger'];
|
||||
|
||||
this.Utils = {
|
||||
var Utils = {
|
||||
_buildAppMap: {
|
||||
'{3c2e2abc-06d4-11e1-ac3b-374f68613e61}': 'b2g',
|
||||
'{ec8030f7-c20a-464f-9b0e-13a3a9e97384}': 'browser',
|
||||
|
@ -156,7 +156,7 @@ this.Utils = {
|
|||
}
|
||||
};
|
||||
|
||||
this.Logger = {
|
||||
var Logger = {
|
||||
DEBUG: 0,
|
||||
INFO: 1,
|
||||
WARNING: 2,
|
||||
|
|
|
@ -18,7 +18,7 @@ var gStringBundle = Cc['@mozilla.org/intl/stringbundle;1'].
|
|||
createBundle('chrome://global/locale/AccessFu.properties');
|
||||
|
||||
|
||||
this.EXPORTED_SYMBOLS = ['UtteranceGenerator'];
|
||||
var EXPORTED_SYMBOLS = ['UtteranceGenerator'];
|
||||
|
||||
Cu.import('resource://gre/modules/accessibility/Utils.jsm');
|
||||
|
||||
|
@ -38,7 +38,7 @@ Cu.import('resource://gre/modules/accessibility/Utils.jsm');
|
|||
* clicked event. Speaking only 'clicked' makes sense. Speaking 'button' does
|
||||
* not.
|
||||
*/
|
||||
this.UtteranceGenerator = {
|
||||
var UtteranceGenerator = {
|
||||
gActionMap: {
|
||||
jump: 'jumpAction',
|
||||
press: 'pressAction',
|
||||
|
|
|
@ -576,5 +576,3 @@ pref("network.activity.blipIntervalMilliseconds", 250);
|
|||
// Send some sites a custom user-agent.
|
||||
pref("general.useragent.override.facebook.com", "\(Mobile#(Android; Mobile");
|
||||
pref("general.useragent.override.youtube.com", "\(Mobile#(Android; Mobile");
|
||||
|
||||
pref("jsloader.reuseGlobal", true);
|
||||
|
|
|
@ -67,5 +67,5 @@ ActivitiesDialog.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIActivityUIGlue, Ci.nsIRunnable])
|
||||
}
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ActivitiesDialog]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([ActivitiesDialog]);
|
||||
|
||||
|
|
|
@ -24,4 +24,4 @@ AlertsService.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([AlertsService]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([AlertsService]);
|
||||
|
|
|
@ -50,4 +50,4 @@ ContentHandler.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIContentHandler])
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ContentHandler]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([ContentHandler]);
|
||||
|
|
|
@ -145,4 +145,4 @@ ContentPermissionPrompt.prototype = {
|
|||
|
||||
|
||||
//module initialization
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ContentPermissionPrompt]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([ContentPermissionPrompt]);
|
||||
|
|
|
@ -77,4 +77,4 @@ DirectoryProvider.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([DirectoryProvider]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([DirectoryProvider]);
|
||||
|
|
|
@ -43,4 +43,4 @@ MailtoProtocolHandler.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([MailtoProtocolHandler]);
|
||||
let NSGetFactory = XPCOMUtils.generateNSGetFactory([MailtoProtocolHandler]);
|
||||
|
|
|
@ -136,5 +136,5 @@ MozKeyboard.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([MozKeyboard]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([MozKeyboard]);
|
||||
|
||||
|
|
|
@ -169,4 +169,4 @@ PaymentUI.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIPaymentUIGlue])
|
||||
}
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PaymentUI]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([PaymentUI]);
|
||||
|
|
|
@ -57,4 +57,4 @@ ProcessGlobal.prototype = {
|
|||
},
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ProcessGlobal]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([ProcessGlobal]);
|
||||
|
|
|
@ -90,4 +90,4 @@ RecoveryService.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([RecoveryService]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([RecoveryService]);
|
||||
|
|
|
@ -56,4 +56,4 @@ SmsProtocolHandler.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SmsProtocolHandler]);
|
||||
let NSGetFactory = XPCOMUtils.generateNSGetFactory([SmsProtocolHandler]);
|
||||
|
|
|
@ -55,4 +55,4 @@ TelProtocolHandler.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([TelProtocolHandler]);
|
||||
let NSGetFactory = XPCOMUtils.generateNSGetFactory([TelProtocolHandler]);
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["TelURIParser"];
|
||||
let EXPORTED_SYMBOLS = ["TelURIParser"];
|
||||
|
||||
/**
|
||||
* Singleton providing functionality for parsing tel: and sms: URIs
|
||||
*/
|
||||
this.TelURIParser = {
|
||||
let TelURIParser = {
|
||||
parseURI: function(scheme, uri) {
|
||||
// Ignore MWI and USSD codes. See 794034.
|
||||
if (uri.indexOf('*') != -1 || uri.indexOf('#') != -1) {
|
||||
|
|
|
@ -411,4 +411,4 @@ UpdatePrompt.prototype = {
|
|||
onStatus: function UP_onStatus(aRequest, aUpdate, aStatus, aStatusArg) { }
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([UpdatePrompt]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([UpdatePrompt]);
|
||||
|
|
|
@ -129,4 +129,4 @@ YoutubeProtocolHandler.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([YoutubeProtocolHandler]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([YoutubeProtocolHandler]);
|
||||
|
|
|
@ -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" ];
|
||||
EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
|
||||
|
||||
const Ci = Components.interfaces;
|
||||
const Cc = Components.classes;
|
||||
|
@ -16,7 +16,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "PlacesUtils",
|
||||
"resource://gre/modules/PlacesUtils.jsm");
|
||||
|
||||
this.DistributionCustomizer = function DistributionCustomizer() {
|
||||
function DistributionCustomizer() {
|
||||
let dirSvc = Cc["@mozilla.org/file/directory_service;1"].
|
||||
getService(Ci.nsIProperties);
|
||||
let iniFile = dirSvc.get("XCurProcD", Ci.nsIFile);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = [
|
||||
var EXPORTED_SYMBOLS = [
|
||||
"DownloadsCommon",
|
||||
];
|
||||
|
||||
|
@ -87,7 +87,7 @@ XPCOMUtils.defineLazyGetter(this, "DownloadsLocalFileCtor", function () {
|
|||
* 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 = {
|
||||
const DownloadsCommon = {
|
||||
/**
|
||||
* Returns an object whose keys are the string names from the downloads string
|
||||
* bundle, and whose values are either the translated strings or functions
|
||||
|
|
|
@ -273,4 +273,4 @@ DownloadsStartup.prototype = {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Module
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([DownloadsStartup]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([DownloadsStartup]);
|
||||
|
|
|
@ -104,4 +104,4 @@ DownloadsUI.prototype = {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Module
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([DownloadsUI]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([DownloadsUI]);
|
||||
|
|
|
@ -579,4 +579,4 @@ var components = [FeedConverter,
|
|||
PodCastProtocolHandler];
|
||||
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
|
|
|
@ -1378,4 +1378,4 @@ FeedWriter.prototype = {
|
|||
Ci.nsINavHistoryObserver])
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([FeedWriter]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([FeedWriter]);
|
||||
|
|
|
@ -899,4 +899,4 @@ WebContentConverterRegistrar.prototype = {
|
|||
}]
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([WebContentConverterRegistrar]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([WebContentConverterRegistrar]);
|
||||
|
|
|
@ -340,4 +340,4 @@ ChromeProfileMigrator.prototype.classDescription = "Chrome Profile Migrator";
|
|||
ChromeProfileMigrator.prototype.contractID = "@mozilla.org/profile/migrator;1?app=browser&type=chrome";
|
||||
ChromeProfileMigrator.prototype.classID = Components.ID("{4cec1de4-1671-4fc3-a53e-6c539dc77a26}");
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ChromeProfileMigrator]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([ChromeProfileMigrator]);
|
||||
|
|
|
@ -91,4 +91,4 @@ FirefoxProfileMigrator.prototype.classDescription = "Firefox Profile Migrator";
|
|||
FirefoxProfileMigrator.prototype.contractID = "@mozilla.org/profile/migrator;1?app=browser&type=firefox";
|
||||
FirefoxProfileMigrator.prototype.classID = Components.ID("{91185366-ba97-4438-acba-48deaca63386}");
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([FirefoxProfileMigrator]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([FirefoxProfileMigrator]);
|
||||
|
|
|
@ -675,4 +675,4 @@ IEProfileMigrator.prototype.classDescription = "IE Profile Migrator";
|
|||
IEProfileMigrator.prototype.contractID = "@mozilla.org/profile/migrator;1?app=browser&type=ie";
|
||||
IEProfileMigrator.prototype.classID = Components.ID("{3d2532e3-4932-4774-b7ba-968f5899d3a4}");
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([IEProfileMigrator]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([IEProfileMigrator]);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["MigrationUtils", "MigratorPrototype"];
|
||||
let EXPORTED_SYMBOLS = ["MigrationUtils", "MigratorPrototype"];
|
||||
|
||||
const Cu = Components.utils;
|
||||
const Ci = Components.interfaces;
|
||||
|
@ -86,7 +86,7 @@ function getMigratorKeyForDefaultBrowser() {
|
|||
* override |sourceHomePageURL| getter.
|
||||
* 7. For startup-only migrators, override |startupOnlyMigrator|.
|
||||
*/
|
||||
this.MigratorPrototype = {
|
||||
let MigratorPrototype = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIBrowserProfileMigrator]),
|
||||
|
||||
/**
|
||||
|
@ -323,7 +323,7 @@ this.MigratorPrototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.MigrationUtils = Object.freeze({
|
||||
let MigrationUtils = Object.freeze({
|
||||
resourceTypes: {
|
||||
SETTINGS: Ci.nsIBrowserProfileMigrator.SETTINGS,
|
||||
COOKIES: Ci.nsIBrowserProfileMigrator.COOKIES,
|
||||
|
|
|
@ -18,4 +18,4 @@ ProfileMigrator.prototype = {
|
|||
classID: Components.ID("6F8BB968-C14F-4D6F-9733-6C6737B35DCE")
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ProfileMigrator]);
|
||||
let NSGetFactory = XPCOMUtils.generateNSGetFactory([ProfileMigrator]);
|
||||
|
|
|
@ -677,4 +677,4 @@ SafariProfileMigrator.prototype.classDescription = "Safari Profile Migrator";
|
|||
SafariProfileMigrator.prototype.contractID = "@mozilla.org/profile/migrator;1?app=browser&type=safari";
|
||||
SafariProfileMigrator.prototype.classID = Components.ID("{4b609ecf-60b2-4655-9df4-dc149e474da1}");
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SafariProfileMigrator]);
|
||||
const NSGetFactory = XPCOMUtils.generateNSGetFactory([SafariProfileMigrator]);
|
||||
|
|
|
@ -825,4 +825,4 @@ nsDefaultCommandLineHandler.prototype = {
|
|||
};
|
||||
|
||||
var components = [nsBrowserContentHandler, nsDefaultCommandLineHandler];
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
|
|
|
@ -1751,4 +1751,4 @@ ContentPermissionPrompt.prototype = {
|
|||
};
|
||||
|
||||
var components = [BrowserGlue, ContentPermissionPrompt];
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory(components);
|
||||
|
|
|
@ -46,4 +46,4 @@ PlacesProtocolHandler.prototype = {
|
|||
classID: Components.ID("{6bcb9bde-9018-4443-a071-c32653469597}")
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PlacesProtocolHandler]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([PlacesProtocolHandler]);
|
||||
|
|
|
@ -3,7 +3,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 = ["PlacesUIUtils"];
|
||||
var EXPORTED_SYMBOLS = ["PlacesUIUtils"];
|
||||
|
||||
var Ci = Components.interfaces;
|
||||
var Cc = Components.classes;
|
||||
|
@ -21,7 +21,7 @@ XPCOMUtils.defineLazyGetter(this, "PlacesUtils", function() {
|
|||
return PlacesUtils;
|
||||
});
|
||||
|
||||
this.PlacesUIUtils = {
|
||||
var PlacesUIUtils = {
|
||||
ORGANIZER_LEFTPANE_VERSION: 7,
|
||||
ORGANIZER_FOLDER_ANNO: "PlacesOrganizer/OrganizerFolder",
|
||||
ORGANIZER_QUERY_ANNO: "PlacesOrganizer/OrganizerQuery",
|
||||
|
|
|
@ -591,4 +591,4 @@ PrivateBrowsingService.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PrivateBrowsingService]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([PrivateBrowsingService]);
|
||||
|
|
|
@ -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 = [ "DocumentUtils" ];
|
||||
EXPORTED_SYMBOLS = [ "DocumentUtils" ];
|
||||
|
||||
const Cu = Components.utils;
|
||||
const Ci = Components.interfaces;
|
||||
|
@ -10,7 +10,7 @@ const Ci = Components.interfaces;
|
|||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource:///modules/sessionstore/XPathGenerator.jsm");
|
||||
|
||||
this.DocumentUtils = {
|
||||
let DocumentUtils = {
|
||||
/**
|
||||
* Obtain form data for a DOMDocument instance.
|
||||
*
|
||||
|
|
|
@ -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 = ["SessionStorage"];
|
||||
let EXPORTED_SYMBOLS = ["SessionStorage"];
|
||||
|
||||
const Cu = Components.utils;
|
||||
|
||||
|
@ -12,7 +12,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
XPCOMUtils.defineLazyModuleGetter(this, "SessionStore",
|
||||
"resource:///modules/sessionstore/SessionStore.jsm");
|
||||
|
||||
this.SessionStorage = {
|
||||
let SessionStorage = {
|
||||
/**
|
||||
* Updates all sessionStorage "super cookies"
|
||||
* @param aDocShell
|
||||
|
|
|
@ -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 = ["SessionStore"];
|
||||
let EXPORTED_SYMBOLS = ["SessionStore"];
|
||||
|
||||
const Cu = Components.utils;
|
||||
const Cc = Components.classes;
|
||||
|
@ -99,7 +99,7 @@ function debug(aMsg) {
|
|||
Services.console.logStringMessage(aMsg);
|
||||
}
|
||||
|
||||
this.SessionStore = {
|
||||
let SessionStore = {
|
||||
get canRestoreLastSession() {
|
||||
return SessionStoreInternal.canRestoreLastSession;
|
||||
},
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* 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 = ["XPathGenerator"];
|
||||
let EXPORTED_SYMBOLS = ["XPathGenerator"];
|
||||
|
||||
this.XPathGenerator = {
|
||||
let XPathGenerator = {
|
||||
// these two hashes should be kept in sync
|
||||
namespaceURIs: { "xhtml": "http://www.w3.org/1999/xhtml" },
|
||||
namespacePrefixes: { "http://www.w3.org/1999/xhtml": "xhtml" },
|
||||
|
|
|
@ -319,4 +319,4 @@ SessionStartup.prototype = {
|
|||
classID: Components.ID("{ec7a6c20-e081-11da-8ad9-0800200c9a66}"),
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SessionStartup]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([SessionStartup]);
|
||||
|
|
|
@ -34,4 +34,4 @@ SessionStoreService.prototype.classID =
|
|||
SessionStoreService.prototype.QueryInterface =
|
||||
XPCOMUtils.generateQI([Ci.nsISessionStore]);
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([SessionStoreService]);
|
||||
let NSGetFactory = XPCOMUtils.generateNSGetFactory([SessionStoreService]);
|
||||
|
|
|
@ -28,4 +28,4 @@ nsSetDefaultBrowser.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([nsSetDefaultBrowser]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([nsSetDefaultBrowser]);
|
||||
|
|
|
@ -183,7 +183,7 @@ nsSidebar.prototype.classInfo = XPCOMUtils.generateCI({classID: SIDEBAR_CID,
|
|||
|
||||
nsSidebar.prototype.QueryInterface = XPCOMUtils.generateQI([nsISidebar, nsISidebarExternal]);
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([nsSidebar]);
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([nsSidebar]);
|
||||
|
||||
/* static functions */
|
||||
if (DEBUG)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// **********
|
||||
// Title: utils.js
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["Point", "Rect", "Range", "Subscribable", "Utils", "MRUList"];
|
||||
let EXPORTED_SYMBOLS = ["Point", "Rect", "Range", "Subscribable", "Utils", "MRUList"];
|
||||
|
||||
// #########
|
||||
const Ci = Components.interfaces;
|
||||
|
@ -23,7 +23,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
// If a is a Point, creates a copy of it. Otherwise, expects a to be x,
|
||||
// and creates a Point with it along with y. If either a or y are omitted,
|
||||
// 0 is used in their place.
|
||||
this.Point = function Point(a, y) {
|
||||
function Point(a, y) {
|
||||
if (Utils.isPoint(a)) {
|
||||
this.x = a.x;
|
||||
this.y = a.y;
|
||||
|
@ -60,7 +60,7 @@ Point.prototype = {
|
|||
// Constructor: Rect
|
||||
// If a is a Rect, creates a copy of it. Otherwise, expects a to be left,
|
||||
// and creates a Rect with it along with top, width, and height.
|
||||
this.Rect = function Rect(a, top, width, height) {
|
||||
function Rect(a, top, width, height) {
|
||||
// Note: perhaps 'a' should really be called 'rectOrLeft'
|
||||
if (Utils.isRect(a)) {
|
||||
this.left = a.left;
|
||||
|
@ -251,7 +251,7 @@ Rect.prototype = {
|
|||
//
|
||||
// Constructor: Range
|
||||
// Creates a Range with the given min and max
|
||||
this.Range = function Range(min, max) {
|
||||
function Range(min, max) {
|
||||
if (Utils.isRange(min) && !max) { // if the one variable given is a range, copy it.
|
||||
this.min = min.min;
|
||||
this.max = min.max;
|
||||
|
@ -357,7 +357,7 @@ Range.prototype = {
|
|||
// ##########
|
||||
// Class: Subscribable
|
||||
// A mix-in for allowing objects to collect subscribers for custom events.
|
||||
this.Subscribable = function Subscribable() {
|
||||
function Subscribable() {
|
||||
this.subscribers = null;
|
||||
};
|
||||
|
||||
|
@ -438,7 +438,7 @@ Subscribable.prototype = {
|
|||
// ##########
|
||||
// Class: Utils
|
||||
// Singelton with common utility functions.
|
||||
this.Utils = {
|
||||
let Utils = {
|
||||
// ----------
|
||||
// Function: toString
|
||||
// Prints [Utils] for debug use
|
||||
|
@ -768,7 +768,7 @@ this.Utils = {
|
|||
//
|
||||
// Constructor: MRUList
|
||||
// If a is an array of entries, creates a copy of it.
|
||||
this.MRUList = function MRUList(a) {
|
||||
function MRUList(a) {
|
||||
if (Array.isArray(a))
|
||||
this._list = a.concat();
|
||||
else
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["PageThumbs", "PageThumbsStorage"];
|
||||
let EXPORTED_SYMBOLS = ["PageThumbs", "PageThumbsStorage"];
|
||||
|
||||
const Cu = Components.utils;
|
||||
const Cc = Components.classes;
|
||||
|
@ -59,7 +59,7 @@ XPCOMUtils.defineLazyGetter(this, "gUnicodeConverter", function () {
|
|||
* Singleton providing functionality for capturing web page thumbnails and for
|
||||
* accessing them if already cached.
|
||||
*/
|
||||
this.PageThumbs = {
|
||||
let PageThumbs = {
|
||||
_initialized: false,
|
||||
|
||||
/**
|
||||
|
@ -278,7 +278,7 @@ this.PageThumbs = {
|
|||
},
|
||||
};
|
||||
|
||||
this.PageThumbsStorage = {
|
||||
let PageThumbsStorage = {
|
||||
getDirectory: function Storage_getDirectory(aCreate = true) {
|
||||
return FileUtils.getDir("ProfLD", [THUMBNAIL_DIRECTORY], aCreate);
|
||||
},
|
||||
|
|
|
@ -88,7 +88,7 @@ Protocol.prototype = {
|
|||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler])
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([Protocol]);
|
||||
let NSGetFactory = XPCOMUtils.generateNSGetFactory([Protocol]);
|
||||
|
||||
/**
|
||||
* Parses a given URI and extracts all parameters relevant to this protocol.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ "Flags" ];
|
||||
let EXPORTED_SYMBOLS = [ "Flags" ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
@ -15,7 +15,7 @@ XPCOMUtils.defineLazyModuleGetter(this, "AddonManager",
|
|||
|
||||
// We need to use an object in which to store any flags because a primitive
|
||||
// would remain undefined.
|
||||
this.Flags = {
|
||||
let Flags = {
|
||||
addonsLoaded: false
|
||||
};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
|
|
|
@ -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 = [ "CmdCommands" ];
|
||||
let EXPORTED_SYMBOLS = [ "CmdCommands" ];
|
||||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
|
@ -32,7 +32,7 @@ let commands = [];
|
|||
/**
|
||||
* Exported API
|
||||
*/
|
||||
this.CmdCommands = {
|
||||
let CmdCommands = {
|
||||
/**
|
||||
* Called to look in a directory pointed at by the devtools.commands.dir pref
|
||||
* for *.mozcmd files which are then loaded.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
|||
const XMLHttpRequest =
|
||||
Components.Constructor("@mozilla.org/xmlextras/xmlhttprequest;1");
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
const Cu = Components.utils;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* For more information, ask Joe Walker <jwalker@mozilla.com>
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ "gcli" ];
|
||||
var EXPORTED_SYMBOLS = [ "gcli" ];
|
||||
|
||||
Components.utils.import("resource://gre/modules/devtools/Require.jsm");
|
||||
Components.utils.import("resource://gre/modules/devtools/Console.jsm");
|
||||
|
@ -10479,4 +10479,4 @@ define("text!gcli/ui/tooltip.html", [], "\n" +
|
|||
|
||||
|
||||
// Satisfy EXPORTED_SYMBOLS
|
||||
this.gcli = require('gcli/index');
|
||||
const gcli = require('gcli/index');
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* of GCLI and can be run as a test case.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
var EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
|
||||
var test = { };
|
||||
|
||||
|
@ -503,7 +503,7 @@ DeveloperToolbarTest.closeAllTabs = function() {
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
this.helpers = {};
|
||||
var helpers = {};
|
||||
|
||||
var assert = { ok: ok, is: is, log: info };
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ XPCOMUtils.defineLazyModuleGetter(this,
|
|||
XPCOMUtils.defineLazyModuleGetter(this,
|
||||
"FileUtils", "resource:///modules/FileUtils.jsm");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["DebuggerUI"];
|
||||
let EXPORTED_SYMBOLS = ["DebuggerUI"];
|
||||
|
||||
/**
|
||||
* Provides a simple mechanism of managing debugger instances.
|
||||
|
@ -33,10 +33,10 @@ this.EXPORTED_SYMBOLS = ["DebuggerUI"];
|
|||
* @param nsIDOMWindow aWindow
|
||||
* The chrome window for which the DebuggerUI instance is created.
|
||||
*/
|
||||
this.DebuggerUI = function DebuggerUI(aWindow) {
|
||||
function DebuggerUI(aWindow) {
|
||||
this.chromeWindow = aWindow;
|
||||
this.listenToTabs();
|
||||
};
|
||||
}
|
||||
|
||||
DebuggerUI.prototype = {
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
Cu.import("resource:///modules/devtools/LayoutHelpers.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["Highlighter"];
|
||||
var EXPORTED_SYMBOLS = ["Highlighter"];
|
||||
|
||||
const INSPECTOR_INVISIBLE_ELEMENTS = {
|
||||
"head": true,
|
||||
|
@ -113,7 +113,7 @@ const PSEUDO_CLASSES = [":hover", ":active", ":focus"];
|
|||
*
|
||||
* @param object aWindow
|
||||
*/
|
||||
this.Highlighter = function Highlighter(aWindow)
|
||||
function Highlighter(aWindow)
|
||||
{
|
||||
this.chromeWin = aWindow;
|
||||
this.tabbrowser = aWindow.gBrowser;
|
||||
|
|
|
@ -9,7 +9,7 @@ const Cu = Components.utils;
|
|||
const Ci = Components.interfaces;
|
||||
const Cr = Components.results;
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["InspectorUI"];
|
||||
var EXPORTED_SYMBOLS = ["InspectorUI"];
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
@ -411,7 +411,7 @@ Inspector.prototype = {
|
|||
* @param nsIDOMWindow aWindow
|
||||
* The chrome window for which the Inspector instance is created.
|
||||
*/
|
||||
this.InspectorUI = function InspectorUI(aWindow)
|
||||
function InspectorUI(aWindow)
|
||||
{
|
||||
// Let style inspector tools register themselves.
|
||||
let tmp = {};
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* of GCLI and can be run as a test case.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
var EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
|
||||
var test = { };
|
||||
|
||||
|
@ -496,7 +496,7 @@ DeveloperToolbarTest.closeAllTabs = function() {
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
this.helpers = {};
|
||||
var helpers = {};
|
||||
|
||||
helpers._display = undefined;
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ Cu.import("resource:///modules/inspector.jsm");
|
|||
Cu.import("resource:///modules/devtools/LayoutHelpers.jsm");
|
||||
Cu.import("resource:///modules/devtools/CssLogic.jsm");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["LayoutView"];
|
||||
var EXPORTED_SYMBOLS = ["LayoutView"];
|
||||
|
||||
this.LayoutView = function LayoutView(aOptions)
|
||||
function LayoutView(aOptions)
|
||||
{
|
||||
this.chromeDoc = aOptions.document;
|
||||
this.inspector = aOptions.inspector;
|
||||
|
|
|
@ -13,7 +13,7 @@ const PAGE_SIZE = 10;
|
|||
|
||||
const PREVIEW_AREA = 700;
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["MarkupView"];
|
||||
var EXPORTED_SYMBOLS = ["MarkupView"];
|
||||
|
||||
Cu.import("resource:///modules/devtools/LayoutHelpers.jsm");
|
||||
Cu.import("resource:///modules/devtools/CssRuleView.jsm");
|
||||
|
@ -39,7 +39,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
* @param iframe aFrame
|
||||
* An iframe in which the caller has kindly loaded markup-view.xhtml.
|
||||
*/
|
||||
this.MarkupView = function MarkupView(aInspector, aFrame)
|
||||
function MarkupView(aInspector, aFrame)
|
||||
{
|
||||
this._inspector = aInspector;
|
||||
this._frame = aFrame;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
Cu.import("resource:///modules/devtools/FloatingScrollbars.jsm");
|
||||
Cu.import("resource:///modules/devtools/EventEmitter.jsm");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["ResponsiveUIManager"];
|
||||
var EXPORTED_SYMBOLS = ["ResponsiveUIManager"];
|
||||
|
||||
const MIN_WIDTH = 50;
|
||||
const MIN_HEIGHT = 50;
|
||||
|
@ -20,7 +20,7 @@ const MIN_HEIGHT = 50;
|
|||
const MAX_WIDTH = 10000;
|
||||
const MAX_HEIGHT = 10000;
|
||||
|
||||
this.ResponsiveUIManager = {
|
||||
let ResponsiveUIManager = {
|
||||
/**
|
||||
* Check if the a tab is in a responsive mode.
|
||||
* Leave the responsive mode if active,
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* of GCLI and can be run as a test case.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
var EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
|
||||
var test = { };
|
||||
|
||||
|
@ -496,7 +496,7 @@ DeveloperToolbarTest.closeAllTabs = function() {
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
this.helpers = {};
|
||||
var helpers = {};
|
||||
|
||||
helpers._display = undefined;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["ScratchpadManager"];
|
||||
var EXPORTED_SYMBOLS = ["ScratchpadManager"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
|
@ -21,7 +21,7 @@ Cu.import("resource://gre/modules/Services.jsm");
|
|||
* of open scratchpads for session restore. There's only one ScratchpadManager in
|
||||
* the life of the browser.
|
||||
*/
|
||||
this.ScratchpadManager = {
|
||||
var ScratchpadManager = {
|
||||
|
||||
_nextUid: 1,
|
||||
_scratchpads: [],
|
||||
|
|
|
@ -11,14 +11,14 @@
|
|||
* forwards to dump();
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ "Node", "HTMLElement", "setTimeout", "clearTimeout" ];
|
||||
const EXPORTED_SYMBOLS = [ "Node", "HTMLElement", "setTimeout", "clearTimeout" ];
|
||||
|
||||
/**
|
||||
* Expose Node/HTMLElement objects. This allows us to use the Node constants
|
||||
* without resorting to hardcoded numbers
|
||||
*/
|
||||
this.Node = Components.interfaces.nsIDOMNode;
|
||||
this.HTMLElement = Components.interfaces.nsIDOMHTMLElement;
|
||||
const Node = Components.interfaces.nsIDOMNode;
|
||||
const HTMLElement = Components.interfaces.nsIDOMHTMLElement;
|
||||
|
||||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
|
@ -66,7 +66,7 @@ TimerCallback.prototype.notify = function(timer) {
|
|||
* @return the ID of the timeout, which can be used later with
|
||||
* window.clearTimeout.
|
||||
*/
|
||||
this.setTimeout = function setTimeout(callback, delay) {
|
||||
const setTimeout = function setTimeout(callback, delay) {
|
||||
const timer = Components.classes["@mozilla.org/timer;1"]
|
||||
.createInstance(Components.interfaces.nsITimer);
|
||||
|
||||
|
@ -83,7 +83,7 @@ this.setTimeout = function setTimeout(callback, delay) {
|
|||
* @param timerID the ID of the timeout you wish to clear, as returned by
|
||||
* window.setTimeout().
|
||||
*/
|
||||
this.clearTimeout = function clearTimeout(timerID) {
|
||||
const clearTimeout = function clearTimeout(timerID) {
|
||||
let timer = timers[timerID];
|
||||
if (timer) {
|
||||
timer.cancel();
|
||||
|
|
|
@ -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 = ["DOMHelpers"];
|
||||
const EXPORTED_SYMBOLS = ["DOMHelpers"];
|
||||
|
||||
/**
|
||||
* DOMHelpers
|
||||
|
@ -12,7 +12,7 @@ this.EXPORTED_SYMBOLS = ["DOMHelpers"];
|
|||
* @param nsIDOMWindow aWindow
|
||||
* The content window, owning the document to traverse.
|
||||
*/
|
||||
this.DOMHelpers = function DOMHelpers(aWindow) {
|
||||
function DOMHelpers(aWindow) {
|
||||
this.window = aWindow;
|
||||
};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ "DeveloperToolbar" ];
|
||||
const EXPORTED_SYMBOLS = [ "DeveloperToolbar" ];
|
||||
|
||||
const NS_XHTML = "http://www.w3.org/1999/xhtml";
|
||||
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
|
@ -46,7 +46,7 @@ XPCOMUtils.defineLazyGetter(this, "isLinux", function () {
|
|||
* @param aChromeWindow The browser window to which this toolbar is attached
|
||||
* @param aToolbarElement See browser.xul:<toolbar id="developer-toolbar">
|
||||
*/
|
||||
this.DeveloperToolbar = function DeveloperToolbar(aChromeWindow, aToolbarElement)
|
||||
function DeveloperToolbar(aChromeWindow, aToolbarElement)
|
||||
{
|
||||
this._chromeWindow = aChromeWindow;
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
// XXXkhuey this should have a license header.
|
||||
var EXPORTED_SYMBOLS = ["EventEmitter"];
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["EventEmitter"];
|
||||
|
||||
this.EventEmitter = function EventEmitter() {
|
||||
function EventEmitter() {
|
||||
}
|
||||
|
||||
EventEmitter.prototype = {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ "switchToFloatingScrollbars", "switchToNativeScrollbars" ];
|
||||
const EXPORTED_SYMBOLS = [ "switchToFloatingScrollbars", "switchToNativeScrollbars" ];
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
|
@ -20,7 +20,7 @@ let trackedTabs = new WeakMap();
|
|||
* @param aTab the targeted tab.
|
||||
*
|
||||
*/
|
||||
this.switchToFloatingScrollbars = function switchToFloatingScrollbars(aTab) {
|
||||
function switchToFloatingScrollbars(aTab) {
|
||||
let mgr = trackedTabs.get(aTab);
|
||||
if (!mgr) {
|
||||
mgr = new ScrollbarManager(aTab);
|
||||
|
@ -34,7 +34,7 @@ this.switchToFloatingScrollbars = function switchToFloatingScrollbars(aTab) {
|
|||
* @param aTab the targeted tab.
|
||||
*
|
||||
*/
|
||||
this.switchToNativeScrollbars = function switchToNativeScrollbars(aTab) {
|
||||
function switchToNativeScrollbars(aTab) {
|
||||
let mgr = trackedTabs.get(aTab);
|
||||
if (mgr) {
|
||||
mgr.reset();
|
||||
|
|
|
@ -56,9 +56,9 @@
|
|||
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["js_beautify"];
|
||||
let EXPORTED_SYMBOLS = ["js_beautify"];
|
||||
|
||||
this.js_beautify = function js_beautify(js_source_text, options) {
|
||||
function js_beautify(js_source_text, options) {
|
||||
|
||||
var input, output, token_text, last_type, last_text, last_last_text, last_word, flags, flag_store, indent_string;
|
||||
var whitespace, wordchar, punct, parser_pos, line_starters, digits;
|
||||
|
|
|
@ -18,9 +18,9 @@ XPCOMUtils.defineLazyGetter(this, "PlatformKeys", function() {
|
|||
"chrome://global-platform/locale/platformKeys.properties");
|
||||
});
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["LayoutHelpers"];
|
||||
var EXPORTED_SYMBOLS = ["LayoutHelpers"];
|
||||
|
||||
this.LayoutHelpers = LayoutHelpers = {
|
||||
LayoutHelpers = {
|
||||
|
||||
/**
|
||||
* Compute the position and the dimensions for the visible portion
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["SplitView"];
|
||||
const EXPORTED_SYMBOLS = ["SplitView"];
|
||||
|
||||
/* this must be kept in sync with CSS (ie. splitview.css) */
|
||||
const LANDSCAPE_MEDIA_QUERY = "(min-width: 551px)";
|
||||
|
@ -26,7 +26,7 @@ const BINDING_USERDATA = "splitview-binding";
|
|||
* @param DOMElement aRoot
|
||||
* @see appendItem
|
||||
*/
|
||||
this.SplitView = function SplitView(aRoot)
|
||||
function SplitView(aRoot)
|
||||
{
|
||||
this._root = aRoot;
|
||||
this._controller = aRoot.querySelector(".splitview-controller");
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ "Templater", "template" ];
|
||||
var EXPORTED_SYMBOLS = [ "Templater", "template" ];
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
const Node = Components.interfaces.nsIDOMNode;
|
||||
|
@ -44,7 +44,7 @@ const Node = Components.interfaces.nsIDOMNode;
|
|||
* convert null/undefined to ''. By setting blankNullUndefined:true, this
|
||||
* conversion is handled by DOMTemplate
|
||||
*/
|
||||
this.template = function template(node, data, options) {
|
||||
function template(node, data, options) {
|
||||
var template = new Templater(options || {});
|
||||
template.processNode(node, data);
|
||||
return template;
|
||||
|
@ -54,7 +54,7 @@ this.template = function template(node, data, options) {
|
|||
* Construct a Templater object. Use template() in preference to this ctor.
|
||||
* @deprecated Use template(node, data, options);
|
||||
*/
|
||||
this.Templater = function Templater(options) {
|
||||
function Templater(options) {
|
||||
if (options == null) {
|
||||
options = { allowEval: true };
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
const Cu = Components.utils;
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["UndoStack"];
|
||||
var EXPORTED_SYMBOLS=["UndoStack"];
|
||||
|
||||
/**
|
||||
* A simple undo stack manager.
|
||||
|
@ -19,7 +19,7 @@ this.EXPORTED_SYMBOLS = ["UndoStack"];
|
|||
* @param integer aMaxUndo Maximum number of undo steps.
|
||||
* defaults to 50.
|
||||
*/
|
||||
this.UndoStack = function UndoStack(aMaxUndo)
|
||||
function UndoStack(aMaxUndo)
|
||||
{
|
||||
this.maxUndo = aMaxUndo || 50;
|
||||
this._stack = [];
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* of GCLI and can be run as a test case.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
var EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
|
||||
var test = { };
|
||||
|
||||
|
@ -496,7 +496,7 @@ DeveloperToolbarTest.closeAllTabs = function() {
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
this.helpers = {};
|
||||
var helpers = {};
|
||||
|
||||
helpers._display = undefined;
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ if (Services.appinfo.OS == "WINNT" ||
|
|||
});
|
||||
}
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["SourceEditor"];
|
||||
var EXPORTED_SYMBOLS = ["SourceEditor"];
|
||||
|
||||
/**
|
||||
* The SourceEditor object constructor. The SourceEditor component allows you to
|
||||
|
@ -151,7 +151,7 @@ this.EXPORTED_SYMBOLS = ["SourceEditor"];
|
|||
*
|
||||
* @constructor
|
||||
*/
|
||||
this.SourceEditor = function SourceEditor() {
|
||||
function SourceEditor() {
|
||||
// Update the SourceEditor defaults from user preferences.
|
||||
|
||||
SourceEditor.DEFAULTS.tabSize =
|
||||
|
|
|
@ -9,12 +9,12 @@ const Cu = Components.utils;
|
|||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["SourceEditorUI"];
|
||||
var EXPORTED_SYMBOLS = ["SourceEditorUI"];
|
||||
|
||||
/**
|
||||
* The Source Editor component user interface.
|
||||
*/
|
||||
this.SourceEditorUI = function SourceEditorUI(aEditor)
|
||||
function SourceEditorUI(aEditor)
|
||||
{
|
||||
this.editor = aEditor;
|
||||
this._onDirtyChanged = this._onDirtyChanged.bind(this);
|
||||
|
|
|
@ -34,8 +34,8 @@ try {
|
|||
}
|
||||
|
||||
// Export the SourceEditor.
|
||||
this.SourceEditor = obj.SourceEditor;
|
||||
this.EXPORTED_SYMBOLS = ["SourceEditor"];
|
||||
var SourceEditor = obj.SourceEditor;
|
||||
var EXPORTED_SYMBOLS = ["SourceEditor"];
|
||||
|
||||
// Add the constants used by all SourceEditors.
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ ];
|
||||
let EXPORTED_SYMBOLS = [ ];
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource:///modules/devtools/gcli.jsm");
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["StyleEditor", "StyleEditorFlags", "StyleEditorManager"];
|
||||
const EXPORTED_SYMBOLS = ["StyleEditor", "StyleEditorFlags", "StyleEditorManager"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
|
@ -65,7 +65,7 @@ const TRANSITIONS_ENABLED = Services.prefs.getBoolPref(TRANSITIONS_PREF);
|
|||
* @see inputElement
|
||||
* @see StyleEditorChrome
|
||||
*/
|
||||
this.StyleEditor = function StyleEditor(aDocument, aStyleSheet)
|
||||
function StyleEditor(aDocument, aStyleSheet)
|
||||
{
|
||||
assert(aDocument, "Argument 'aDocument' is required.");
|
||||
|
||||
|
@ -1143,7 +1143,7 @@ StyleEditor.prototype = {
|
|||
*
|
||||
* @see StyleEditor.setFlag
|
||||
*/
|
||||
this.StyleEditorFlags = {
|
||||
let StyleEditorFlags = {
|
||||
DISABLED: "disabled",
|
||||
ERROR: "error",
|
||||
IMPORTED: "imported",
|
||||
|
@ -1282,7 +1282,7 @@ function setupBracketCompletion(aSourceEditor)
|
|||
* Manage the different editors instances.
|
||||
*/
|
||||
|
||||
this.StyleEditorManager = function StyleEditorManager(aWindow) {
|
||||
function StyleEditorManager(aWindow) {
|
||||
this.chromeWindow = aWindow;
|
||||
this.listenToTabs();
|
||||
this.editors = new WeakMap();
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["StyleEditorChrome"];
|
||||
const EXPORTED_SYMBOLS = ["StyleEditorChrome"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
|
@ -32,7 +32,7 @@ const STYLE_EDITOR_TEMPLATE = "stylesheet";
|
|||
* @param DOMWindow aContentWindow
|
||||
* Content DOMWindow to attach to this chrome.
|
||||
*/
|
||||
this.StyleEditorChrome = function StyleEditorChrome(aRoot, aContentWindow)
|
||||
function StyleEditorChrome(aRoot, aContentWindow)
|
||||
{
|
||||
assert(aRoot, "Argument 'aRoot' is required to initialize StyleEditorChrome.");
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
this.EXPORTED_SYMBOLS = [
|
||||
const EXPORTED_SYMBOLS = [
|
||||
"_",
|
||||
"assert",
|
||||
"attr", // XXXkhuey unused?
|
||||
"getCurrentBrowserTabContentWindow", // XXXkhuey unused?
|
||||
"attr",
|
||||
"getCurrentBrowserTabContentWindow",
|
||||
"log",
|
||||
"text",
|
||||
"wire"
|
||||
|
@ -35,7 +35,7 @@ const gStringBundle = Services.strings.createBundle(PROPERTIES_URL);
|
|||
* Optional arguments to format in the string.
|
||||
* @return string
|
||||
*/
|
||||
this._ = function _(aName)
|
||||
function _(aName)
|
||||
{
|
||||
|
||||
if (arguments.length == 1) {
|
||||
|
@ -53,7 +53,7 @@ this._ = function _(aName)
|
|||
* Optional message.
|
||||
* @return aExpression
|
||||
*/
|
||||
this.assert = function assert(aExpression, aMessage)
|
||||
function assert(aExpression, aMessage)
|
||||
{
|
||||
if (!!!(aExpression)) {
|
||||
let msg = aMessage ? "ASSERTION FAILURE:" + aMessage : "ASSERTION FAILURE";
|
||||
|
@ -76,7 +76,7 @@ this.assert = function assert(aExpression, aMessage)
|
|||
* Text content of matching element or null if there were no element
|
||||
* matching aSelector.
|
||||
*/
|
||||
this.text = function text(aRoot, aSelector, aText)
|
||||
function text(aRoot, aSelector, aText)
|
||||
{
|
||||
let element = aRoot.querySelector(aSelector);
|
||||
if (!element) {
|
||||
|
@ -113,7 +113,7 @@ function forEach(aObject, aCallback)
|
|||
* One or multiple arguments to log.
|
||||
* If multiple arguments are given, they will be joined by " " in the log.
|
||||
*/
|
||||
this.log = function log()
|
||||
function log()
|
||||
{
|
||||
console.logStringMessage(Array.prototype.slice.call(arguments).join(" "));
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ this.log = function log()
|
|||
* If aDescriptor is a function, the argument is equivalent to :
|
||||
* {events: {'click': aDescriptor}}
|
||||
*/
|
||||
this.wire = function wire(aRoot, aSelectorOrElement, aDescriptor)
|
||||
function wire(aRoot, aSelectorOrElement, aDescriptor)
|
||||
{
|
||||
let matches;
|
||||
if (typeof(aSelectorOrElement) == "string") { // selector
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
* of GCLI and can be run as a test case.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
var EXPORTED_SYMBOLS = [ 'helpers' ];
|
||||
|
||||
var test = { };
|
||||
|
||||
|
@ -496,7 +496,7 @@ DeveloperToolbarTest.closeAllTabs = function() {
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
this.helpers = {};
|
||||
var helpers = {};
|
||||
|
||||
helpers._display = undefined;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|||
Cu.import("resource:///modules/devtools/CssLogic.jsm");
|
||||
Cu.import("resource:///modules/devtools/Templater.jsm");
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["CssHtmlTree", "PropertyView"];
|
||||
var EXPORTED_SYMBOLS = ["CssHtmlTree", "PropertyView"];
|
||||
|
||||
/**
|
||||
* Helper for long-running processes that should yield occasionally to
|
||||
|
@ -116,7 +116,7 @@ UpdateProcess.prototype = {
|
|||
* @params {StyleInspector} aStyleInspector The owner of this CssHtmlTree
|
||||
* @constructor
|
||||
*/
|
||||
this.CssHtmlTree = function CssHtmlTree(aStyleInspector)
|
||||
function CssHtmlTree(aStyleInspector)
|
||||
{
|
||||
this.styleWin = aStyleInspector.iframe;
|
||||
this.styleInspector = aStyleInspector;
|
||||
|
@ -719,7 +719,7 @@ CssHtmlTree.prototype = {
|
|||
* @param {string} aName the CSS property name for which this PropertyView
|
||||
* instance will render the rules.
|
||||
*/
|
||||
this.PropertyView = function PropertyView(aTree, aName)
|
||||
function PropertyView(aTree, aName)
|
||||
{
|
||||
this.tree = aTree;
|
||||
this.name = aName;
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче