summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2009-08-04 17:50:26 -0700
committerGrace Kloba <klobag@google.com>2009-08-05 10:04:35 -0700
commit0a2bed53555947aea37912d694f9c7c376490808 (patch)
tree2158bd03d8a4210f6c31df9a934eda22d3cfee28 /WebCore
parentf1c0bbb9bf698154c206e842f94b72d277a96094 (diff)
downloadexternal_webkit-0a2bed53555947aea37912d694f9c7c376490808.zip
external_webkit-0a2bed53555947aea37912d694f9c7c376490808.tar.gz
external_webkit-0a2bed53555947aea37912d694f9c7c376490808.tar.bz2
Add SystemInterface to the android_npapi so that we can expose system related
properties. Currently it only has getApplicationDataDirectory.
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/plugins/android/PluginClient.h1
-rw-r--r--WebCore/plugins/android/PluginViewAndroid.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/plugins/android/PluginClient.h b/WebCore/plugins/android/PluginClient.h
index 5dc300c..f858eb8 100644
--- a/WebCore/plugins/android/PluginClient.h
+++ b/WebCore/plugins/android/PluginClient.h
@@ -38,6 +38,7 @@ namespace android {
public:
virtual ~PluginClient() {}
virtual Vector<String> getPluginDirectories() = 0;
+ virtual String getPluginSharedDataDirectory() = 0;
};
}
diff --git a/WebCore/plugins/android/PluginViewAndroid.cpp b/WebCore/plugins/android/PluginViewAndroid.cpp
index d88692d..022fa35 100644
--- a/WebCore/plugins/android/PluginViewAndroid.cpp
+++ b/WebCore/plugins/android/PluginViewAndroid.cpp
@@ -89,6 +89,7 @@ extern void ANPPathInterfaceV0_Init(ANPInterface* value);
extern void ANPSurfaceInterfaceV0_Init(ANPInterface* value);
extern void ANPTypefaceInterfaceV0_Init(ANPInterface* value);
extern void ANPWindowInterfaceV0_Init(ANPInterface* value);
+extern void ANPSystemInterfaceV0_Init(ANPInterface* value);
struct VarProcPair {
int enumValue;
@@ -110,6 +111,7 @@ static const VarProcPair gVarProcs[] = {
{ VARPROCLINE(SurfaceInterfaceV0) },
{ VARPROCLINE(TypefaceInterfaceV0) },
{ VARPROCLINE(WindowInterfaceV0) },
+ { VARPROCLINE(SystemInterfaceV0) },
};
/* return true if var was an interface request (error will be set accordingly)