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

Side by Side Diff: src/plugin/PluginFilter.h

Issue 5070706781978624: Issue #276 - introduce class BSTR_Argument (Closed)
Patch Set: small correction over patch set 2 Created July 29, 2014, 7:22 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 | « src/plugin/PluginDomTraverserBase.h ('k') | src/plugin/PluginFilter.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 #ifndef _PLUGIN_FILTER_H_ 1 #ifndef _PLUGIN_FILTER_H_
2 #define _PLUGIN_FILTER_H_ 2 #define _PLUGIN_FILTER_H_
3 3
4 4
5 #include "PluginTypedef.h" 5 #include "PluginTypedef.h"
6 #include <memory> 6 #include <memory>
7 7
8 enum CFilterElementHideAttrPos 8 enum CFilterElementHideAttrPos
9 { 9 {
10 POS_NONE = 0, STARTING, ENDING, ANYWHERE, EXACT 10 POS_NONE = 0, STARTING, ENDING, ANYWHERE, EXACT
11 }; 11 };
12 12
13 enum CFilterElementHideAttrType 13 enum CFilterElementHideAttrType
14 { 14 {
15 TYPE_NONE = 0, STYLE, ID, CLASS 15 TYPE_NONE = 0, STYLE, ID, CLASS
16 }; 16 };
17 // ============================================================================ 17 // ============================================================================
18 // CFilterElementHideAttrSelector 18 // CFilterElementHideAttrSelector
19 // ============================================================================ 19 // ============================================================================
20 20
21 class CFilterElementHideAttrSelector 21 class CFilterElementHideAttrSelector
22 { 22 {
23 23
24 public: 24 public:
25 25
26 CFilterElementHideAttrPos m_pos; 26 CFilterElementHideAttrPos m_pos;
27 27
28 CFilterElementHideAttrType m_type; 28 CFilterElementHideAttrType m_type;
29 29
30 CComBSTR m_bstrAttr; 30 CString m_attr;
31 CString m_value; 31 CString m_value;
32 32
33 CFilterElementHideAttrSelector(); 33 CFilterElementHideAttrSelector();
34 CFilterElementHideAttrSelector(const CFilterElementHideAttrSelector& filter); 34 CFilterElementHideAttrSelector(const CFilterElementHideAttrSelector& filter);
35 ~CFilterElementHideAttrSelector(); 35 ~CFilterElementHideAttrSelector();
36 }; 36 };
37 37
38 38
39 39
40 // ============================================================================ 40 // ============================================================================
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent) const; 165 bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& dom ain, const CString& indent) const;
166 166
167 167
168 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false) const; 168 bool ShouldBlock(CString src, int contentType, const CString& domain, bool add Debug=false) const;
169 169
170 HANDLE hideFiltersLoadedEvent; 170 HANDLE hideFiltersLoadedEvent;
171 }; 171 };
172 172
173 173
174 #endif // _PLUGIN_FILTER_H_ 174 #endif // _PLUGIN_FILTER_H_
OLDNEW
« no previous file with comments | « src/plugin/PluginDomTraverserBase.h ('k') | src/plugin/PluginFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld