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

Unified Diff: compiled/ActiveFilter.h

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Fixed some bugs and exposed/tested more properties Created Jan. 15, 2016, 3:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compile ('k') | compiled/ActiveFilter.cpp » ('j') | compiled/ActiveFilter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/ActiveFilter.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/compiled/ActiveFilter.h
@@ -0,0 +1,18 @@
+#ifndef ADBLOCKPLUS_ACTIVEFILTER_H
Felix Dahlke 2016/01/15 17:00:35 Nit: Words in camel cased names should be separate
Wladimir Palant 2016/01/15 20:36:15 Done.
+#define ADBLOCKPLUS_ACTIVEFILTER_H
+
+#include <string>
+
+#include "tools.h"
+#include "Filter.h"
+
+class ActiveFilter : public Filter
+{
+public:
+ ActiveFilter(const std::u16string& text);
Felix Dahlke 2016/01/15 17:00:35 Please use the explicit keyword for single paramet
Felix Dahlke 2016/01/15 17:00:35 I'd prefer to go for std::wstring, we also use it
Wladimir Palant 2016/01/15 20:36:15 Done.
Wladimir Palant 2016/01/15 20:36:15 Done though merely as a side-effect of using embin
+ FILTER_PROPERTY(bool, disabled);
+ FILTER_PROPERTY(unsigned int, hitCount);
+ FILTER_PROPERTY(unsigned int, lastHit);
+};
+
+#endif
« no previous file with comments | « compile ('k') | compiled/ActiveFilter.cpp » ('j') | compiled/ActiveFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld