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

Unified Diff: include/AdblockPlus/JsEngine.h

Issue 10305024: Simplify context setup, set properties on the global object directly instead of using templates (Closed)
Patch Set: Unbitrotted patch Created April 18, 2013, 11:44 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 | src/AppInfoJsObject.h » ('j') | src/GlobalJsObject.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/JsEngine.h
===================================================================
--- a/include/AdblockPlus/JsEngine.h
+++ b/include/AdblockPlus/JsEngine.h
@@ -40,16 +40,17 @@ namespace AdblockPlus
{
return NewValue(std::string(val));
}
inline JsValuePtr NewValue(int val)
{
return NewValue(static_cast<int64_t>(val));
}
JsValuePtr NewObject();
+ JsValuePtr NewCallback(v8::InvocationCallback callback);
static JsEngine& FromArguments(const v8::Arguments& arguments);
JsValueList ConvertArguments(const v8::Arguments& arguments);
inline FileSystem& GetFileSystem()
{
return fileSystem;
}
inline WebRequest& GetWebRequest()
« no previous file with comments | « no previous file | src/AppInfoJsObject.h » ('j') | src/GlobalJsObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld