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

Delta Between Two Patch Sets: src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 5327480814567424: Issue 1108 - Support notifications (Closed)
Left Patch Set: Removed unused import, cleaned up formatting." Created Feb. 17, 2015, 1:54 p.m.
Right Patch Set: Only one Notification displayed now Created Feb. 18, 2015, 3:42 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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
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 getNotificationToShow(String url) 125 public Notification getNextNotificationToShow(String url)
126 { 126 {
127 return getNotificationToShow(this.ptr, url); 127 return getNextNotificationToShow(this.ptr, url);
128 } 128 }
129 129
130 public Notification getNotificationToShow() 130 public Notification getNextNotificationToShow()
131 { 131 {
132 return this.getNotificationToShow(null); 132 return this.getNextNotificationToShow(null);
133 } 133 }
134 134
135 public void setPref(final String pref, final JsValue value) 135 public void setPref(final String pref, final JsValue value)
136 { 136 {
137 setPref(this.ptr, pref, value.ptr); 137 setPref(this.ptr, pref, value.ptr);
138 } 138 }
139 139
140 @Override 140 @Override
141 public void dispose() 141 public void dispose()
142 { 142 {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 private final static native void forceUpdateCheck(long ptr, long updatePtr); 186 private final static native void forceUpdateCheck(long ptr, long updatePtr);
187 187
188 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);
189 189
190 private final static native JsValue getPref(long ptr, String pref); 190 private final static native JsValue getPref(long ptr, String pref);
191 191
192 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);
193 193
194 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);
195 195
196 private final static native Notification getNotificationToShow(long ptr, Strin g url); 196 private final static native Notification getNextNotificationToShow(long ptr, S tring url);
197 197
198 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) ;
199 199
200 private final static native void dtor(long ptr); 200 private final static native void dtor(long ptr);
201 } 201 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld