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: How with CSS property filters Created Jan. 20, 2016, 1:12 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 #include <string>
6
7 #include "ActiveFilter.h"
8
9 class ElemHideBase : public ActiveFilter
10 {
11 private:
12 std::u16string selector;
13 public:
14 ElemHideBase(const std::u16string& text, const std::u16string& domains,
15 const std::u16string& selector);
16 static Type Parse(const std::u16string& text, size_t* domainsEnd,
17 size_t* selectorStart, size_t* prefixEnd = nullptr,
18 size_t* regexpStart = nullptr, size_t* regexpEnd = nullptr,
19 size_t* suffixStart = nullptr);
20 static Filter* Create(const std::u16string& text);
21
22 const std::u16string GetSelector() const
23 {
24 return selector;
25 }
26
27 const std::u16string GetSelectorDomain() const;
28 };
29
30 #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