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

Unified Diff: src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 5327480814567424: Issue 1108 - Support notifications (Closed)
Patch Set: Even more renaming, ignore INVALID/QUESTION Created Feb. 18, 2015, 3 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/libadblockplus/FilterEngine.java
diff --git a/src/org/adblockplus/libadblockplus/FilterEngine.java b/src/org/adblockplus/libadblockplus/FilterEngine.java
index 718197ac89c090976fd24ffb5741e82a9c94ce13..05ea17028eacc5a7efe62ca27127a3ee44465e55 100644
--- a/src/org/adblockplus/libadblockplus/FilterEngine.java
+++ b/src/org/adblockplus/libadblockplus/FilterEngine.java
@@ -122,6 +122,16 @@ public final class FilterEngine implements Disposable
return getPref(this.ptr, pref);
}
+ public Notification getNextNotificationToShow(String url)
+ {
+ return getNextNotificationToShow(this.ptr, url);
+ }
+
+ public Notification getNextNotificationToShow()
+ {
+ return this.getNextNotificationToShow(null);
+ }
+
public void setPref(final String pref, final JsValue value)
{
setPref(this.ptr, pref, value.ptr);
@@ -183,6 +193,8 @@ public final class FilterEngine implements Disposable
private final static native Filter matches(long ptr, String url, ContentType contentType, String[] documentUrls);
+ private final static native Notification getNextNotificationToShow(long ptr, String url);
+
private final static native void setPref(long ptr, String pref, long valuePtr);
private final static native void dtor(long ptr);

Powered by Google App Engine
This is Rietveld