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: remove local Notifications Created Jan. 22, 2015, 2:01 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()));
Wladimir Palant 2015/01/22 15:19:51 That method is unused now. You might argue that it
sergei 2015/01/22 16:15:11 Sorry, forgot about it. Removed.
+}
+
AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewCallback(
v8::InvocationCallback callback)
{

Powered by Google App Engine
This is Rietveld