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

Delta Between Two Patch Sets: lib/prefs.js

Issue 29317001: Relocated icon and redesigned icon popup (Closed)
Left Patch Set: Applied Sebastian's suggestions and updated strings Created Nov. 26, 2013, 4:18 p.m.
Right Patch Set: Merged setBadgeNumber and setBadgeBackgroundColor Created Dec. 13, 2013, 10:36 a.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 | « icons/abp-19-whitelisted.png ('k') | lib/stats.js » ('j') | lib/stats.js » ('J')
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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 17 matching lines...) Expand all
28 savestats: false, 28 savestats: false,
29 privateBrowsing: false, 29 privateBrowsing: false,
30 subscriptions_fallbackerrors: 5, 30 subscriptions_fallbackerrors: 5,
31 subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE LSTATUS%&responseStatus=%RESPONSESTATUS%", 31 subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE LSTATUS%&responseStatus=%RESPONSESTATUS%",
32 subscriptions_autoupdate: true, 32 subscriptions_autoupdate: true,
33 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep tionrules.txt", 33 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep tionrules.txt",
34 documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%" , 34 documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%" ,
35 notificationdata: {}, 35 notificationdata: {},
36 notificationurl: "https://notification.adblockplus.org/notification.json", 36 notificationurl: "https://notification.adblockplus.org/notification.json",
37 stats_total: {}, 37 stats_total: {},
38 show_iconnumber: true, 38 show_statsinicon: true,
39 show_popupstats: true 39 show_statsinpopup: true
Wladimir Palant 2013/12/03 12:55:43 "iconnumber" doesn't really explain what this is a
Thomas Greiner 2013/12/04 10:44:50 Done.
40 }; 40 };
41 41
42 let listeners = []; 42 let listeners = [];
43 43
44 function defineProperty(key) 44 function defineProperty(key)
45 { 45 {
46 let value = null; 46 let value = null;
47 Prefs.__defineGetter__(key, function() 47 Prefs.__defineGetter__(key, function()
48 { 48 {
49 if (value === null) 49 if (value === null)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 removeListener: function(listener) 96 removeListener: function(listener)
97 { 97 {
98 let index = listeners.indexOf(listener); 98 let index = listeners.indexOf(listener);
99 if (index >= 0) 99 if (index >= 0)
100 listeners.splice(index, 1); 100 listeners.splice(index, 1);
101 }, 101 },
102 }; 102 };
103 103
104 for (let key in defaults) 104 for (let key in defaults)
105 defineProperty(key); 105 defineProperty(key);
LEFTRIGHT

Powered by Google App Engine
This is Rietveld