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

Unified Diff: src/shared/MsHTMLUtils.h

Issue 6505394822184960: Issue 1109 - Support notifications (Closed)
Patch Set: fix obtaining of DPI value of content (NotificationWindow) of NotificationBorderWindow Created Aug. 18, 2015, 9:43 a.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
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>
Eric 2015/08/20 17:57:46 This statement breaks the build in Visual Studio E
+
+struct GetHtmlElementAttributeResult
+{
+ GetHtmlElementAttributeResult() : isAttributeFound(false)
+ {
+ }
+ std::wstring attributeValue;
+ bool isAttributeFound;
+};
+
+GetHtmlElementAttributeResult GetHtmlElementAttribute(IHTMLElement& htmlElement,
+ const ATL::CComBSTR& attributeName);
+
+#endif

Powered by Google App Engine
This is Rietveld