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: Almost complete implementation, missing CSS property filters Created Jan. 20, 2016, 12:04 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);
18 static ElemHideBase* Create(const std::u16string& text);
19
20 const std::u16string GetSelector() const
21 {
22 return selector;
23 }
24
25 const std::u16string GetSelectorDomain() const;
26 };
27
28 #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