diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-06 04:38:55 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-06 04:38:55 +0000 |
commit | be4f188066196d7bd0a4a7a62254bb603e566f74 (patch) | |
tree | a493671ea3e09fec3d20c86a0e452d509e7c9954 /gpu/gpu_plugin | |
parent | ee3cd175f8592b2b1f2ccd14b071d56ca733a5c6 (diff) | |
download | chromium_src-be4f188066196d7bd0a4a7a62254bb603e566f74.zip chromium_src-be4f188066196d7bd0a4a7a62254bb603e566f74.tar.gz chromium_src-be4f188066196d7bd0a4a7a62254bb603e566f74.tar.bz2 |
linux: implement gpu plugin
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35509
Review URL: http://codereview.chromium.org/500132
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gpu_plugin')
-rw-r--r-- | gpu/gpu_plugin/gpu_plugin.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gpu/gpu_plugin/gpu_plugin.cc b/gpu/gpu_plugin/gpu_plugin.cc index 10df734..dc69e61 100644 --- a/gpu/gpu_plugin/gpu_plugin.cc +++ b/gpu/gpu_plugin/gpu_plugin.cc @@ -38,8 +38,13 @@ int16 NPP_HandleEvent(NPP instance, void* event) { NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) { if (!instance) return NPERR_INVALID_INSTANCE_ERROR; - - return NPERR_GENERIC_ERROR; + switch (variable) { + case NPPVpluginNeedsXEmbed: + *static_cast<NPBool *>(value) = 1; + return NPERR_NO_ERROR; + default: + return NPERR_INVALID_PARAM; + } } NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) { |