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

Side by Side Diff: lib/adblockplus.js

Issue 29352684: Issue 4412 - Add 20px and 40px icons to Adblock Plus for Edge (Closed)
Patch Set: Created Sept. 12, 2016, 1:18 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « icons/abp-40-whitelisted.png ('k') | manifest.json » ('j') | 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 <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 5738 matching lines...) Expand 10 before | Expand all | Expand 10 after
5749 setIcon(page); 5749 setIcon(page);
5750 } 5750 }
5751 }); 5751 });
5752 5752
5753 function renderFrames(notificationType) 5753 function renderFrames(notificationType)
5754 { 5754 {
5755 if (safariPlatform) 5755 if (safariPlatform)
5756 { 5756 {
5757 return Promise.resolve(null); 5757 return Promise.resolve(null);
5758 } 5758 }
5759 return Promise.all([loadImage("icons/abp-19.png"), loadImage("icons/abp-19-w hitelisted.png"), loadImage("icons/abp-19-notification-" + notificationType + ". png"), loadImage("icons/abp-38.png"), loadImage("icons/abp-38-whitelisted.png"), loadImage("icons/abp-38-notification-" + notificationType + ".png")]).then(func tion(images) 5759 return Promise.all([loadImage("icons/abp-19.png"), loadImage("icons/abp-19-w hitelisted.png"), loadImage("icons/abp-19-notification-" + notificationType + ". png"),
5760 loadImage("icons/abp-20.png"), loadImage("icons/abp-20-w hitelisted.png"), loadImage("icons/abp-20-notification-" + notificationType + ". png"),
5761 loadImage("icons/abp-38.png"), loadImage("icons/abp-38-w hitelisted.png"), loadImage("icons/abp-38-notification-" + notificationType + ". png"),
5762 loadImage("icons/abp-40.png"), loadImage("icons/abp-40-w hitelisted.png"), loadImage("icons/abp-40-notification-" + notificationType + ". png")]).then(function(images)
5760 { 5763 {
5761 var images = { 5764 var images = {
5762 19: { 5765 19: {
5763 base: [images[0], images[1]], 5766 base: [images[0], images[1]],
5764 overlay: images[2] 5767 overlay: images[2]
5765 }, 5768 },
5766 38: { 5769 38: {
5767 base: [images[3], images[4]], 5770 base: [images[3], images[4]],
5768 overlay: images[5] 5771 overlay: images[5]
5769 } 5772 }
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
6573 search.push("notificationDownloadCount=" + encodeURIComponent(downlCount)); 6576 search.push("notificationDownloadCount=" + encodeURIComponent(downlCount));
6574 chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" + searc h.join("&")); 6577 chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" + searc h.join("&"));
6575 } 6578 }
6576 if ("setUninstallURL" in chrome.runtime) 6579 if ("setUninstallURL" in chrome.runtime)
6577 { 6580 {
6578 Prefs.untilLoaded.then(setUninstallURL); 6581 Prefs.untilLoaded.then(setUninstallURL);
6579 Prefs.on("notificationdata", setUninstallURL); 6582 Prefs.on("notificationdata", setUninstallURL);
6580 } 6583 }
6581 return exports; 6584 return exports;
6582 })(); 6585 })();
OLDNEW
« no previous file with comments | « icons/abp-40-whitelisted.png ('k') | manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld