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

Unified Diff: include/AdblockPlus/JsEngine.h

Issue 10862008: Automatically add default filter subscription when necessary. (Closed)
Patch Set: Created May 27, 2013, 2:12 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 | « include/AdblockPlus/FilterEngine.h ('k') | lib/init.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/JsEngine.h
===================================================================
--- a/include/AdblockPlus/JsEngine.h
+++ b/include/AdblockPlus/JsEngine.h
@@ -48,23 +48,23 @@ namespace AdblockPlus
typedef std::tr1::shared_ptr<JsEngine> JsEnginePtr;
class JsEngine : public std::tr1::enable_shared_from_this<JsEngine>
{
friend class JsValue;
friend class JsContext;
public:
- typedef std::tr1::function<void()> EventCallback;
+ typedef std::tr1::function<void(JsValueList& params)> EventCallback;
typedef std::map<std::string, EventCallback> EventMap;
static JsEnginePtr New(const AppInfo& appInfo = AppInfo());
void SetEventCallback(const std::string& eventName, EventCallback callback);
void RemoveEventCallback(const std::string& eventName);
- void TriggerEvent(const std::string& eventName);
+ void TriggerEvent(const std::string& eventName, JsValueList& params);
JsValuePtr Evaluate(const std::string& source,
const std::string& filename = "");
void Gc();
JsValuePtr NewValue(const std::string& val);
JsValuePtr NewValue(int64_t val);
JsValuePtr NewValue(bool val);
inline JsValuePtr NewValue(const char* val)
{
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | lib/init.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld