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

Side by Side Diff: compiled/CSSPropertyFilter.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Minor improvements Created Jan. 20, 2016, 2:41 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/ActiveFilter.cpp ('k') | compiled/CSSPropertyFilter.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_CSS_PROPERTY_FILTER_H
2 #define ADBLOCK_PLUS_CSS_PROPERTY_FILTER_H
3
4 #include <cstddef>
5 #include <string>
6
7 #include "Filter.h"
8 #include "ElemHideBase.h"
9
10 class CSSPropertyFilter: public ElemHideBase
11 {
12 private:
13 std::u16string regexp;
14 std::u16string prefix;
15 std::u16string suffix;
16 public:
17 CSSPropertyFilter(const std::u16string& text, const std::u16string& domains,
18 const std::u16string& selector, const std::u16string& regexpSource,
19 const std::u16string& prefix, const std::u16string& suffix);
20 Type GetType() const;
21 const std::u16string GetRegExpString()
22 {
23 return regexp;
24 }
25 const std::u16string GetSelectorPrefix()
26 {
27 return prefix;
28 }
29 const std::u16string GetSelectorSuffix()
30 {
31 return suffix;
32 }
33 };
34
35 #endif
OLDNEW
« no previous file with comments | « compiled/ActiveFilter.cpp ('k') | compiled/CSSPropertyFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld