OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 public void forceUpdateCheck() | 95 public void forceUpdateCheck() |
96 { | 96 { |
97 forceUpdateCheck(this.ptr, 0); | 97 forceUpdateCheck(this.ptr, 0); |
98 } | 98 } |
99 | 99 |
100 public void forceUpdateCheck(final UpdateCheckDoneCallback callback) | 100 public void forceUpdateCheck(final UpdateCheckDoneCallback callback) |
101 { | 101 { |
102 forceUpdateCheck(this.ptr, callback != null ? callback.ptr : 0); | 102 forceUpdateCheck(this.ptr, callback != null ? callback.ptr : 0); |
103 } | 103 } |
104 | 104 |
105 public List<String> getElementHidingSelectors(final String domain) | 105 public List<String> getElementHidingSelectors(final String url) |
106 { | 106 { |
107 return getElementHidingSelectors(this.ptr, domain); | 107 return getElementHidingSelectors(this.ptr, url); |
108 } | 108 } |
109 | 109 |
110 public void showNextNotification(final String url) | 110 public void showNextNotification(final String url) |
111 { | 111 { |
112 showNextNotification(this.ptr, url); | 112 showNextNotification(this.ptr, url); |
113 } | 113 } |
114 | 114 |
115 public void showNextNotification() | 115 public void showNextNotification() |
116 { | 116 { |
117 showNextNotification(this.ptr, null); | 117 showNextNotification(this.ptr, null); |
(...skipping 12 matching lines...) Expand all Loading... |
130 public Filter matches(final String url, final ContentType contentType, final S
tring documentUrl) | 130 public Filter matches(final String url, final ContentType contentType, final S
tring documentUrl) |
131 { | 131 { |
132 return matches(this.ptr, url, contentType, documentUrl); | 132 return matches(this.ptr, url, contentType, documentUrl); |
133 } | 133 } |
134 | 134 |
135 public Filter matches(final String url, final ContentType contentType, final S
tring[] documentUrls) | 135 public Filter matches(final String url, final ContentType contentType, final S
tring[] documentUrls) |
136 { | 136 { |
137 return matches(this.ptr, url, contentType, documentUrls); | 137 return matches(this.ptr, url, contentType, documentUrls); |
138 } | 138 } |
139 | 139 |
| 140 public boolean isDocumentWhitelisted(String url, String[] documentUrls) |
| 141 { |
| 142 return isDocumentWhitelisted(this.ptr, url, documentUrls); |
| 143 } |
| 144 |
| 145 public boolean isElemhideWhitelisted(String url, String[] documentUrls) |
| 146 { |
| 147 return isElemhideWhitelisted(this.ptr, url, documentUrls); |
| 148 } |
| 149 |
140 public JsValue getPref(final String pref) | 150 public JsValue getPref(final String pref) |
141 { | 151 { |
142 return getPref(this.ptr, pref); | 152 return getPref(this.ptr, pref); |
143 } | 153 } |
144 | 154 |
145 public void setPref(final String pref, final JsValue value) | 155 public void setPref(final String pref, final JsValue value) |
146 { | 156 { |
147 setPref(this.ptr, pref, value.ptr); | 157 setPref(this.ptr, pref, value.ptr); |
148 } | 158 } |
149 | 159 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 private final static native void removeUpdateAvailableCallback(long ptr); | 198 private final static native void removeUpdateAvailableCallback(long ptr); |
189 | 199 |
190 private final static native void setUpdateAvailableCallback(long ptr, long fil
terPtr); | 200 private final static native void setUpdateAvailableCallback(long ptr, long fil
terPtr); |
191 | 201 |
192 private final static native void removeFilterChangeCallback(long ptr); | 202 private final static native void removeFilterChangeCallback(long ptr); |
193 | 203 |
194 private final static native void setFilterChangeCallback(long ptr, long filter
Ptr); | 204 private final static native void setFilterChangeCallback(long ptr, long filter
Ptr); |
195 | 205 |
196 private final static native void forceUpdateCheck(long ptr, long updatePtr); | 206 private final static native void forceUpdateCheck(long ptr, long updatePtr); |
197 | 207 |
198 private final static native List<String> getElementHidingSelectors(long ptr, S
tring domain); | 208 private final static native List<String> getElementHidingSelectors(long ptr, S
tring url); |
199 | 209 |
200 private final static native void showNextNotification(long ptr, String url); | 210 private final static native void showNextNotification(long ptr, String url); |
201 | 211 |
202 private final static native void setShowNotificationCallback(long ptr, long ca
llbackPtr); | 212 private final static native void setShowNotificationCallback(long ptr, long ca
llbackPtr); |
203 | 213 |
204 private final static native void removeShowNotificationCallback(long ptr); | 214 private final static native void removeShowNotificationCallback(long ptr); |
205 | 215 |
206 private final static native JsValue getPref(long ptr, String pref); | 216 private final static native JsValue getPref(long ptr, String pref); |
207 | 217 |
208 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String documentUrl); | 218 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String documentUrl); |
209 | 219 |
210 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String[] documentUrls); | 220 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String[] documentUrls); |
211 | 221 |
| 222 private final static native boolean isDocumentWhitelisted(long ptr, String url
, String[] documentUrls); |
| 223 |
| 224 private final static native boolean isElemhideWhitelisted(long ptr, String url
, String[] documentUrls); |
| 225 |
212 private final static native void setPref(long ptr, String pref, long valuePtr)
; | 226 private final static native void setPref(long ptr, String pref, long valuePtr)
; |
213 | 227 |
214 private final static native void dtor(long ptr); | 228 private final static native void dtor(long ptr); |
215 } | 229 } |
OLD | NEW |