| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
| 3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
| 4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 let {Prefs} = require("prefs"); | 7 let {Prefs} = require("prefs"); |
| 8 | 8 |
| 9 // Make sure to stop selection when we are uninstalled | 9 // Make sure to stop selection when we are uninstalled |
| 10 onShutdown.add(function() Aardvark.quit()); | 10 onShutdown.add(function() Aardvark.quit()); |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 this.lockedAnchor = null; | 541 this.lockedAnchor = null; |
| 542 this.boxElem = null; | 542 this.boxElem = null; |
| 543 E = function(id) null; | 543 E = function(id) null; |
| 544 return false; | 544 return false; |
| 545 }, | 545 }, |
| 546 | 546 |
| 547 select: function(elem) | 547 select: function(elem) |
| 548 { | 548 { |
| 549 if (!elem) | 549 if (!elem) |
| 550 return false; | 550 return false; |
| 551 | 551 |
| 552 this.window.openDialog("chrome://elemhidehelper/content/composer.xul", "_bla
nk", | 552 this.window.openDialog("chrome://adblockplus/content/ui/ehh-composer.xul", "
_blank", |
| 553 "chrome,centerscreen,resizable,dialog=no", elem); | 553 "chrome,centerscreen,resizable,dialog=no", elem); |
| 554 this.quit(); | 554 this.quit(); |
| 555 return false; | 555 return false; |
| 556 }, | 556 }, |
| 557 | 557 |
| 558 blinkElement: function(elem) | 558 blinkElement: function(elem) |
| 559 { | 559 { |
| 560 if (!elem) | 560 if (!elem) |
| 561 return false; | 561 return false; |
| 562 | 562 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 // Show help box | 724 // Show help box |
| 725 helpBox.showPopup(this.browser, -1, -1, "tooltip", "topleft", "topleft"); | 725 helpBox.showPopup(this.browser, -1, -1, "tooltip", "topleft", "topleft"); |
| 726 return true; | 726 return true; |
| 727 } | 727 } |
| 728 } | 728 } |
| 729 | 729 |
| 730 // Makes sure event handlers like Aardvark.onKeyPress always have the correct | 730 // Makes sure event handlers like Aardvark.onKeyPress always have the correct |
| 731 // this pointer set. | 731 // this pointer set. |
| 732 for each (let method in ["onMouseClick", "onMouseScroll", "onKeyPress", "onPageH
ide", "onMouseMove", "onAfterPaint", "quit"]) | 732 for each (let method in ["onMouseClick", "onMouseScroll", "onKeyPress", "onPageH
ide", "onMouseMove", "onAfterPaint", "quit"]) |
| 733 Aardvark[method] = Aardvark[method].bind(Aardvark); | 733 Aardvark[method] = Aardvark[method].bind(Aardvark); |
| OLD | NEW |