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

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

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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_plugin/gpu_plugin.h ('k') | webkit/glue/plugins/mac_gpu_plugin_container.h » ('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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs) { 113 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs) {
114 funcs->newp = NPP_New; 114 funcs->newp = NPP_New;
115 funcs->destroy = NPP_Destroy; 115 funcs->destroy = NPP_Destroy;
116 funcs->setwindow = NPP_SetWindow; 116 funcs->setwindow = NPP_SetWindow;
117 funcs->event = NPP_HandleEvent; 117 funcs->event = NPP_HandleEvent;
118 funcs->getvalue = NPP_GetValue; 118 funcs->getvalue = NPP_GetValue;
119 funcs->setvalue = NPP_SetValue; 119 funcs->setvalue = NPP_SetValue;
120 return NPERR_NO_ERROR; 120 return NPERR_NO_ERROR;
121 } 121 }
122 122
123 #if defined(OS_LINUX) 123 #if defined(OS_POSIX) && !defined(OS_MACOSX)
124 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs, 124 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs,
125 NPPluginFuncs* plugin_funcs) { 125 NPPluginFuncs* plugin_funcs) {
126 #else 126 #else
127 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs) { 127 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs) {
128 #endif 128 #endif
129 if (!browser_funcs) 129 if (!browser_funcs)
130 return NPERR_INVALID_FUNCTABLE_ERROR; 130 return NPERR_INVALID_FUNCTABLE_ERROR;
131 131
132 #if defined(OS_LINUX) 132 #if defined(OS_POSIX) && !defined(OS_MACOSX)
133 NP_GetEntryPoints(plugin_funcs); 133 NP_GetEntryPoints(plugin_funcs);
134 #endif 134 #endif
135 135
136 return NPERR_NO_ERROR; 136 return NPERR_NO_ERROR;
137 } 137 }
138 138
139 NPError API_CALL NP_Shutdown() { 139 NPError API_CALL NP_Shutdown() {
140 return NPERR_NO_ERROR; 140 return NPERR_NO_ERROR;
141 } 141 }
142 142
143 } // namespace gpu_plugin 143 } // namespace gpu_plugin
OLDNEW
« no previous file with comments | « gpu/gpu_plugin/gpu_plugin.h ('k') | webkit/glue/plugins/mac_gpu_plugin_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698