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 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 url) | 105 public List<String> getElementHidingSelectors(final String domain) |
106 { | 106 { |
107 return getElementHidingSelectors(this.ptr, url); | 107 return getElementHidingSelectors(this.ptr, domain); |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 private final static native void removeUpdateAvailableCallback(long ptr); | 198 private final static native void removeUpdateAvailableCallback(long ptr); |
199 | 199 |
200 private final static native void setUpdateAvailableCallback(long ptr, long fil
terPtr); | 200 private final static native void setUpdateAvailableCallback(long ptr, long fil
terPtr); |
201 | 201 |
202 private final static native void removeFilterChangeCallback(long ptr); | 202 private final static native void removeFilterChangeCallback(long ptr); |
203 | 203 |
204 private final static native void setFilterChangeCallback(long ptr, long filter
Ptr); | 204 private final static native void setFilterChangeCallback(long ptr, long filter
Ptr); |
205 | 205 |
206 private final static native void forceUpdateCheck(long ptr, long updatePtr); | 206 private final static native void forceUpdateCheck(long ptr, long updatePtr); |
207 | 207 |
208 private final static native List<String> getElementHidingSelectors(long ptr, S
tring url); | 208 private final static native List<String> getElementHidingSelectors(long ptr, S
tring domain); |
209 | 209 |
210 private final static native void showNextNotification(long ptr, String url); | 210 private final static native void showNextNotification(long ptr, String url); |
211 | 211 |
212 private final static native void setShowNotificationCallback(long ptr, long ca
llbackPtr); | 212 private final static native void setShowNotificationCallback(long ptr, long ca
llbackPtr); |
213 | 213 |
214 private final static native void removeShowNotificationCallback(long ptr); | 214 private final static native void removeShowNotificationCallback(long ptr); |
215 | 215 |
216 private final static native JsValue getPref(long ptr, String pref); | 216 private final static native JsValue getPref(long ptr, String pref); |
217 | 217 |
218 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); |
219 | 219 |
220 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); |
221 | 221 |
222 private final static native boolean isDocumentWhitelisted(long ptr, String url
, String[] documentUrls); | 222 private final static native boolean isDocumentWhitelisted(long ptr, String url
, String[] documentUrls); |
223 | 223 |
224 private final static native boolean isElemhideWhitelisted(long ptr, String url
, String[] documentUrls); | 224 private final static native boolean isElemhideWhitelisted(long ptr, String url
, String[] documentUrls); |
225 | 225 |
226 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)
; |
227 | 227 |
228 private final static native void dtor(long ptr); | 228 private final static native void dtor(long ptr); |
229 } | 229 } |
LEFT | RIGHT |