summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 04:27:47 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 04:27:47 +0000
commit9b6db26fcc22a7a4ec0510a93733b2e190d9e649 (patch)
treefff3f2610cab083b3093ab1052cad6202335ff59 /webkit/plugins/ppapi
parentb648e91bd6c911ed26d6c65048c4a597040359ed (diff)
downloadchromium_src-9b6db26fcc22a7a4ec0510a93733b2e190d9e649.zip
chromium_src-9b6db26fcc22a7a4ec0510a93733b2e190d9e649.tar.gz
chromium_src-9b6db26fcc22a7a4ec0510a93733b2e190d9e649.tar.bz2
Create a VarPrivate interface to contain the scripting helper functions of Var.
Currently, the old functions are left in Var. When people have a chance to move to this new API, we can delete them from Var. This also adds new enums for ARRAY and DICTIONARY vars, and makes the var C++ wrapper forward-compatible with them by refcounting any enums that it doesn't know about. Review URL: http://codereview.chromium.org/6823016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi')
-rw-r--r--webkit/plugins/ppapi/npapi_glue.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/npapi_glue.cc b/webkit/plugins/ppapi/npapi_glue.cc
index d235fd0..112c42e 100644
--- a/webkit/plugins/ppapi/npapi_glue.cc
+++ b/webkit/plugins/ppapi/npapi_glue.cc
@@ -64,6 +64,10 @@ bool PPVarToNPVariant(PP_Var var, NPVariant* result) {
*result);
break;
}
+ case PP_VARTYPE_ARRAY:
+ case PP_VARTYPE_DICTIONARY:
+ VOID_TO_NPVARIANT(*result);
+ break;
}
return true;
}