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

Side by Side Diff: background.js

Issue 29345232: Issue 4084 - Do not use @@bidi_dir directly in adblockplusui (Closed)
Patch Set: Also adapt the mock implementation Created May 30, 2016, 1:58 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 | « no previous file | messageResponder.js » ('j') | messageResponder.js » ('J')
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 modules.utils = { 85 modules.utils = {
86 Utils: { 86 Utils: {
87 getDocLink: function(link) 87 getDocLink: function(link)
88 { 88 {
89 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin k); 89 return "https://adblockplus.org/redirect?link=" + encodeURIComponent(lin k);
90 }, 90 },
91 get appLocale() 91 get appLocale()
92 { 92 {
93 return parent.ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-"); 93 return parent.ext.i18n.getMessage("@@ui_locale").replace(/_/g, "-");
94 },
95 get readingDirection()
96 {
97 return parent.ext.i18n.getMessage("@@bidi_dir");
94 } 98 }
99
95 } 100 }
96 }; 101 };
97 102
98 modules.prefs = {Prefs: new EventEmitter()}; 103 modules.prefs = {Prefs: new EventEmitter()};
99 var prefs = { 104 var prefs = {
100 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [], 105 notifications_ignoredcategories: (params.showNotificationUI) ? ["*"] : [],
101 notifications_showui: params.showNotificationUI, 106 notifications_showui: params.showNotificationUI,
102 safari_contentblocker: false, 107 safari_contentblocker: false,
103 shouldShowBlockElementMenu: true, 108 shouldShowBlockElementMenu: true,
104 show_devtools_panel: true, 109 show_devtools_panel: true,
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 485
481 if (params.safariContentBlocker) 486 if (params.safariContentBlocker)
482 { 487 {
483 global.safari = { 488 global.safari = {
484 extension: { 489 extension: {
485 setContentBlocker: function() {} 490 setContentBlocker: function() {}
486 } 491 }
487 }; 492 };
488 } 493 }
489 })(this); 494 })(this);
OLDNEW
« no previous file with comments | « no previous file | messageResponder.js » ('j') | messageResponder.js » ('J')

Powered by Google App Engine
This is Rietveld