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

Delta Between Two Patch Sets: lib/filterClassesNew.js

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Left Patch Set: Using embind Created Jan. 15, 2016, 8:44 p.m.
Right Patch Set: Addressed comments from Patch Set 28 Created March 21, 2017, 10:04 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/filterClasses.js ('k') | lib/filterNotifier.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 "use strict"; 1 "use strict";
2 2
3 let compiled = require("./compiled"); 3 let compiled = require("compiled");
4 4 for (let cls of ["Filter", "InvalidFilter", "CommentFilter", "ActiveFilter",
5 let FilterType = compiled.FilterType; 5 "RegExpFilter", "BlockingFilter", "WhitelistFilter", "ElemHideBase",
6 FilterType.INVALID.toString = () => "invalid"; 6 "ElemHideFilter", "ElemHideException", "CSSPropertyFilter"])
7 FilterType.COMMENT.toString = () => "comment"; 7 {
8 FilterType.BLOCKING.toString = () => "blocking"; 8 exports[cls] = compiled[cls];
9 FilterType.WHITELIST.toString = () => "whitelist"; 9 }
10 FilterType.ELEMHIDE.toString = () => "elemhide";
11 FilterType.ELEMHIDEEXCEPTION.toString = () => "elemhideexception";
12 FilterType.CSSPROPERTY.toString = () => "cssproperty";
13
14 exports.Filter = compiled.Filter;
15 exports.InvalidFilter = compiled.InvalidFilter;
16 exports.CommentFilter = compiled.CommentFilter;
17 exports.ActiveFilter = compiled.ActiveFilter;
18 exports.RegExpFilter = compiled.RegExpFilter;
19 exports.WhiteListFilter = compiled.WhiteListFilter;
20 exports.ElemHideBase = compiled.ElemHideBase;
21 exports.ElemHideFilter = compiled.ElemHideFilter;
22 exports.ElemHideException = compiled.ElemHideException;
23 exports.CSSPropertyFilter = compiled.CSSPropertyFilter;
LEFTRIGHT

Powered by Google App Engine
This is Rietveld