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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 public Filter matches(final String url, final ContentType contentType, final S
tring[] documentUrls) | 115 public Filter matches(final String url, final ContentType contentType, final S
tring[] documentUrls) |
116 { | 116 { |
117 return matches(this.ptr, url, contentType, documentUrls); | 117 return matches(this.ptr, url, contentType, documentUrls); |
118 } | 118 } |
119 | 119 |
120 public JsValue getPref(final String pref) | 120 public JsValue getPref(final String pref) |
121 { | 121 { |
122 return getPref(this.ptr, pref); | 122 return getPref(this.ptr, pref); |
123 } | 123 } |
124 | 124 |
| 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 |
125 public void setPref(final String pref, final JsValue value) | 135 public void setPref(final String pref, final JsValue value) |
126 { | 136 { |
127 setPref(this.ptr, pref, value.ptr); | 137 setPref(this.ptr, pref, value.ptr); |
128 } | 138 } |
129 | 139 |
130 @Override | 140 @Override |
131 public void dispose() | 141 public void dispose() |
132 { | 142 { |
133 this.disposer.dispose(); | 143 this.disposer.dispose(); |
134 } | 144 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 private final static native void forceUpdateCheck(long ptr, long updatePtr); | 186 private final static native void forceUpdateCheck(long ptr, long updatePtr); |
177 | 187 |
178 private final static native List<String> getElementHidingSelectors(long ptr, S
tring domain); | 188 private final static native List<String> getElementHidingSelectors(long ptr, S
tring domain); |
179 | 189 |
180 private final static native JsValue getPref(long ptr, String pref); | 190 private final static native JsValue getPref(long ptr, String pref); |
181 | 191 |
182 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String documentUrl); | 192 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String documentUrl); |
183 | 193 |
184 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String[] documentUrls); | 194 private final static native Filter matches(long ptr, String url, ContentType c
ontentType, String[] documentUrls); |
185 | 195 |
| 196 private final static native Notification getNextNotificationToShow(long ptr, S
tring url); |
| 197 |
186 private final static native void setPref(long ptr, String pref, long valuePtr)
; | 198 private final static native void setPref(long ptr, String pref, long valuePtr)
; |
187 | 199 |
188 private final static native void dtor(long ptr); | 200 private final static native void dtor(long ptr); |
189 } | 201 } |
OLD | NEW |