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: Remove the superfluous white space Created June 18, 2015, 10:34 a.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.
+ * @param name Name of the property to set.
+ * @param value Value of the property to set.
+ */
+ void SetGlobalProperty(const std::string& name, AdblockPlus::JsValuePtr value);
+
Eric 2015/06/19 15:23:36 Nit: whitespace so asterisks line up.
Oleksandr 2015/06/22 07:47:10 Done.
private:
JsEngine();
@@ -220,6 +227,7 @@
v8::Isolate* isolate;
V8ValueHolder<v8::Context> context;
EventMap eventCallbacks;
+ JsValuePtr globalJsObject;
};
}

Powered by Google App Engine
This is Rietveld