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: Created Jan. 30, 2015, 12:44 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
« no previous file with comments | « jni/Utils.h ('k') | src/org/adblockplus/libadblockplus/Notification.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c04edfb1d015a18ca8c146e8da988d7a5c44b97d 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 getNotificationToShow(String url)
+ {
+ return getNotificationToShow(this.ptr, url);
+ }
+
+ public Notification getNotificationToShow()
+ {
+ return this.getNotificationToShow(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 getNotificationToShow(long ptr, String url);
+
private final static native void setPref(long ptr, String pref, long valuePtr);
private final static native void dtor(long ptr);
« no previous file with comments | « jni/Utils.h ('k') | src/org/adblockplus/libadblockplus/Notification.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld