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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 var page = pages[event.userInfo.pageId]; | 291 var page = pages[event.userInfo.pageId]; |
292 var items = contextMenuItems.get(page); | 292 var items = contextMenuItems.get(page); |
293 | 293 |
294 items[event.command].onclick(page); | 294 items[event.command].onclick(page); |
295 }); | 295 }); |
296 | 296 |
297 | 297 |
298 /* Web requests */ | 298 /* Web requests */ |
299 | 299 |
300 ext.webRequest = { | 300 ext.webRequest = { |
301 onBeforeRequest: new ext._EventTarget(true), | 301 onBeforeRequest: new ext._EventTarget(), |
302 handlerBehaviorChanged: function() {} | 302 handlerBehaviorChanged: function() {} |
303 }; | 303 }; |
304 | 304 |
305 | 305 |
306 /* Background page */ | 306 /* Background page */ |
307 | 307 |
308 ext.backgroundPage = { | 308 ext.backgroundPage = { |
309 getWindow: function() | 309 getWindow: function() |
310 { | 310 { |
311 return window; | 311 return window; |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 page.activate(); | 677 page.activate(); |
678 if (callback) | 678 if (callback) |
679 callback(page); | 679 callback(page); |
680 return; | 680 return; |
681 } | 681 } |
682 } | 682 } |
683 | 683 |
684 ext.pages.open(optionsUrl, callback); | 684 ext.pages.open(optionsUrl, callback); |
685 }; | 685 }; |
686 })(); | 686 })(); |
OLD | NEW |