Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: gpu/gpu_plugin/gpu_plugin.cc

Issue 525022: Revert 35509 - linux: implement gpu plugin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/gpu.gyp ('k') | third_party/glew/src/glew.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/gpu_plugin/gpu_plugin.h" 5 #include "gpu/gpu_plugin/gpu_plugin.h"
6 #include "webkit/glue/plugins/nphostapi.h" 6 #include "webkit/glue/plugins/nphostapi.h"
7 7
8 namespace gpu_plugin { 8 namespace gpu_plugin {
9 9
10 // Definitions of NPAPI plugin entry points. 10 // Definitions of NPAPI plugin entry points.
(...skipping 20 matching lines...) Expand all
31 return NPERR_NO_ERROR; 31 return NPERR_NO_ERROR;
32 } 32 }
33 33
34 int16 NPP_HandleEvent(NPP instance, void* event) { 34 int16 NPP_HandleEvent(NPP instance, void* event) {
35 return 0; 35 return 0;
36 } 36 }
37 37
38 NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) { 38 NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) {
39 if (!instance) 39 if (!instance)
40 return NPERR_INVALID_INSTANCE_ERROR; 40 return NPERR_INVALID_INSTANCE_ERROR;
41 switch (variable) { 41
42 case NPPVpluginNeedsXEmbed: 42 return NPERR_GENERIC_ERROR;
43 *static_cast<NPBool *>(value) = 1;
44 return NPERR_NO_ERROR;
45 default:
46 return NPERR_INVALID_PARAM;
47 }
48 } 43 }
49 44
50 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) { 45 NPError NPP_SetValue(NPP instance, NPNVariable variable, void *value) {
51 return NPERR_NO_ERROR; 46 return NPERR_NO_ERROR;
52 } 47 }
53 } 48 }
54 49
55 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs) { 50 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs) {
56 funcs->newp = NPP_New; 51 funcs->newp = NPP_New;
57 funcs->destroy = NPP_Destroy; 52 funcs->destroy = NPP_Destroy;
(...skipping 17 matching lines...) Expand all
75 NP_GetEntryPoints(plugin_funcs); 70 NP_GetEntryPoints(plugin_funcs);
76 #endif 71 #endif
77 72
78 return NPERR_NO_ERROR; 73 return NPERR_NO_ERROR;
79 } 74 }
80 75
81 NPError API_CALL NP_Shutdown() { 76 NPError API_CALL NP_Shutdown() {
82 return NPERR_NO_ERROR; 77 return NPERR_NO_ERROR;
83 } 78 }
84 } // namespace gpu_plugin 79 } // namespace gpu_plugin
OLDNEW
« no previous file with comments | « gpu/gpu.gyp ('k') | third_party/glew/src/glew.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698