OLD | NEW |
1 #filter substitution | 1 #filter substitution |
2 // -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; js2-basic-offset: 2; js2-
skip-preprocessor-directives: t; -*- | 2 // -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; js2-basic-offset: 2; js2-
skip-preprocessor-directives: t; -*- |
3 /* This Source Code Form is subject to the terms of the Mozilla Public | 3 /* This Source Code Form is subject to the terms of the Mozilla Public |
4 * License, v. 2.0. If a copy of the MPL was not distributed with this | 4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 let Cc = Components.classes; | 8 let Cc = Components.classes; |
9 let Ci = Components.interfaces; | 9 let Ci = Components.interfaces; |
10 let Cu = Components.utils; | 10 let Cu = Components.utils; |
11 let Cr = Components.results; | 11 let Cr = Components.results; |
12 | 12 |
13 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); | 13 Cu.import("resource://gre/modules/XPCOMUtils.jsm"); |
14 Cu.import("resource://gre/modules/Services.jsm"); | 14 Cu.import("resource://gre/modules/Services.jsm"); |
15 Cu.import("resource://gre/modules/AddonManager.jsm"); | 15 Cu.import("resource://gre/modules/AddonManager.jsm"); |
16 Cu.import("resource://gre/modules/FileUtils.jsm"); | 16 Cu.import("resource://gre/modules/FileUtils.jsm"); |
17 Cu.import("resource://gre/modules/JNI.jsm"); | 17 Cu.import("resource://gre/modules/JNI.jsm"); |
18 Cu.import('resource://gre/modules/Payment.jsm'); | 18 Cu.import('resource://gre/modules/Payment.jsm'); |
19 Cu.import("resource://gre/modules/NotificationDB.jsm"); | 19 Cu.import("resource://gre/modules/NotificationDB.jsm"); |
20 Cu.import("resource://gre/modules/SpatialNavigation.jsm"); | 20 Cu.import("resource://gre/modules/SpatialNavigation.jsm"); |
21 Cu.import("resource://gre/modules/UITelemetry.jsm"); | 21 Cu.import("resource://gre/modules/UITelemetry.jsm"); |
| 22 Cu.import("chrome://adblockplus/content/Api.jsm"); |
22 | 23 |
23 #ifdef ACCESSIBILITY | 24 #ifdef ACCESSIBILITY |
24 Cu.import("resource://gre/modules/accessibility/AccessFu.jsm"); | 25 Cu.import("resource://gre/modules/accessibility/AccessFu.jsm"); |
25 #endif | 26 #endif |
26 | 27 |
27 XPCOMUtils.defineLazyModuleGetter(this, "PluralForm", | 28 XPCOMUtils.defineLazyModuleGetter(this, "PluralForm", |
28 "resource://gre/modules/PluralForm.jsm"); | 29 "resource://gre/modules/PluralForm.jsm"); |
29 | 30 |
30 XPCOMUtils.defineLazyModuleGetter(this, "sendMessageToJava", | 31 XPCOMUtils.defineLazyModuleGetter(this, "sendMessageToJava", |
31 "resource://gre/modules/Messaging.jsm"); | 32 "resource://gre/modules/Messaging.jsm"); |
(...skipping 8409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8441 return { | 8442 return { |
8442 id: this.id, | 8443 id: this.id, |
8443 icon: elt.icon, | 8444 icon: elt.icon, |
8444 label: elt.label, | 8445 label: elt.label, |
8445 disabled: elt.disabled, | 8446 disabled: elt.disabled, |
8446 menu: elt instanceof Ci.nsIDOMHTMLMenuElement | 8447 menu: elt instanceof Ci.nsIDOMHTMLMenuElement |
8447 }; | 8448 }; |
8448 } | 8449 } |
8449 }, | 8450 }, |
8450 }); | 8451 }); |
OLD | NEW |