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

Delta Between Two Patch Sets: lib/icon.js

Issue 29336084: Issue 2426 - Open block.html as a popup window (Closed)
Left Patch Set: Renamed include.postload.js to blockElement.postload.js Created Feb. 8, 2016, 12:30 p.m.
Right Patch Set: Assume createData parameter has been given Created Feb. 17, 2016, 8:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « lib/devtools.js ('k') | metadata.chrome » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 if (opacity > 0.5) 57 if (opacity > 0.5)
58 page.browserAction.setIcon("icons/abp-$size-notification-" 58 page.browserAction.setIcon("icons/abp-$size-notification-"
59 + notificationType + ".png"); 59 + notificationType + ".png");
60 else 60 else
61 page.browserAction.setIcon("icons/abp-$size" + 61 page.browserAction.setIcon("icons/abp-$size" +
62 (whitelisted ? "-whitelisted" : "") + ".png"); 62 (whitelisted ? "-whitelisted" : "") + ".png");
63 } 63 }
64 else 64 else
65 { 65 {
66 chrome.browserAction.setIcon({ 66 chrome.browserAction.setIcon({
67 tabId: page._id, 67 tabId: page.id,
68 imageData: frames["" + opacity + whitelisted] 68 imageData: frames["" + opacity + whitelisted]
69 }); 69 });
70 } 70 }
71 } 71 }
72 72
73 function renderFrames(notificationType) 73 function renderFrames(notificationType)
74 { 74 {
75 if (safariPlatform) 75 if (safariPlatform)
76 return Promise.resolve(null); 76 return Promise.resolve(null);
77 77
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 clearInterval(interval); 215 clearInterval(interval);
216 resolve(); 216 resolve();
217 return; 217 return;
218 } 218 }
219 219
220 animateIcon(type, frames); 220 animateIcon(type, frames);
221 }, 10000); 221 }, 10000);
222 }); 222 });
223 }); 223 });
224 }; 224 };
LEFTRIGHT

Powered by Google App Engine
This is Rietveld