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

Side by Side Diff: compiled/ElemHideBase.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Call parameters in JS wrappers generated statically Created Jan. 28, 2016, 9:26 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « compiled/CommentFilter.cpp ('k') | compiled/ElemHideBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef ADBLOCK_PLUS_ELEM_HIDE_BASE_H
2 #define ADBLOCK_PLUS_ELEM_HIDE_BASE_H
3
4 #include <cstddef>
5
6 #include "ActiveFilter.h"
7
8 class ElemHideBase : public ActiveFilter
9 {
10 private:
11 String mSelector;
12 public:
13 ElemHideBase(const String& text, String::size_type domainsEnd,
14 String::size_type selectorStart);
15 static Type Parse(const String& text, String::size_type* domainsEnd,
16 String::size_type* selectorStart,
17 String::size_type* prefixEnd = nullptr,
18 String::size_type* regexpStart = nullptr,
19 String::size_type* regexpEnd = nullptr,
20 String::size_type* suffixStart = nullptr);
21 static Filter* Create(const String& text);
22
23 const String GetSelector() const
24 {
25 return mSelector;
26 }
27
28 String GetSelectorDomain() const;
29 };
30
31 #endif
OLDNEW
« no previous file with comments | « compiled/CommentFilter.cpp ('k') | compiled/ElemHideBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld