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

Unified Diff: src/JsEngine.cpp

Issue 5797488346791936: Issue 1107 - Support notifications (Closed)
Patch Set: Created Jan. 19, 2015, 12:50 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: src/JsEngine.cpp
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp
index dc4688ff61124be3c1029b11f346fa9a61930d29..b5839ec64014ebaf470de2993e20cf66d064e47c 100644
--- a/src/JsEngine.cpp
+++ b/src/JsEngine.cpp
@@ -144,6 +144,12 @@ AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewObject()
return JsValuePtr(new JsValue(shared_from_this(), v8::Object::New()));
}
+AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewArray()
+{
+ const JsContext context(shared_from_this());
+ return JsValuePtr(new JsValue(shared_from_this(), v8::Array::New()));
+}
+
AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewCallback(
v8::InvocationCallback callback)
{
« include/AdblockPlus/FilterEngine.h ('K') | « src/FilterEngine.cpp ('k') | src/JsValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld