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

Unified Diff: src/ConsoleJsObject.h

Issue 29661564: Template out V8 and prepare for other JS engine implementations
Patch Set: Created Jan. 10, 2018, 1:29 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
« no previous file with comments | « shell/src/GcCommand.h ('k') | src/FileSystemJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ConsoleJsObject.h
===================================================================
--- a/src/ConsoleJsObject.h
+++ b/src/ConsoleJsObject.h
@@ -22,7 +22,17 @@
namespace AdblockPlus
{
- class JsEngine;
+ template <class T> class JsEngineTemplate;
+#ifndef JSENGINEIMPL
+#define JSENGINEIMPL JsEngineTemplate<JsEngineNamespaceImpl>
+#endif
+ typedef JSENGINEIMPL JsEngine;
+
+ template <class T> class JsValueTemplate;
+#ifndef JSVALUEIMPL
+#define JSVALUEIMPL JsValueTemplate<JsEngineNamespaceImpl>
+#endif
+ typedef JSVALUEIMPL JsValue;
namespace ConsoleJsObject
{
« no previous file with comments | « shell/src/GcCommand.h ('k') | src/FileSystemJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld