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

Side by Side Diff: compiled/filter/ActiveFilter.h

Issue 29383816: Issue 4989 - [emscripten] Move filter class files into a separate directory (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 14, 2017, 3:34 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/bindings.cpp ('k') | compiled/filter/ActiveFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #pragma once 1 #pragma once
2 2
3 #include <emscripten.h> 3 #include <emscripten.h>
4 4
5 #include "Filter.h" 5 #include "Filter.h"
6 #include "StringMap.h" 6 #include "../StringMap.h"
7 7
8 #define FILTER_PROPERTY(type, name, getter, setter) \ 8 #define FILTER_PROPERTY(type, name, getter, setter) \
9 private:\ 9 private:\
10 type name;\ 10 type name;\
11 public:\ 11 public:\
12 type EMSCRIPTEN_KEEPALIVE getter() const\ 12 type EMSCRIPTEN_KEEPALIVE getter() const\
13 {\ 13 {\
14 return name;\ 14 return name;\
15 }\ 15 }\
16 void EMSCRIPTEN_KEEPALIVE setter(type value)\ 16 void EMSCRIPTEN_KEEPALIVE setter(type value)\
(...skipping 27 matching lines...) Expand all
44 explicit ActiveFilter(Type type, const String& text, bool ignoreTrailingDot); 44 explicit ActiveFilter(Type type, const String& text, bool ignoreTrailingDot);
45 FILTER_PROPERTY(bool, mDisabled, GetDisabled, SetDisabled); 45 FILTER_PROPERTY(bool, mDisabled, GetDisabled, SetDisabled);
46 FILTER_PROPERTY(unsigned int, mHitCount, GetHitCount, SetHitCount); 46 FILTER_PROPERTY(unsigned int, mHitCount, GetHitCount, SetHitCount);
47 FILTER_PROPERTY(unsigned int, mLastHit, GetLastHit, SetLastHit); 47 FILTER_PROPERTY(unsigned int, mLastHit, GetLastHit, SetLastHit);
48 bool EMSCRIPTEN_KEEPALIVE IsActiveOnDomain(DependentString& docDomain, 48 bool EMSCRIPTEN_KEEPALIVE IsActiveOnDomain(DependentString& docDomain,
49 const String& sitekey) const; 49 const String& sitekey) const;
50 bool EMSCRIPTEN_KEEPALIVE IsActiveOnlyOnDomain(DependentString& docDomain) con st; 50 bool EMSCRIPTEN_KEEPALIVE IsActiveOnlyOnDomain(DependentString& docDomain) con st;
51 bool EMSCRIPTEN_KEEPALIVE IsGeneric() const; 51 bool EMSCRIPTEN_KEEPALIVE IsGeneric() const;
52 OwnedString EMSCRIPTEN_KEEPALIVE Serialize() const; 52 OwnedString EMSCRIPTEN_KEEPALIVE Serialize() const;
53 }; 53 };
OLDNEW
« no previous file with comments | « compiled/bindings.cpp ('k') | compiled/filter/ActiveFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld