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

Delta Between Two Patch Sets: src/plugin/AdblockPlusDomTraverser.h

Issue 6567422169448448: Issue 119 - Switch to injecting CSS for element hiding (Closed)
Left Patch Set: rebase Created Feb. 25, 2016, 5:38 p.m.
Right Patch Set: rename OnQuit Created Sept. 30, 2016, 3:25 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/AdblockPlusClient.cpp ('k') | src/plugin/AdblockPlusDomTraverser.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 35
36 void Init() { CPluginDomTraverserCacheBase::Init(); m_isHidden = false; } 36 void Init() { CPluginDomTraverserCacheBase::Init(); m_isHidden = false; }
37 }; 37 };
38 38
39 39
40 class CPluginDomTraverser : public CPluginDomTraverserBase<CPluginDomTraverserCa che> 40 class CPluginDomTraverser : public CPluginDomTraverserBase<CPluginDomTraverserCa che>
41 { 41 {
42 42
43 public: 43 public:
44 44
45 CPluginDomTraverser(CPluginTab* tab); 45 explicit CPluginDomTraverser(const PluginFilterPtr& pluginFilter);
46 46
47 protected: 47 protected:
48 48
49 bool OnIFrame(IHTMLElement* pEl, const std::wstring& url, const std::wstring& indent); 49 bool OnIFrame(IHTMLElement* pEl, const std::wstring& url, const std::wstring& indent);
50 bool OnElement(IHTMLElement* pEl, const std::wstring& tag, CPluginDomTraverser Cache* cache, bool isDebug, const std::wstring& indent); 50 bool OnElement(IHTMLElement* pEl, const std::wstring& tag, CPluginDomTraverser Cache* cache, bool isDebug, const std::wstring& indent);
51 51
52 bool IsEnabled(); 52 bool IsEnabled();
53 53
54 void HideElement(IHTMLElement* pEl, const std::wstring& type, const std::wstri ng& url, bool isDebug, const std::wstring& indent); 54 void HideElement(IHTMLElement* pEl, const std::wstring& type, const std::wstri ng& url, bool isDebug, const std::wstring& indent);
55 55
56 }; 56 };
57 57
58 58
59 #endif // _ADBLOCK_PLUS_DOM_TRAVERSER_H_ 59 #endif // _ADBLOCK_PLUS_DOM_TRAVERSER_H_
LEFTRIGHT

Powered by Google App Engine
This is Rietveld