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: move MarkAsShown into Notification class and get rid of locale arg in Notification::GetTexts Created Jan. 22, 2015, 10:02 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: 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)
{

Powered by Google App Engine
This is Rietveld