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

Side by Side Diff: third_party/npapi/bindings/npfunctions.h

Issue 6102007: Update NPAPI headers to r32 from the upstream npapi-headers repository (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add nptypes.h changes Created 9 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 | « third_party/npapi/bindings/npapi.h ('k') | third_party/npapi/bindings/nptypes.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 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ***** BEGIN LICENSE BLOCK ***** 2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * 4 *
5 * The contents of this file are subject to the Mozilla Public License Version 5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with 6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at 7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/ 8 * http://www.mozilla.org/MPL/
9 * 9 *
10 * Software distributed under the License is distributed on an "AS IS" basis, 10 * Software distributed under the License is distributed on an "AS IS" basis,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 typedef void (* NP_LOADDS NPP_PrintProcPtr)(NPP instance, NPPrint* platf ormPrint); 61 typedef void (* NP_LOADDS NPP_PrintProcPtr)(NPP instance, NPPrint* platf ormPrint);
62 typedef int16_t (* NP_LOADDS NPP_HandleEventProcPtr)(NPP instance, void* ev ent); 62 typedef int16_t (* NP_LOADDS NPP_HandleEventProcPtr)(NPP instance, void* ev ent);
63 typedef void (* NP_LOADDS NPP_URLNotifyProcPtr)(NPP instance, const char * url, NPReason reason, void* notifyData); 63 typedef void (* NP_LOADDS NPP_URLNotifyProcPtr)(NPP instance, const char * url, NPReason reason, void* notifyData);
64 /* Any NPObjects returned to the browser via NPP_GetValue should be retained 64 /* Any NPObjects returned to the browser via NPP_GetValue should be retained
65 by the plugin on the way out. The browser is responsible for releasing. */ 65 by the plugin on the way out. The browser is responsible for releasing. */
66 typedef NPError (* NP_LOADDS NPP_GetValueProcPtr)(NPP instance, NPPVariable variable, void *ret_value); 66 typedef NPError (* NP_LOADDS NPP_GetValueProcPtr)(NPP instance, NPPVariable variable, void *ret_value);
67 typedef NPError (* NP_LOADDS NPP_SetValueProcPtr)(NPP instance, NPNVariable variable, void *value); 67 typedef NPError (* NP_LOADDS NPP_SetValueProcPtr)(NPP instance, NPNVariable variable, void *value);
68 typedef NPBool (* NP_LOADDS NPP_GotFocusPtr)(NPP instance, NPFocusDirectio n direction); 68 typedef NPBool (* NP_LOADDS NPP_GotFocusPtr)(NPP instance, NPFocusDirectio n direction);
69 typedef void (* NP_LOADDS NPP_LostFocusPtr)(NPP instance); 69 typedef void (* NP_LOADDS NPP_LostFocusPtr)(NPP instance);
70 typedef void (* NP_LOADDS NPP_URLRedirectNotifyPtr)(NPP instance, const char* url, int32_t status, void* notifyData); 70 typedef void (* NP_LOADDS NPP_URLRedirectNotifyPtr)(NPP instance, const char* url, int32_t status, void* notifyData);
71 typedef NPError (* NP_LOADDS NPP_ClearSiteDataPtr)(const char* site, uint64 _t flags, uint64_t maxAge);
72 typedef char** (* NP_LOADDS NPP_GetSitesWithDataPtr)(void);
71 73
72 typedef NPError (*NPN_GetValueProcPtr)(NPP instance, NPNVariable variable, void *ret_value); 74 typedef NPError (*NPN_GetValueProcPtr)(NPP instance, NPNVariable variable, void *ret_value);
73 typedef NPError (*NPN_SetValueProcPtr)(NPP instance, NPPVariable variable, void *value); 75 typedef NPError (*NPN_SetValueProcPtr)(NPP instance, NPPVariable variable, void *value);
74 typedef NPError (*NPN_GetURLNotifyProcPtr)(NPP instance, const char* url, c onst char* window, void* notifyData); 76 typedef NPError (*NPN_GetURLNotifyProcPtr)(NPP instance, const char* url, c onst char* window, void* notifyData);
75 typedef NPError (*NPN_PostURLNotifyProcPtr)(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file, void* notifyData ); 77 typedef NPError (*NPN_PostURLNotifyProcPtr)(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file, void* notifyData );
76 typedef NPError (*NPN_GetURLProcPtr)(NPP instance, const char* url, const c har* window); 78 typedef NPError (*NPN_GetURLProcPtr)(NPP instance, const char* url, const c har* window);
77 typedef NPError (*NPN_PostURLProcPtr)(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file); 79 typedef NPError (*NPN_PostURLProcPtr)(NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file);
78 typedef NPError (*NPN_RequestReadProcPtr)(NPStream* stream, NPByteRange* ra ngeList); 80 typedef NPError (*NPN_RequestReadProcPtr)(NPStream* stream, NPByteRange* ra ngeList);
79 typedef NPError (*NPN_NewStreamProcPtr)(NPP instance, NPMIMEType type, cons t char* window, NPStream** stream); 81 typedef NPError (*NPN_NewStreamProcPtr)(NPP instance, NPMIMEType type, cons t char* window, NPStream** stream);
80 typedef int32_t (*NPN_WriteProcPtr)(NPP instance, NPStream* stream, int32_t len, void* buffer); 82 typedef int32_t (*NPN_WriteProcPtr)(NPP instance, NPStream* stream, int32_t len, void* buffer);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 NPP_WriteProcPtr write; 142 NPP_WriteProcPtr write;
141 NPP_PrintProcPtr print; 143 NPP_PrintProcPtr print;
142 NPP_HandleEventProcPtr event; 144 NPP_HandleEventProcPtr event;
143 NPP_URLNotifyProcPtr urlnotify; 145 NPP_URLNotifyProcPtr urlnotify;
144 void* javaClass; 146 void* javaClass;
145 NPP_GetValueProcPtr getvalue; 147 NPP_GetValueProcPtr getvalue;
146 NPP_SetValueProcPtr setvalue; 148 NPP_SetValueProcPtr setvalue;
147 NPP_GotFocusPtr gotfocus; 149 NPP_GotFocusPtr gotfocus;
148 NPP_LostFocusPtr lostfocus; 150 NPP_LostFocusPtr lostfocus;
149 NPP_URLRedirectNotifyPtr urlredirectnotify; 151 NPP_URLRedirectNotifyPtr urlredirectnotify;
152 NPP_ClearSiteDataPtr clearsitedata;
153 NPP_GetSitesWithDataPtr getsiteswithdata;
150 } NPPluginFuncs; 154 } NPPluginFuncs;
151 155
152 typedef struct _NPNetscapeFuncs { 156 typedef struct _NPNetscapeFuncs {
153 uint16_t size; 157 uint16_t size;
154 uint16_t version; 158 uint16_t version;
155 NPN_GetURLProcPtr geturl; 159 NPN_GetURLProcPtr geturl;
156 NPN_PostURLProcPtr posturl; 160 NPN_PostURLProcPtr posturl;
157 NPN_RequestReadProcPtr requestread; 161 NPN_RequestReadProcPtr requestread;
158 NPN_NewStreamProcPtr newstream; 162 NPN_NewStreamProcPtr newstream;
159 NPN_WriteProcPtr write; 163 NPN_WriteProcPtr write;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 Handle typeStrings; /* STR# formated handle, allocated by plug-in */ 232 Handle typeStrings; /* STR# formated handle, allocated by plug-in */
229 Handle infoStrings; /* STR# formated handle, allocated by plug-in */ 233 Handle infoStrings; /* STR# formated handle, allocated by plug-in */
230 } BPSupportedMIMETypes; 234 } BPSupportedMIMETypes;
231 OSErr BP_GetSupportedMIMETypes(BPSupportedMIMETypes *mimeInfo, UInt32 flags); 235 OSErr BP_GetSupportedMIMETypes(BPSupportedMIMETypes *mimeInfo, UInt32 flags);
232 #define NP_GETMIMEDESCRIPTION_NAME "NP_GetMIMEDescription" 236 #define NP_GETMIMEDESCRIPTION_NAME "NP_GetMIMEDescription"
233 typedef const char* (*NP_GetMIMEDescriptionProcPtr)(void); 237 typedef const char* (*NP_GetMIMEDescriptionProcPtr)(void);
234 typedef OSErr (*BP_GetSupportedMIMETypesProcPtr)(BPSupportedMIMETypes*, UInt32); 238 typedef OSErr (*BP_GetSupportedMIMETypesProcPtr)(BPSupportedMIMETypes*, UInt32);
235 #endif 239 #endif
236 240
237 #endif /* npfunctions_h_ */ 241 #endif /* npfunctions_h_ */
OLDNEW
« no previous file with comments | « third_party/npapi/bindings/npapi.h ('k') | third_party/npapi/bindings/nptypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698