send(Messages::WebPageProxy::DidGetWebAppIconURL(iconURL, callbackID));
}
+
+void WebPage::getWebAppIconURLs(uint64_t callbackID)
+{
+ RefPtr<WebCore::NodeList> nodeList = mainFrame()->document()->getElementsByTagName("link");
+ Vector<std::pair<String, String> > iconURLs;
+
+ for (unsigned i = 0; i < nodeList->length(); i++) {
+ WebCore::HTMLLinkElement* linkElement = static_cast<WebCore::HTMLLinkElement*>(nodeList->item(i));
+ if (linkElement->rel() == "apple-touch-icon" || linkElement->rel() == "apple-touch-icon-precomposed")
+ iconURLs.append(pair<String, String>(linkElement->href().string(), linkElement->iconSizes()));
+ }
+
+ send(Messages::WebPageProxy::DidGetWebAppIconURLs(iconURLs, callbackID));
+}
#endif
void WebPage::setMediaVolume(float volume)