| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |