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

Unified Diff: include/AdblockPlus/JsValue.h

Issue 29337850: Issue 3724 - Add JsValue::Call(const JsValue&) (Closed)
Patch Set: typo fix Created March 3, 2016, 11:20 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
« no previous file with comments | « no previous file | include/AdblockPlus/Notification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/JsValue.h
diff --git a/include/AdblockPlus/JsValue.h b/include/AdblockPlus/JsValue.h
index 02ad87713d8686df82d8d2486030bd0b52a50fd4..092238e46163f9508532cbec89da470fb0568f37 100644
--- a/include/AdblockPlus/JsValue.h
+++ b/include/AdblockPlus/JsValue.h
@@ -123,6 +123,14 @@ namespace AdblockPlus
JsValuePtr Call(const JsValueList& params = JsValueList(),
AdblockPlus::JsValuePtr thisPtr = AdblockPlus::JsValuePtr()) const;
+ /**
+ * Invokes the value as a function (see `IsFunction()`) with single
+ * parameter.
+ * @param arg A single required parameter.
+ * @return Value returned by the function.
+ */
+ JsValuePtr Call(const JsValue& arg) const;
+
v8::Local<v8::Value> UnwrapValue() const;
protected:
JsValue(JsValuePtr value);
« no previous file with comments | « no previous file | include/AdblockPlus/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld