| Index: src/shared/MsHTMLUtils.h |
| diff --git a/common/include/IeVersion.h b/src/shared/MsHTMLUtils.h |
| similarity index 66% |
| copy from common/include/IeVersion.h |
| copy to src/shared/MsHTMLUtils.h |
| index ea67ed0d5f57284087616224db6f6b1a3f84d825..c335c3d296cbe4b8b0b5d575e1c2d22219152c2e 100644 |
| --- a/common/include/IeVersion.h |
| +++ b/src/shared/MsHTMLUtils.h |
| @@ -1,32 +1,37 @@ |
| -/* |
| - * This file is part of Adblock Plus <https://adblockplus.org/>, |
| - * Copyright (C) 2006-2015 Eyeo GmbH |
| - * |
| - * Adblock Plus is free software: you can redistribute it and/or modify |
| - * it under the terms of the GNU General Public License version 3 as |
| - * published by the Free Software Foundation. |
| - * |
| - * Adblock Plus is distributed in the hope that it will be useful, |
| - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| - * GNU General Public License for more details. |
| - * |
| - * You should have received a copy of the GNU General Public License |
| - * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| - */ |
| - |
| -#ifndef IE_VERSION_H |
| -#define IE_VERSION_H |
| - |
| -#include <string> |
| - |
| -namespace AdblockPlus |
| -{ |
| - namespace IE |
| - { |
| - std::wstring InstalledVersionString(); |
| - int InstalledMajorVersion(); |
| - } |
| -} |
| - |
| -#endif |
| +/* |
| + * This file is part of Adblock Plus <https://adblockplus.org/>, |
| + * Copyright (C) 2006-2015 Eyeo GmbH |
| + * |
| + * Adblock Plus is free software: you can redistribute it and/or modify |
| + * it under the terms of the GNU General Public License version 3 as |
| + * published by the Free Software Foundation. |
| + * |
| + * Adblock Plus is distributed in the hope that it will be useful, |
| + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| + * GNU General Public License for more details. |
| + * |
| + * You should have received a copy of the GNU General Public License |
| + * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| + */ |
| + |
| +#ifndef MS_HTML_UTILS_H |
| +#define MS_HTML_UTILS_H |
| + |
| +#include <string> |
| +#include <MsHTML.h> |
| +#include <atlbase.h> |
| + |
| +struct GetHtmlElementAttributeResult |
| +{ |
| + GetHtmlElementAttributeResult() : isAttributeFound(false) |
| + { |
| + } |
| + std::wstring attributeValue; |
| + bool isAttributeFound; |
| +}; |
| + |
| +GetHtmlElementAttributeResult GetHtmlElementAttribute(IHTMLElement& htmlElement, |
| + const ATL::CComBSTR& attributeName); |
| + |
| +#endif |