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

Delta Between Two Patch Sets: background.js

Issue 29329677: Issue 2396 - Add CSS property filter message responder (Closed)
Left Patch Set: Avoid breaking the background.html test page Created Nov. 3, 2015, 4:16 p.m.
Right Patch Set: Remove specificOnly parameter from getRulesForDomain stub Created Nov. 5, 2015, 3:54 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | messageResponder.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (blocked.indexOf(url) >= 0) 193 if (blocked.indexOf(url) >= 0)
194 return new modules.filterClasses.BlockingFilter(); 194 return new modules.filterClasses.BlockingFilter();
195 else 195 else
196 return null; 196 return null;
197 } 197 }
198 } 198 }
199 }; 199 };
200 200
201 modules.cssRules = { 201 modules.cssRules = {
202 CSSRules: { 202 CSSRules: {
203 getRulesForDomain: function(domain, specificOnly) { } 203 getRulesForDomain: function(domain) { }
204 } 204 }
205 }; 205 };
206 206
207 var notifierListeners = []; 207 var notifierListeners = [];
208 modules.filterNotifier = { 208 modules.filterNotifier = {
209 FilterNotifier: { 209 FilterNotifier: {
210 addListener: function(listener) 210 addListener: function(listener)
211 { 211 {
212 if (notifierListeners.indexOf(listener) < 0) 212 if (notifierListeners.indexOf(listener) < 0)
213 notifierListeners.push(listener); 213 notifierListeners.push(listener);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 type: "message", 297 type: "message",
298 payload: { 298 payload: {
299 title: "Custom subscription", 299 title: "Custom subscription",
300 url: "http://example.com/custom.txt", 300 url: "http://example.com/custom.txt",
301 type: "add-subscription" 301 type: "add-subscription"
302 } 302 }
303 }, "*"); 303 }, "*");
304 }, 1000); 304 }, 1000);
305 } 305 }
306 })(this); 306 })(this);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld