Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Unified Diff: public/web/WebIconURL.h

Issue 196743002: Parse the link element's size attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: public/web/WebIconURL.h
diff --git a/public/web/WebIconURL.h b/public/web/WebIconURL.h
index 429c5c36bee52d6d9a73759931ed2c8939ca5722..98450d97565453faca6feb563a0367c52b4cb9df 100644
--- a/public/web/WebIconURL.h
+++ b/public/web/WebIconURL.h
@@ -34,7 +34,9 @@
#if BLINK_IMPLEMENTATION
#include "core/dom/IconURL.h"
#endif
-#include "../platform/WebURL.h"
+#include "public/platform/WebSize.h"
+#include "public/platform/WebURL.h"
+#include "public/platform/WebVector.h"
namespace blink {
@@ -68,10 +70,16 @@ public:
return m_iconURL;
}
+ const WebVector<WebSize>& sizes() const
+ {
+ return m_sizes;
+ }
+
#if BLINK_IMPLEMENTATION
WebIconURL(const WebCore::IconURL& iconURL)
: m_iconType(static_cast<Type>(iconURL.m_iconType))
, m_iconURL(iconURL.m_iconURL)
+ , m_sizes(iconURL.m_sizes)
{
}
#endif
@@ -79,6 +87,7 @@ public:
private:
Type m_iconType;
WebURL m_iconURL;
+ WebVector<WebSize> m_sizes;
};
}

Powered by Google App Engine
This is Rietveld 408576698