diff options
author | Ben Murdoch <benm@google.com> | 2010-06-23 19:56:02 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-06-30 18:32:45 +0100 |
commit | 60950638e3cf833c59b11f87d2cf170bfb8e169b (patch) | |
tree | 73e06142367cf9bc0998afa49713023f47e3a32b /WebCore/html/HTMLMetaElement.cpp | |
parent | 5bde0f53b35681f9195cca182adfbcba8edc47f6 (diff) | |
download | external_webkit-60950638e3cf833c59b11f87d2cf170bfb8e169b.zip external_webkit-60950638e3cf833c59b11f87d2cf170bfb8e169b.tar.gz external_webkit-60950638e3cf833c59b11f87d2cf170bfb8e169b.tar.bz2 |
Detect if we're a webapp from the meta tag and send a message through
to java land if that is the case.
Requires a frameworks/base change.
b/2766917
Change-Id: I6d4034e6316e27c31a36a06063b5968c654fc756
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()) |