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

Side by Side Diff: messageResponder.js

Issue 29345232: Issue 4084 - Do not use @@bidi_dir directly in adblockplusui (Closed)
Patch Set: Do not pretent to support getMessage for @@ui_locale and @@bidi_dir Created May 30, 2016, 4:59 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 | « ext/common.js ('k') | no next file » | 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 }); 174 });
175 } 175 }
176 else if (message.what == "doclink") 176 else if (message.what == "doclink")
177 callback(Utils.getDocLink(message.link)); 177 callback(Utils.getDocLink(message.link));
178 else if (message.what == "localeInfo") 178 else if (message.what == "localeInfo")
179 { 179 {
180 var bidiDir; 180 var bidiDir;
181 if ("chromeRegistry" in Utils) 181 if ("chromeRegistry" in Utils)
182 bidiDir = Utils.chromeRegistry.isLocaleRTL("adblockplus") ? "rtl" : "ltr"; 182 bidiDir = Utils.chromeRegistry.isLocaleRTL("adblockplus") ? "rtl" : "ltr";
183 else 183 else
184 bidiDir = ext.i18n.getMessage("@@bidi_dir"); 184 bidiDir = Utils.readingDirection;
185 185
186 callback({locale: Utils.appLocale, bidiDir: bidiDir}); 186 callback({locale: Utils.appLocale, bidiDir: bidiDir});
187 } 187 }
188 else if (message.what == "features") 188 else if (message.what == "features")
189 { 189 {
190 callback({ 190 callback({
191 devToolsPanel: info.platform == "chromium", 191 devToolsPanel: info.platform == "chromium",
192 safariContentBlocker: "safari" in global 192 safariContentBlocker: "safari" in global
193 && "extension" in global.safari 193 && "extension" in global.safari
194 && "setContentBlocker" in global.safari.extension 194 && "setContentBlocker" in global.safari.extension
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 for (var i = 0; i < subscriptions.length; i++) 402 for (var i = 0; i < subscriptions.length; i++)
403 { 403 {
404 var subscription = subscriptions[i]; 404 var subscription = subscriptions[i];
405 if (subscription instanceof DownloadableSubscription) 405 if (subscription instanceof DownloadableSubscription)
406 Synchronizer.execute(subscription, true); 406 Synchronizer.execute(subscription, true);
407 } 407 }
408 break; 408 break;
409 } 409 }
410 }); 410 });
411 })(this); 411 })(this);
OLDNEW
« no previous file with comments | « ext/common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld