diff options
Diffstat (limited to 'WebCore/html/HTMLMetaElement.cpp')
-rw-r--r-- | WebCore/html/HTMLMetaElement.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/WebCore/html/HTMLMetaElement.cpp b/WebCore/html/HTMLMetaElement.cpp index b4610e0..e6ddc0c 100644 --- a/WebCore/html/HTMLMetaElement.cpp +++ b/WebCore/html/HTMLMetaElement.cpp @@ -32,6 +32,10 @@ #include "WebViewCore.h" #endif +#if ENABLE(ANDROID_INSTALLABLE_WEB_APPS) +#include "ChromeClient.h" +#endif + namespace WebCore { using namespace HTMLNames; @@ -98,6 +102,16 @@ void HTMLMetaElement::process() document()->processViewport(m_content); #endif +#if ENABLE(ANDROID_INSTALLABLE_WEB_APPS) + // If this web site is informing us it is possible for it to be installed, inform the chrome + // client so it can offer this to the user. + if (equalIgnoringCase(name(), "fullscreen-web-app-capable") + && equalIgnoringCase(m_content, "yes")) { + if (Page* page = document()->page()) + page->chrome()->client()->webAppCanBeInstalled(); + } +#endif + // Get the document to process the tag, but only if we're actually part of DOM tree (changing a meta tag while // it's not in the tree shouldn't have any effect on the document) if (!m_equiv.isNull()) |