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 #ifndef GPU_GPU_PLUGIN_GPU_PLUGIN_H_ | 5 #ifndef GPU_GPU_PLUGIN_GPU_PLUGIN_H_ |
6 #define GPU_GPU_PLUGIN_GPU_PLUGIN_H_ | 6 #define GPU_GPU_PLUGIN_GPU_PLUGIN_H_ |
7 | 7 |
8 #include "third_party/npapi/bindings/npapi.h" | 8 #include "third_party/npapi/bindings/npapi.h" |
9 #include "third_party/npapi/bindings/npruntime.h" | 9 #include "third_party/npapi/bindings/npruntime.h" |
10 | 10 |
11 typedef struct _NPPluginFuncs NPPluginFuncs; | 11 typedef struct _NPPluginFuncs NPPluginFuncs; |
12 typedef struct _NPNetscapeFuncs NPNetscapeFuncs; | 12 typedef struct _NPNetscapeFuncs NPNetscapeFuncs; |
13 | 13 |
14 namespace gpu_plugin { | 14 namespace gpu_plugin { |
15 | 15 |
16 // Declarations of NPAPI plugin entry points. | 16 // Declarations of NPAPI plugin entry points. |
17 | 17 |
18 NPError NP_GetEntryPoints(NPPluginFuncs* funcs); | 18 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs); |
19 | 19 |
20 #if defined(OS_LINUX) | 20 #if defined(OS_LINUX) |
21 NPError NP_Initialize(NPNetscapeFuncs *browser_funcs, | 21 NPError API_CALL NP_Initialize(NPNetscapeFuncs *browser_funcs, |
22 NPPluginFuncs* plugin_funcs); | 22 NPPluginFuncs* plugin_funcs); |
23 #else | 23 #else |
24 NPError NP_Initialize(NPNetscapeFuncs* browser_funcs); | 24 NPError API_CALL NP_Initialize(NPNetscapeFuncs* browser_funcs); |
25 #endif | 25 #endif |
26 | 26 |
27 NPError NP_Shutdown(); | 27 NPError API_CALL NP_Shutdown(); |
28 | 28 |
29 } // namespace gpu_plugin | 29 } // namespace gpu_plugin |
30 | 30 |
31 #endif // GPU_GPU_PLUGIN_GPU_PLUGIN_H_ | 31 #endif // GPU_GPU_PLUGIN_GPU_PLUGIN_H_ |
OLD | NEW |