OLD | NEW |
1 #include "bindings.ipp" | 1 #include "bindings.ipp" |
2 #include "Filter.h" | 2 #include "filter/Filter.h" |
3 #include "InvalidFilter.h" | 3 #include "filter/InvalidFilter.h" |
4 #include "CommentFilter.h" | 4 #include "filter/CommentFilter.h" |
5 #include "ActiveFilter.h" | 5 #include "filter/ActiveFilter.h" |
6 #include "RegExpFilter.h" | 6 #include "filter/RegExpFilter.h" |
7 #include "BlockingFilter.h" | 7 #include "filter/BlockingFilter.h" |
8 #include "WhitelistFilter.h" | 8 #include "filter/WhitelistFilter.h" |
9 #include "ElemHideBase.h" | 9 #include "filter/ElemHideBase.h" |
10 #include "ElemHideFilter.h" | 10 #include "filter/ElemHideFilter.h" |
11 #include "ElemHideException.h" | 11 #include "filter/ElemHideException.h" |
12 #include "ElemHideEmulationFilter.h" | 12 #include "filter/ElemHideEmulationFilter.h" |
13 | 13 |
14 EMSCRIPTEN_BINDINGS | 14 EMSCRIPTEN_BINDINGS |
15 { | 15 { |
16 class_<Filter>("Filter") | 16 class_<Filter>("Filter") |
17 .property("text", &Filter::GetText) | 17 .property("text", &Filter::GetText) |
18 .function("serialize", &Filter::Serialize) | 18 .function("serialize", &Filter::Serialize) |
19 .class_function("fromText", &Filter::FromText) | 19 .class_function("fromText", &Filter::FromText) |
20 .subclass_differentiator(&Filter::mType, { | 20 .subclass_differentiator(&Filter::mType, { |
21 {Filter::Type::INVALID, "InvalidFilter"}, | 21 {Filter::Type::INVALID, "InvalidFilter"}, |
22 {Filter::Type::COMMENT, "CommentFilter"}, | 22 {Filter::Type::COMMENT, "CommentFilter"}, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 class_<ElemHideFilter,ElemHideBase>("ElemHideFilter") | 60 class_<ElemHideFilter,ElemHideBase>("ElemHideFilter") |
61 .class_property("type", "'elemhide'"); | 61 .class_property("type", "'elemhide'"); |
62 | 62 |
63 class_<ElemHideException,ElemHideBase>("ElemHideException") | 63 class_<ElemHideException,ElemHideBase>("ElemHideException") |
64 .class_property("type", "'elemhideexception'"); | 64 .class_property("type", "'elemhideexception'"); |
65 | 65 |
66 class_<ElemHideEmulationFilter,ElemHideBase>("ElemHideEmulationFilter") | 66 class_<ElemHideEmulationFilter,ElemHideBase>("ElemHideEmulationFilter") |
67 .class_property("type", "'elemhideemulation'"); | 67 .class_property("type", "'elemhideemulation'"); |
68 } | 68 } |
OLD | NEW |