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

Unified Diff: compiled/bindings/main.cpp

Issue 29574665: Issue 5159 - Expose collapse property for BlockingFilter (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Feedback applied. Created Nov. 21, 2017, 3:15 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 | « no previous file | compiled/filter/BlockingFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/bindings/main.cpp
===================================================================
--- a/compiled/bindings/main.cpp
+++ b/compiled/bindings/main.cpp
@@ -69,17 +69,19 @@
.function("isActiveOnlyOnDomain", &ActiveFilter::IsActiveOnlyOnDomain)
.function("isGeneric", &ActiveFilter::IsGeneric)
.function("serialize", &ActiveFilter::Serialize);
class_<RegExpFilter,ActiveFilter>("RegExpFilter")
.function("matches", &RegExpFilter::Matches);
class_<BlockingFilter,RegExpFilter>("BlockingFilter")
- .class_property("type", "'blocking'");
+ .class_property("type", "'blocking'")
+ .property("collapse", &BlockingFilter::GetCollapse);
+
class_<WhitelistFilter,RegExpFilter>("WhitelistFilter")
.class_property("type", "'whitelist'");
class_<ElemHideBase,ActiveFilter>("ElemHideBase")
.property("selector", &ElemHideBase::GetSelector)
.property("selectorDomain", &ElemHideBase::GetSelectorDomain);
« no previous file with comments | « no previous file | compiled/filter/BlockingFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld