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

Unified Diff: lib/filterClassesNew.js

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Using embind Created Jan. 15, 2016, 8:44 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 | « compiled/tools.h ('k') | test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/filterClassesNew.js
===================================================================
new file mode 100644
--- /dev/null
+++ b/lib/filterClassesNew.js
@@ -0,0 +1,23 @@
+"use strict";
+
+let compiled = require("./compiled");
+
+let FilterType = compiled.FilterType;
+FilterType.INVALID.toString = () => "invalid";
+FilterType.COMMENT.toString = () => "comment";
+FilterType.BLOCKING.toString = () => "blocking";
+FilterType.WHITELIST.toString = () => "whitelist";
+FilterType.ELEMHIDE.toString = () => "elemhide";
+FilterType.ELEMHIDEEXCEPTION.toString = () => "elemhideexception";
+FilterType.CSSPROPERTY.toString = () => "cssproperty";
+
+exports.Filter = compiled.Filter;
+exports.InvalidFilter = compiled.InvalidFilter;
+exports.CommentFilter = compiled.CommentFilter;
+exports.ActiveFilter = compiled.ActiveFilter;
+exports.RegExpFilter = compiled.RegExpFilter;
+exports.WhiteListFilter = compiled.WhiteListFilter;
+exports.ElemHideBase = compiled.ElemHideBase;
+exports.ElemHideFilter = compiled.ElemHideFilter;
+exports.ElemHideException = compiled.ElemHideException;
+exports.CSSPropertyFilter = compiled.CSSPropertyFilter;
« no previous file with comments | « compiled/tools.h ('k') | test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld