Index: src/FilterEngine.cpp |
diff --git a/src/FilterEngine.cpp b/src/FilterEngine.cpp |
index 3d4770dfe98ca93df67a5bbdcd97d3cf551996e0..47634824b176e83f6f596cfb9e0a94f29dfead34 100644 |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -257,6 +257,17 @@ std::vector<SubscriptionPtr> FilterEngine::FetchAvailableSubscriptions() const |
return result; |
} |
+std::tr1::shared_ptr<Notification> FilterEngine::GetNextNotificationToShow(const std::string& url /*= std::string()*/) |
Felix Dahlke
2015/01/23 13:25:55
Not a fan of that comment - this kind of stuff ten
sergei
2015/01/23 14:48:19
removed
|
+{ |
+ JsValuePtr func = jsEngine->Evaluate("API.getNextNotificationToShow"); |
+ JsValueList params; |
+ if (!url.empty()) |
+ { |
+ params.push_back(jsEngine->NewValue(url)); |
+ } |
+ return Notification::JsValueToNotification(func->Call(params)); |
+} |
+ |
AdblockPlus::FilterPtr FilterEngine::Matches(const std::string& url, |
ContentType contentType, |
const std::string& documentUrl) const |