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

Side by Side Diff: src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 29329928: Issue 3297 - Fix issues introduced by recent libadblockplus changes and update dependencies (Closed)
Patch Set: MinSDK and copy'n'paste Created Nov. 20, 2015, 12:19 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
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-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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 domain)
106 { 106 {
107 return getElementHidingSelectors(this.ptr, domain); 107 return getElementHidingSelectors(this.ptr, domain);
108 } 108 }
109 109
110 public void showNextNotification(final String url)
111 {
112 showNextNotification(this.ptr, url);
113 }
114
115 public void showNextNotification()
116 {
117 showNextNotification(this.ptr, null);
118 }
119
120 public void setShowNotificationCallback(final ShowNotificationCallback callbac k)
121 {
122 setShowNotificationCallback(this.ptr, callback.ptr);
123 }
124
125 public void removeShowNotificationCallback()
126 {
127 removeShowNotificationCallback(this.ptr);
128 }
129
110 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)
111 { 131 {
112 return matches(this.ptr, url, contentType, documentUrl); 132 return matches(this.ptr, url, contentType, documentUrl);
113 } 133 }
114 134
115 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)
116 { 136 {
117 return matches(this.ptr, url, contentType, documentUrls); 137 return matches(this.ptr, url, contentType, documentUrls);
118 } 138 }
119 139
120 public JsValue getPref(final String pref) 140 public JsValue getPref(final String pref)
121 { 141 {
122 return getPref(this.ptr, pref); 142 return getPref(this.ptr, pref);
123 } 143 }
124 144
125 public Notification getNextNotificationToShow(String url)
126 {
127 return getNextNotificationToShow(this.ptr, url);
128 }
129
130 public Notification getNextNotificationToShow()
131 {
132 return this.getNextNotificationToShow(null);
133 }
134
135 public void setPref(final String pref, final JsValue value) 145 public void setPref(final String pref, final JsValue value)
136 { 146 {
137 setPref(this.ptr, pref, value.ptr); 147 setPref(this.ptr, pref, value.ptr);
138 } 148 }
139 149
140 @Override 150 @Override
141 public void dispose() 151 public void dispose()
142 { 152 {
143 this.disposer.dispose(); 153 this.disposer.dispose();
144 } 154 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 private final static native void setUpdateAvailableCallback(long ptr, long fil terPtr); 190 private final static native void setUpdateAvailableCallback(long ptr, long fil terPtr);
181 191
182 private final static native void removeFilterChangeCallback(long ptr); 192 private final static native void removeFilterChangeCallback(long ptr);
183 193
184 private final static native void setFilterChangeCallback(long ptr, long filter Ptr); 194 private final static native void setFilterChangeCallback(long ptr, long filter Ptr);
185 195
186 private final static native void forceUpdateCheck(long ptr, long updatePtr); 196 private final static native void forceUpdateCheck(long ptr, long updatePtr);
187 197
188 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain); 198 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain);
189 199
200 private final static native void showNextNotification(long ptr, String url);
201
202 private final static native void setShowNotificationCallback(long ptr, long ca llbackPtr);
203
204 private final static native void removeShowNotificationCallback(long ptr);
205
190 private final static native JsValue getPref(long ptr, String pref); 206 private final static native JsValue getPref(long ptr, String pref);
191 207
192 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl); 208 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl);
193 209
194 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls); 210 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls);
195 211
196 private final static native Notification getNextNotificationToShow(long ptr, S tring url);
197
198 private final static native void setPref(long ptr, String pref, long valuePtr) ; 212 private final static native void setPref(long ptr, String pref, long valuePtr) ;
199 213
200 private final static native void dtor(long ptr); 214 private final static native void dtor(long ptr);
201 } 215 }
OLDNEW
« no previous file with comments | « src/org/adblockplus/libadblockplus/AppInfo.java ('k') | src/org/adblockplus/libadblockplus/ShowNotificationCallback.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld