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

Side by Side Diff: webkit/default_plugin/plugin_main.h

Issue 1662: Replace "WINAPI" with platform-independent "API_CALL". (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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 | « webkit/default_plugin/default_plugin.cc ('k') | webkit/default_plugin/plugin_main.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <algorithm> 5 #include <algorithm>
6 #include <string> 6 #include <string>
7 7
8 #include "third_party/npapi/bindings/npapi.h" 8 #include "third_party/npapi/bindings/npapi.h"
9 #include "webkit/glue/plugins/nphostapi.h" 9 #include "webkit/glue/plugins/nphostapi.h"
10 10
11 namespace default_plugin { 11 namespace default_plugin {
12 12
13 extern NPNetscapeFuncs* g_browser; 13 extern NPNetscapeFuncs* g_browser;
14 14
15 // Standard NPAPI functions. 15 // Standard NPAPI functions.
16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, 16 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
17 char* argn[], char* argv[], NPSavedData* saved); 17 char* argn[], char* argv[], NPSavedData* saved);
18 NPError NPP_Destroy(NPP instance, NPSavedData** save); 18 NPError NPP_Destroy(NPP instance, NPSavedData** save);
19 NPError NPP_SetWindow(NPP instance, NPWindow* window); 19 NPError NPP_SetWindow(NPP instance, NPWindow* window);
20 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, 20 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
21 NPBool seekable, uint16* stype); 21 NPBool seekable, uint16* stype);
22 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason); 22 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
23 int32 NPP_WriteReady(NPP instance, NPStream* stream); 23 int32 NPP_WriteReady(NPP instance, NPStream* stream);
24 int32 NPP_Write(NPP instance, NPStream* stream, int32 offset, int32 len, 24 int32 NPP_Write(NPP instance, NPStream* stream, int32 offset, int32 len,
25 void* buffer); 25 void* buffer);
26 void NPP_URLNotify(NPP instance, const char* url, NPReason reason, 26 void NPP_URLNotify(NPP instance, const char* url, NPReason reason,
27 void* notifyData); 27 void* notifyData);
28 int16 NPP_HandleEvent(NPP instance, void* event); 28 int16 NPP_HandleEvent(NPP instance, void* event);
29 29
30 NPError WINAPI NP_GetEntryPoints(NPPluginFuncs* funcs); 30 NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* funcs);
31 NPError WINAPI NP_Initialize(NPNetscapeFuncs* funcs); 31 NPError API_CALL NP_Initialize(NPNetscapeFuncs* funcs);
32 NPError WINAPI NP_Shutdown(void); 32 NPError API_CALL NP_Shutdown(void);
33 33
34 } // default_plugin 34 } // default_plugin
35
OLDNEW
« no previous file with comments | « webkit/default_plugin/default_plugin.cc ('k') | webkit/default_plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698