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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |