| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 Eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 activate: function() | 50 activate: function() |
| 51 { | 51 { |
| 52 this._tab.activate(); | 52 this._tab.activate(); |
| 53 }, | 53 }, |
| 54 sendMessage: function(message, responseCallback) | 54 sendMessage: function(message, responseCallback) |
| 55 { | 55 { |
| 56 this._messageProxy.sendMessage(message, responseCallback, {pageId: this._i
d}); | 56 this._messageProxy.sendMessage(message, responseCallback, {pageId: this._i
d}); |
| 57 } | 57 } |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 ext._getPage = function(id) |
| 61 { |
| 62 return pages[id]; |
| 63 }; |
| 64 |
| 60 var isPageActive = function(page) | 65 var isPageActive = function(page) |
| 61 { | 66 { |
| 62 var tab = page._tab; | 67 var tab = page._tab; |
| 63 var win = tab.browserWindow; | 68 var win = tab.browserWindow; |
| 64 return win && tab == win.activeTab && page == tab._visiblePage; | 69 return win && tab == win.activeTab && page == tab._visiblePage; |
| 65 }; | 70 }; |
| 66 | 71 |
| 67 var forgetPage = function(id) | 72 var forgetPage = function(id) |
| 68 { | 73 { |
| 69 ext._removeFromAllPageMaps(id); | 74 ext._removeFromAllPageMaps(id); |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 page.activate(); | 676 page.activate(); |
| 672 if (callback) | 677 if (callback) |
| 673 callback(page); | 678 callback(page); |
| 674 return; | 679 return; |
| 675 } | 680 } |
| 676 } | 681 } |
| 677 | 682 |
| 678 ext.pages.open(optionsUrl, callback); | 683 ext.pages.open(optionsUrl, callback); |
| 679 }; | 684 }; |
| 680 })(); | 685 })(); |
| OLD | NEW |