diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-05 03:07:07 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-05 03:07:07 +0000 |
commit | 4049046a39cb364577a1ac8a2aac47a86afc5b7b (patch) | |
tree | e670e88f432ee925b7b89994eff756052739af60 /gpu/gpu_plugin | |
parent | 07a174f4c159a347c6d7e10a5f3da2d5966c92d1 (diff) | |
download | chromium_src-4049046a39cb364577a1ac8a2aac47a86afc5b7b.zip chromium_src-4049046a39cb364577a1ac8a2aac47a86afc5b7b.tar.gz chromium_src-4049046a39cb364577a1ac8a2aac47a86afc5b7b.tar.bz2 |
linux: implement gpu plugin
Review URL: http://codereview.chromium.org/500132
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35509 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) { |