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

Unified Diff: compiled/bindings.cpp

Issue 29398655: Issue 5062 - [emscripten] Allow generation of custom bindings code (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Rebased Created April 13, 2017, 1:06 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 | « compile ('k') | compiled/bindings.ipp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/bindings.cpp
===================================================================
--- a/compiled/bindings.cpp
+++ b/compiled/bindings.cpp
@@ -59,18 +59,19 @@ EMSCRIPTEN_BINDINGS
.property("hitCount", &ActiveFilter::GetHitCount, &ActiveFilter::SetHitCount)
.property("lastHit", &ActiveFilter::GetLastHit, &ActiveFilter::SetLastHit)
.function("isActiveOnDomain", &ActiveFilter::IsActiveOnDomain)
.function("isActiveOnlyOnDomain", &ActiveFilter::IsActiveOnlyOnDomain)
.function("isGeneric", &ActiveFilter::IsGeneric)
.function("serialize", &ActiveFilter::Serialize);
class_<RegExpFilter,ActiveFilter>("RegExpFilter")
- .function("matches", &RegExpFilter::Matches)
- .class_initializer(&RegExpFilter::InitJSTypes);
+ .function("matches", &RegExpFilter::Matches);
+
+ custom_generator(&RegExpFilter::GenerateCustomBindings);
class_<BlockingFilter,RegExpFilter>("BlockingFilter")
.class_property("type", "'blocking'");
class_<WhitelistFilter,RegExpFilter>("WhitelistFilter")
.class_property("type", "'whitelist'");
class_<ElemHideBase,ActiveFilter>("ElemHideBase")
« no previous file with comments | « compile ('k') | compiled/bindings.ipp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld