LEFT | RIGHT |
1 #pragma once | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-2015 Eyeo GmbH |
| 4 * |
| 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 |
| 7 * published by the Free Software Foundation. |
| 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 16 */ |
| 17 |
| 18 #ifndef MS_HTML_UTILS_H |
| 19 #define MS_HTML_UTILS_H |
| 20 |
2 #include <string> | 21 #include <string> |
3 #include <MsHTML.h> | 22 #include <MsHTML.h> |
4 #include <atlbase.h> | 23 #include <atlbase.h> |
5 | 24 |
6 struct GetHtmlElementAttributeResult | 25 struct GetHtmlElementAttributeResult |
7 { | 26 { |
8 GetHtmlElementAttributeResult() : isAttributeFound(false) | 27 GetHtmlElementAttributeResult() : isAttributeFound(false) |
9 { | 28 { |
10 } | 29 } |
11 std::wstring attributeValue; | 30 std::wstring attributeValue; |
12 bool isAttributeFound; | 31 bool isAttributeFound; |
13 }; | 32 }; |
14 | 33 |
15 GetHtmlElementAttributeResult GetHtmlElementAttribute(IHTMLElement& htmlElement, | 34 GetHtmlElementAttributeResult GetHtmlElementAttribute(IHTMLElement& htmlElement, |
16 const ATL::CComBSTR& attributeName); | 35 const ATL::CComBSTR& attributeName); |
| 36 |
| 37 #endif |
LEFT | RIGHT |