LEFT | RIGHT |
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 result.push(subscription); | 135 result.push(subscription); |
136 } | 136 } |
137 return result; | 137 return result; |
138 }, | 138 }, |
139 | 139 |
140 getNextNotificationToShow: function(url) | 140 getNextNotificationToShow: function(url) |
141 { | 141 { |
142 return Notification.getNextToShow(url); | 142 return Notification.getNextToShow(url); |
143 }, | 143 }, |
144 | 144 |
145 getNotificationTexts: function(notification, locale) | 145 getNotificationTexts: function(notification) |
146 { | 146 { |
147 return Notification.getLocalizedTexts(notification, locale); | 147 return Notification.getLocalizedTexts(notification); |
148 }, | |
149 | |
150 addNotification: function(notification) | |
151 { | |
152 return Notification.addNotification(notification); | |
153 }, | |
154 | |
155 removeNotification: function(notification) | |
156 { | |
157 return Notification.removeNotification(notification); | |
158 }, | 148 }, |
159 | 149 |
160 markNotificationAsShown: function(id) | 150 markNotificationAsShown: function(id) |
161 { | 151 { |
162 Notification.markAsShown(id); | 152 Notification.markAsShown(id); |
163 }, | 153 }, |
164 checkFilterMatch: function(url, contentType, documentUrl) | 154 checkFilterMatch: function(url, contentType, documentUrl) |
165 { | 155 { |
166 var requestHost = extractHostFromURL(url); | 156 var requestHost = extractHostFromURL(url); |
167 var documentHost = extractHostFromURL(documentUrl); | 157 var documentHost = extractHostFromURL(documentUrl); |
(...skipping 25 matching lines...) Expand all Loading... |
193 { | 183 { |
194 return extractHostFromURL(url); | 184 return extractHostFromURL(url); |
195 }, | 185 }, |
196 | 186 |
197 compareVersions: function(v1, v2) | 187 compareVersions: function(v1, v2) |
198 { | 188 { |
199 return Services.vc.compare(v1, v2); | 189 return Services.vc.compare(v1, v2); |
200 } | 190 } |
201 }; | 191 }; |
202 })(); | 192 })(); |
LEFT | RIGHT |