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

Unified Diff: include/AdblockPlus/JsEngine.h

Issue 5653480979038208: Issue 2325 - Add a way to set settings in libadblockplus for FRP and automatic updates (Closed)
Patch Set: Simplify loading of the defaults Created June 17, 2015, 1:19 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: include/AdblockPlus/JsEngine.h
===================================================================
--- a/include/AdblockPlus/JsEngine.h
+++ b/include/AdblockPlus/JsEngine.h
@@ -211,6 +211,13 @@
*/
void SetLogSystem(LogSystemPtr val);
+ /**
+ * Sets a global property that can be accessed by all the scripts.
Felix Dahlke 2015/06/17 18:49:24 Nit: Seems like the indentation is off here, shoul
Oleksandr 2015/06/17 23:53:27 Done.
+ * @param The `std::string` name of the property to set
Felix Dahlke 2015/06/17 18:49:24 Nit: Don't think Doxygen will parse this as intend
Oleksandr 2015/06/17 23:53:27 Done. It would still produce understandable output
+ * @param The `JsValuePtr` value of the property to set
+ */
+ void SetGlobalProperty(std::string name, AdblockPlus::JsValuePtr value);
Felix Dahlke 2015/06/17 18:49:24 Nit: The std::string should be passed as a const r
Oleksandr 2015/06/17 23:53:28 Done.
+
private:
JsEngine();
@@ -220,6 +227,7 @@
v8::Isolate* isolate;
V8ValueHolder<v8::Context> context;
EventMap eventCallbacks;
+ JsValuePtr globalJsObject;
};
}
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | lib/prefs.js » ('j') | lib/prefs.js » ('J')

Powered by Google App Engine
This is Rietveld