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

Unified Diff: compiled/bindings.cpp

Issue 29383799: Issue 4988 - [emscripten] Adjust API for Element Hiding Emulation filters (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 14, 2017, 2:42 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
Index: compiled/bindings.cpp
===================================================================
--- a/compiled/bindings.cpp
+++ b/compiled/bindings.cpp
@@ -4,32 +4,32 @@
#include "CommentFilter.h"
#include "ActiveFilter.h"
#include "RegExpFilter.h"
#include "BlockingFilter.h"
#include "WhitelistFilter.h"
#include "ElemHideBase.h"
#include "ElemHideFilter.h"
#include "ElemHideException.h"
-#include "CSSPropertyFilter.h"
+#include "ElemHideEmulationFilter.h"
EMSCRIPTEN_BINDINGS
{
class_<Filter>("Filter")
.property("text", &Filter::GetText)
.function("serialize", &Filter::Serialize)
.class_function("fromText", &Filter::FromText)
.subclass_differentiator(&Filter::mType, {
{Filter::Type::INVALID, "InvalidFilter"},
{Filter::Type::COMMENT, "CommentFilter"},
{Filter::Type::BLOCKING, "BlockingFilter"},
{Filter::Type::WHITELIST, "WhitelistFilter"},
{Filter::Type::ELEMHIDE, "ElemHideFilter"},
{Filter::Type::ELEMHIDEEXCEPTION, "ElemHideException"},
- {Filter::Type::CSSPROPERTY, "CSSPropertyFilter"},
+ {Filter::Type::ELEMHIDEEMULATION, "ElemHideEmulationFilter"},
});
class_<InvalidFilter,Filter>("InvalidFilter")
.class_property("type", "'invalid'")
.property("reason", &InvalidFilter::GetReason);
class_<CommentFilter,Filter>("CommentFilter")
.class_property("type", "'comment'");
@@ -58,14 +58,11 @@ EMSCRIPTEN_BINDINGS
.property("selectorDomain", &ElemHideBase::GetSelectorDomain);
class_<ElemHideFilter,ElemHideBase>("ElemHideFilter")
.class_property("type", "'elemhide'");
class_<ElemHideException,ElemHideBase>("ElemHideException")
.class_property("type", "'elemhideexception'");
- class_<CSSPropertyFilter,ElemHideBase>("CSSPropertyFilter")
- .class_property("type", "'cssproperty'")
- .property("regexpString", &CSSPropertyFilter::GetRegExpString)
- .property("selectorPrefix", &CSSPropertyFilter::GetSelectorPrefix)
- .property("selectorSuffix", &CSSPropertyFilter::GetSelectorSuffix);
+ class_<ElemHideEmulationFilter,ElemHideBase>("ElemHideEmulationFilter")
+ .class_property("type", "'elemhideemulation'");
}

Powered by Google App Engine
This is Rietveld