diff options
author | Andrei Popescu <andreip@google.com> | 2010-02-11 15:33:07 +0000 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2010-02-12 18:36:53 +0000 |
commit | 9fed475722a5da7e9fac4d78715b17ca5ed29335 (patch) | |
tree | 2da84405b1c154330bc4c969ea42b0b51dab897f /WebCore/page/Navigator.h | |
parent | 3e3cbd198330e9c5e4fb4cb181c53c6f157f99ab (diff) | |
download | external_webkit-9fed475722a5da7e9fac4d78715b17ca5ed29335.zip external_webkit-9fed475722a5da7e9fac4d78715b17ca5ed29335.tar.gz external_webkit-9fed475722a5da7e9fac4d78715b17ca5ed29335.tar.bz2 |
Implement navigator.isApplicationInstalled() API
This CL contains the wiring between the API and the Java side.
Fix b: 2371005
Diffstat (limited to 'WebCore/page/Navigator.h')
-rw-r--r-- | WebCore/page/Navigator.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/page/Navigator.h b/WebCore/page/Navigator.h index 83ed83f..c6acfd5 100644 --- a/WebCore/page/Navigator.h +++ b/WebCore/page/Navigator.h @@ -21,6 +21,7 @@ #define Navigator_h #include "NavigatorBase.h" +#include "PlatformString.h" #include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> #include <wtf/RefPtr.h> @@ -32,7 +33,6 @@ namespace WebCore { class MimeTypeArray; class PluginData; class PluginArray; - class String; #if PLATFORM(ANDROID) class ApplicationInstalledCallback; class Connection; @@ -67,7 +67,8 @@ namespace WebCore { #endif #if PLATFORM(ANDROID) && ENABLE(APPLICATION_INSTALLED) - void isApplicationInstalled(const String& name, PassRefPtr<ApplicationInstalledCallback> callback); + bool isApplicationInstalled(const String& name, PassRefPtr<ApplicationInstalledCallback> callback); + void onPackageResult(); #endif #if ENABLE(DOM_STORAGE) @@ -87,6 +88,11 @@ namespace WebCore { #if PLATFORM(ANDROID) mutable RefPtr<Connection> m_connection; #endif + +#if PLATFORM(ANDROID) && ENABLE(APPLICATION_INSTALLED) + RefPtr<ApplicationInstalledCallback> m_applicationInstalledCallback; + String m_applicationNameQuery; +#endif }; } |