Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: safari/ext/background.js

Issue 5162273421131776: Issue 1768 - Pass value returned by ext.onMessage listeners to chrome.runtime.onMessage listener (Closed)
Patch Set: Created Jan. 9, 2015, 10:56 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« chrome/ext/background.js ('K') | « chrome/ext/content.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 })();
OLDNEW
« chrome/ext/background.js ('K') | « chrome/ext/content.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld