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

Delta Between Two Patch Sets: compiled/ElemHideFilter.cpp

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 | « compiled/ElemHideFilter.h ('k') | compiled/Filter.h » ('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 #include <emscripten/bind.h>
2
3 #include "ElemHideFilter.h" 1 #include "ElemHideFilter.h"
4 2
5 ElemHideFilter::ElemHideFilter(const std::wstring& text, size_t domainsEnd, 3 ElemHideFilter::ElemHideFilter(const String& text, const ElemHideBaseData& data)
6 size_t selectorStart) 4 : ElemHideBase(Type::ELEMHIDE, text, data)
7 : ElemHideBase(text, domainsEnd, selectorStart)
8 { 5 {
9 } 6 }
10
11 Filter::Type ElemHideFilter::GetType() const
12 {
13 return Type::ELEMHIDE;
14 }
15
16 EMSCRIPTEN_BINDINGS(elemhidefilter)
17 {
18 using namespace emscripten;
19 class_<ElemHideFilter,base<ActiveFilter>>("ElemHideFilter");
20 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld