summaryrefslogtreecommitdiffstats
path: root/webkit/plugins
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 06:49:00 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 06:49:00 +0000
commitddd61db54184ca4491521f8ce8f4e50a4ca5025f (patch)
tree5b39af5a2fc0910a9c33a7595432189ea716a9de /webkit/plugins
parentd4067421c536731f986013afb0551dc0bcc164c9 (diff)
downloadchromium_src-ddd61db54184ca4491521f8ce8f4e50a4ca5025f.zip
chromium_src-ddd61db54184ca4491521f8ce8f4e50a4ca5025f.tar.gz
chromium_src-ddd61db54184ca4491521f8ce8f4e50a4ca5025f.tar.bz2
Draft of a PPAPI interface for ArrayBuffer.
See the TypedArray spec for reference: http://www.khronos.org/registry/typedarray/specs/latest/ Things in the spec that I'm omiting: - slice (Having a view of the ArrayBuffer that has a different offset/length) TODO in future CLs: -Implementation for in-process/trusted + tests (almost ready) -NaCl proxy -OOP proxy Later still: - Support for ArrayBufferView and TypedArray based on that. BUG=103435 TEST=N/A Review URL: http://codereview.chromium.org/8502030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r--webkit/plugins/ppapi/message_channel.cc8
-rw-r--r--webkit/plugins/ppapi/npapi_glue.cc1
2 files changed, 5 insertions, 4 deletions
diff --git a/webkit/plugins/ppapi/message_channel.cc b/webkit/plugins/ppapi/message_channel.cc
index 4e9e82883..33b32b7 100644
--- a/webkit/plugins/ppapi/message_channel.cc
+++ b/webkit/plugins/ppapi/message_channel.cc
@@ -85,13 +85,13 @@ bool PPVarToV8Value(PP_Var var, v8::Handle<v8::Value>* result) {
break;
}
case PP_VARTYPE_OBJECT:
- // Objects are not currently supported.
+ case PP_VARTYPE_ARRAY:
+ case PP_VARTYPE_DICTIONARY:
+ case PP_VARTYPE_ARRAY_BUFFER:
+ // These are not currently supported.
NOTIMPLEMENTED();
result->Clear();
return false;
- default:
- result->Clear();
- return false;
}
return true;
}
diff --git a/webkit/plugins/ppapi/npapi_glue.cc b/webkit/plugins/ppapi/npapi_glue.cc
index ecc5a41..7f166cd 100644
--- a/webkit/plugins/ppapi/npapi_glue.cc
+++ b/webkit/plugins/ppapi/npapi_glue.cc
@@ -75,6 +75,7 @@ bool PPVarToNPVariant(PP_Var var, NPVariant* result) {
}
case PP_VARTYPE_ARRAY:
case PP_VARTYPE_DICTIONARY:
+ case PP_VARTYPE_ARRAY_BUFFER:
VOID_TO_NPVARIANT(*result);
break;
}