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

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

Issue 208007: Update NPAPI header file to v24, apply Google modifications (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | webkit/glue/plugins/webplugin_delegate_impl_mac.mm » ('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: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * 3 *
5 * The contents of this file are subject to the Mozilla Public License Version 4 * 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 5 * 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 6 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
9 * 8 *
10 * Software distributed under the License is distributed on an "AS IS" basis, 9 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 18 matching lines...) Expand all
30 * use your version of this file under the terms of the MPL, indicate your 29 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice 30 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete 31 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under 32 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL. 33 * the terms of any one of the MPL, the GPL or the LGPL.
35 * 34 *
36 * ***** END LICENSE BLOCK ***** */ 35 * ***** END LICENSE BLOCK ***** */
37 36
38 37
39 /* 38 /*
40 * npapi.h $Revision: 3.48 $
41 * Netscape client plug-in API spec 39 * Netscape client plug-in API spec
42 */ 40 */
43 41
42
44 #ifndef _NPAPI_H_ 43 #ifndef _NPAPI_H_
45 #define _NPAPI_H_ 44 #define _NPAPI_H_
46 45
47 46
48 // BEGIN GOOGLE MODIFICATIONS 47 // BEGIN GOOGLE MODIFICATIONS
49 48
50 #include "base/basictypes.h" 49 #include "base/basictypes.h"
51 50
52 // END GOOGLE MODIFICATIONS 51 // END GOOGLE MODIFICATIONS
53 52
54 53 #ifdef INCLUDE_JAVA
55 #ifdef __OS2__ 54 #include "jri.h" /* Java Runtime Interface */
56 #pragma pack(1) 55 #else
56 #define jref void *
57 #define JRIEnv void
57 #endif 58 #endif
58 59
59 //#include "prtypes.h" 60 #ifdef _WIN32
60 /* Copied from xp_core.h */ 61 # ifndef XP_WIN
61 /* removed #ifdef for hpux defined in /usr/include/model.h */ 62 # define XP_WIN 1
62 #ifndef _INT16 63 # endif /* XP_WIN */
63 #define _INT16 64 #endif /* _WIN32 */
64 #endif
65 #ifndef _INT32
66 #define _INT32
67 #endif
68 #ifndef _UINT16
69 #define _UINT16
70 #endif
71 #ifndef _UINT32
72 #define _UINT32
73 #endif
74
75 /*
76 * NO_NSPR_10_SUPPORT disables the inclusion
77 * of obsolete/protypes.h, whose int16, uint16,
78 * int32, and uint32 typedefs conflict with those
79 * in this file.
80 */
81 #ifndef NO_NSPR_10_SUPPORT
82 #define NO_NSPR_10_SUPPORT
83 #endif
84 #ifdef OJI
85 #include "jri.h" /* Java Runtime Interface */
86 #endif
87
88 #if defined (__OS2__ ) || defined (OS2)
89 #» ifndef XP_OS2
90 #» » define XP_OS2 1
91 #» endif /* XP_OS2 */
92 #endif /* __OS2__ */
93
94 #ifdef _WINDOWS
95 // BEGIN GOOGLE MODIFICATIONS
96 //#ifdef XP_WIN
97 #include <windows.h>
98 //#endif // XP_WIN
99 // END GOOGLE MODIFICATIONS
100
101 #» ifndef XP_WIN
102 #» » define XP_WIN 1
103 #» endif /* XP_WIN */
104 #endif /* _WINDOWS */
105 65
106 // BEGIN GOOGLE MODIFICATIONS 66 // BEGIN GOOGLE MODIFICATIONS
107 // On Linux and Mac, be sure to set Mozilla-specific macros. 67 // On Linux and Mac, be sure to set Mozilla-specific macros.
108 #if defined(OS_LINUX) || defined(OS_FREEBSD) 68 #if defined(OS_LINUX) || defined(OS_FREEBSD)
109 #define XP_UNIX 1 69 #define XP_UNIX 1
110 #define MOZ_X11 1 70 #define MOZ_X11 1
111 #elif defined(OS_MACOSX)
112 #ifndef XP_MACOSX
113 #define XP_MACOSX 1
114 #endif
115 #endif 71 #endif
116 // END GOOGLE MODIFICATIONS 72 // END GOOGLE MODIFICATIONS
117 73
118 #ifdef __MWERKS__ 74 #ifdef __MWERKS__
119 #» define _declspec __declspec 75 # define _declspec __declspec
120 #» ifdef __INTEL__ 76 # ifdef macintosh
121 #» » undef NULL 77 # ifndef XP_MAC
122 #» » ifndef XP_WIN 78 # define XP_MAC 1
123 #» » » define XP_WIN 1 79 # endif /* XP_MAC */
124 #» » endif /* XP_WIN */ 80 # endif /* macintosh */
125 #» endif /* __INTEL__ */ 81 # ifdef __INTEL__
82 # undef NULL
83 # ifndef XP_WIN
84 # define XP_WIN 1
85 # endif /* __INTEL__ */
86 # endif /* XP_PC */
126 #endif /* __MWERKS__ */ 87 #endif /* __MWERKS__ */
127 88
89 #ifdef __SYMBIAN32__
90 # ifndef XP_SYMBIAN
91 # define XP_SYMBIAN 1
92 # undef XP_WIN
93 # endif
94 #endif /* __SYMBIAN32__ */
95
96 #if defined(__APPLE_CC__) && !defined(__MACOS_CLASSIC__) && !defined(XP_UNIX)
97 # define XP_MACOSX
98 #endif
99
100 #ifdef XP_MAC
101 #include <Quickdraw.h>
102 #include <Events.h>
103 #endif
104
105 #if defined(XP_MACOSX) && defined(__LP64__)
106 #define NP_NO_QUICKDRAW
107 #define NP_NO_CARBON
108 #endif
109
128 #ifdef XP_MACOSX 110 #ifdef XP_MACOSX
111 #include <ApplicationServices/ApplicationServices.h>
112 #include <OpenGL/OpenGL.h>
113 #ifndef NP_NO_CARBON
129 #include <Carbon/Carbon.h> 114 #include <Carbon/Carbon.h>
130 #ifdef __LP64__
131 #define NP_NO_QUICKDRAW
132 #endif 115 #endif
133 #endif 116 #endif
134 117
135 #if defined(XP_UNIX) 118 #if defined(XP_UNIX)
136 # include <stdio.h> 119 # include <stdio.h>
137 // BEGIN GOOGLE MODIFICATIONS 120 // BEGIN GOOGLE MODIFICATIONS
138 #if 0 121 #if 0
139 // END GOOGLE MODIFICATIONS 122 // END GOOGLE MODIFICATIONS
140 # if defined(MOZ_X11) 123 # if defined(MOZ_X11)
141 # include <X11/Xlib.h> 124 # include <X11/Xlib.h>
142 # include <X11/Xutil.h> 125 # include <X11/Xutil.h>
143 # endif 126 # endif
144 // BEGIN GOOGLE MODIFICATIONS 127 // BEGIN GOOGLE MODIFICATIONS
145 #endif 128 #endif
146 // END GOOGLE MODIFICATIONS 129 // END GOOGLE MODIFICATIONS
147 #endif 130 #endif
148 131
132 #ifdef XP_WIN
133 #include <windows.h>
134 #endif
135
149 /*----------------------------------------------------------------------*/ 136 /*----------------------------------------------------------------------*/
150 /* Plugin Version Constants */ 137 /* Plugin Version Constants */
151 /*----------------------------------------------------------------------*/ 138 /*----------------------------------------------------------------------*/
152 139
153 #define NP_VERSION_MAJOR 0 140 #define NP_VERSION_MAJOR 0
154 #define NP_VERSION_MINOR 19 141 // BEGIN GOOGLE MODIFICATIONS
155 142 #define NP_VERSION_MINOR 19 // maximum version currently supported by Chromium
156 143 // END GOOGLE MODIFICATIONS
157 /* The OS/2 version of Netscape uses RC_DATA to define the
158 mime types, file extensions, etc that are required.
159 Use a vertical bar to separate types, end types with \0.
160 FileVersion and ProductVersion are 32bit ints, all other
161 entries are strings the MUST be terminated wwith a \0.
162
163 AN EXAMPLE:
164
165 RCDATA NP_INFO_ProductVersion { 1,0,0,1,}
166
167 RCDATA NP_INFO_MIMEType { "video/x-video|",
168 "video/x-flick\0" }
169 RCDATA NP_INFO_FileExtents { "avi|",
170 "flc\0" }
171 RCDATA NP_INFO_FileOpenName{ "MMOS2 video player(*.avi)|",
172 "MMOS2 Flc/Fli player(*.flc)\0" }
173
174 RCDATA NP_INFO_FileVersion { 1,0,0,1 }
175 RCDATA NP_INFO_CompanyName { "Netscape Communications\0" }
176 RCDATA NP_INFO_FileDescription { "NPAVI32 Extension DLL\0"
177 RCDATA NP_INFO_InternalName { "NPAVI32\0" )
178 RCDATA NP_INFO_LegalCopyright { "Copyright Netscape Communications \251 1996\ 0"
179 RCDATA NP_INFO_OriginalFilename { "NVAPI32.DLL" }
180 RCDATA NP_INFO_ProductName { "NPAVI32 Dynamic Link Library\0" }
181
182 */
183
184
185 /* RC_DATA types for version info - required */
186 #define NP_INFO_ProductVersion 1
187 #define NP_INFO_MIMEType 2
188 #define NP_INFO_FileOpenName 3
189 #define NP_INFO_FileExtents 4
190
191 /* RC_DATA types for version info - used if found */
192 #define NP_INFO_FileDescription 5
193 #define NP_INFO_ProductName 6
194
195 /* RC_DATA types for version info - optional */
196 #define NP_INFO_CompanyName 7
197 #define NP_INFO_FileVersion 8
198 #define NP_INFO_InternalName 9
199 #define NP_INFO_LegalCopyright 10
200 #define NP_INFO_OriginalFilename 11
201
202 #ifndef RC_INVOKED
203
204 144
205 145
206 /*----------------------------------------------------------------------*/ 146 /*----------------------------------------------------------------------*/
207 /* Definition of Basic Types */ 147 /* Definition of Basic Types */
208 /*----------------------------------------------------------------------*/ 148 /*----------------------------------------------------------------------*/
209 149
150 /* QNX sets the _INT16 and friends defines, but does not typedef the types */
151 #ifdef __QNXNTO__
152 #undef _UINT16
153 #undef _INT16
154 #undef _UINT32
155 #undef _INT32
156 #endif
157
210 #ifndef _UINT16 158 #ifndef _UINT16
159 #define _UINT16
211 typedef unsigned short uint16; 160 typedef unsigned short uint16;
212 #endif 161 #endif
213 162
214 #ifndef _UINT32 163 #ifndef _UINT32
215 # if defined(__alpha) || defined(__amd64__) || defined(__x86_64__) 164 #define _UINT32
165 #ifdef __LP64__
216 typedef unsigned int uint32; 166 typedef unsigned int uint32;
217 # else /* __alpha */ 167 #else /* __LP64__ */
218 typedef unsigned long uint32; 168 typedef unsigned long uint32;
219 # endif /* __alpha */ 169 #endif /* __LP64__ */
220 #endif 170 #endif
221 171
222 /*
223 * AIX defines these in sys/inttypes.h included from sys/types.h
224 */
225 #ifndef AIX
226 #ifndef _INT16 172 #ifndef _INT16
173 #define _INT16
227 typedef short int16; 174 typedef short int16;
228 #endif 175 #endif
229 176
230 #ifndef _INT32 177 #ifndef _INT32
231 # if defined(__alpha) || defined(__amd64__) || defined(__x86_64__) 178 #define _INT32
179 #ifdef __LP64__
232 typedef int int32; 180 typedef int int32;
233 # else /* __alpha */ 181 #else /* __LP64__ */
234 typedef long int32; 182 typedef long int32;
235 # endif /* __alpha */ 183 #endif /* __LP64__ */
236 #endif
237 #endif 184 #endif
238 185
239 #ifndef FALSE 186 #ifndef FALSE
240 #define FALSE (0) 187 #define FALSE (0)
241 #endif 188 #endif
242 #ifndef TRUE 189 #ifndef TRUE
243 #define TRUE (1) 190 #define TRUE (1)
244 #endif 191 #endif
245 #ifndef NULL 192 #ifndef NULL
246 #define NULL (0L) 193 #define NULL (0L)
247 #endif 194 #endif
248 195
249 #ifdef XP_MACOSX 196 typedef unsigned char NPBool;
250 typedef enum { 197 typedef int16 NPError;
251 #ifndef NP_NO_QUICKDRAW 198 typedef int16 NPReason;
252 NPDrawingModelQuickDraw = 0, 199 typedef char* NPMIMEType;
253 #endif
254 NPDrawingModelCoreGraphics = 1
255 } NPDrawingModel;
256 #endif
257
258 typedef unsigned char» NPBool;
259 typedef int16» » » NPError;
260 typedef int16» » » NPReason;
261 typedef char*» » » NPMIMEType;
262 200
263 201
264 202
265 /*----------------------------------------------------------------------*/ 203 /*----------------------------------------------------------------------*/
266 /* Structures and definitions */ 204 /* Structures and definitions */
267 /*----------------------------------------------------------------------*/ 205 /*----------------------------------------------------------------------*/
268 206
207 #if !defined(__LP64__)
208 #if defined(XP_MAC) || defined(XP_MACOSX)
209 #pragma options align=mac68k
210 #endif
211 #endif /* __LP64__ */
212
269 /* 213 /*
270 * NPP is a plug-in's opaque instance handle 214 * NPP is a plug-in's opaque instance handle
271 */ 215 */
272 typedef struct _NPP 216 typedef struct _NPP
273 { 217 {
274 void* pdata; /* plug-in private data */ 218 void* pdata; /* plug-in private data */
275 void* ndata; /* netscape private data */ 219 void* ndata; /* netscape private data */
276 } NPP_t; 220 } NPP_t;
277 221
278 typedef NPP_t* NPP; 222 typedef NPP_t* NPP;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 259
316 260
317 typedef struct _NPRect 261 typedef struct _NPRect
318 { 262 {
319 uint16 top; 263 uint16 top;
320 uint16 left; 264 uint16 left;
321 uint16 bottom; 265 uint16 bottom;
322 uint16 right; 266 uint16 right;
323 } NPRect; 267 } NPRect;
324 268
325 typedef struct _NPSize
326 {
327 int32 width;
328 int32 height;
329 } NPSize;
330 269
331 #ifdef XP_UNIX 270 #ifdef XP_UNIX
332 /* 271 /*
333 * Unix specific structures and definitions 272 * Unix specific structures and definitions
334 */ 273 */
335 274
336 /* 275 /*
337 * Callback Structures. 276 * Callback Structures.
338 * 277 *
339 * These are used to pass additional platform specific information. 278 * These are used to pass additional platform specific information.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 /* 317 /*
379 * gcc 3.x generated vtables on UNIX and OSX are incompatible with 318 * gcc 3.x generated vtables on UNIX and OSX are incompatible with
380 * previous compilers. 319 * previous compilers.
381 */ 320 */
382 #if (defined (XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3)) 321 #if (defined (XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3))
383 #define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK 322 #define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK
384 #else 323 #else
385 #define _NP_ABI_MIXIN_FOR_GCC3 0 324 #define _NP_ABI_MIXIN_FOR_GCC3 0
386 #endif 325 #endif
387 326
388
389 #define NP_ABI_MACHO_MASK 0x01000000 327 #define NP_ABI_MACHO_MASK 0x01000000
390 /* 328 /*
391 * On OSX, the Mach-O executable format is significantly 329 * On OSX, the Mach-O executable format is significantly
392 * different than CFM. In addition to having a different 330 * different than CFM. In addition to having a different
393 * C++ ABI, it also has has different C calling convention. 331 * C++ ABI, it also has has different C calling convention.
394 * You must use glue code when calling between CFM and 332 * You must use glue code when calling between CFM and
395 * Mach-O C functions. 333 * Mach-O C functions.
396 */ 334 */
397 #if (defined(TARGET_RT_MAC_MACHO)) 335 #if (defined(TARGET_RT_MAC_MACHO))
398 #define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK 336 #define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK
(...skipping 26 matching lines...) Expand all
425 NPPVpluginKeepLibraryInMemory = 13, 363 NPPVpluginKeepLibraryInMemory = 13,
426 NPPVpluginNeedsXEmbed = 14, 364 NPPVpluginNeedsXEmbed = 14,
427 365
428 /* Get the NPObject for scripting the plugin. Introduced in Firefox 366 /* Get the NPObject for scripting the plugin. Introduced in Firefox
429 * 1.0 (NPAPI minor version 14). 367 * 1.0 (NPAPI minor version 14).
430 */ 368 */
431 NPPVpluginScriptableNPObject = 15, 369 NPPVpluginScriptableNPObject = 15,
432 370
433 /* Get the plugin value (as \0-terminated UTF-8 string data) for 371 /* Get the plugin value (as \0-terminated UTF-8 string data) for
434 * form submission if the plugin is part of a form. Use 372 * form submission if the plugin is part of a form. Use
435 * NPN_MemAlloc() to allocate memory for the string data. Introduced 373 * NPN_MemAlloc() to allocate memory for the string data.
436 * in Mozilla 1.8b2 (NPAPI minor version 15).
437 */ 374 */
438 NPPVformValue = 16 375 NPPVformValue = 16, /* Not implemented in WebKit */
376
377 NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */
378
379 /* Checks if the plugin is interested in receiving the http body of
380 * failed http requests (http status != 200).
381 */
382 NPPVpluginWantsAllNetworkStreams = 18,
383
384 /* Checks to see if the plug-in would like the browser to load the "src" attri bute. */
385 NPPVpluginCancelSrcStream = 20,
386
439 #ifdef XP_MACOSX 387 #ifdef XP_MACOSX
440 /* Used for negotiating drawing models */ 388 /* Used for negotiating drawing models */
441 , NPPVpluginDrawingModel = 1000 389 NPPVpluginDrawingModel = 1000,
390 /* Used for negotiating event models */
391 NPPVpluginEventModel = 1001,
392 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug -in for a Core Animation layer. */
393 NPPVpluginCoreAnimationLayer = 1003
442 #endif 394 #endif
443 } NPPVariable; 395 } NPPVariable;
444 396
445 /* 397 /*
446 * List of variable names for which NPN_GetValue is implemented by Mozilla 398 * List of variable names for which NPN_GetValue is implemented by Mozilla
447 */ 399 */
448 typedef enum { 400 typedef enum {
449 NPNVxDisplay = 1, 401 NPNVxDisplay = 1,
450 NPNVxtAppContext, 402 NPNVxtAppContext,
451 NPNVnetscapeWindow, 403 NPNVnetscapeWindow,
(...skipping 18 matching lines...) Expand all
470 422
471 NPNVprivateModeBool = 18 423 NPNVprivateModeBool = 18
472 424
473 #ifdef XP_MACOSX 425 #ifdef XP_MACOSX
474 /* Used for negotiating drawing models */ 426 /* Used for negotiating drawing models */
475 , NPNVpluginDrawingModel = 1000 427 , NPNVpluginDrawingModel = 1000
476 #ifndef NP_NO_QUICKDRAW 428 #ifndef NP_NO_QUICKDRAW
477 , NPNVsupportsQuickDrawBool = 2000 429 , NPNVsupportsQuickDrawBool = 2000
478 #endif 430 #endif
479 , NPNVsupportsCoreGraphicsBool = 2001 431 , NPNVsupportsCoreGraphicsBool = 2001
432 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL dra wing model (CGL on Mac) */
433 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the Cor eAnimation drawing model */
434
435 #ifndef NP_NO_CARBON
436 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve nt model */
437 #endif
438 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
480 #endif 439 #endif
481 } NPNVariable; 440 } NPNVariable;
482 441
442 typedef enum {
443 NPNURLVCookie = 501,
444 NPNURLVProxy
445 } NPNURLVariable;
446
447 // BEGIN GOOGLE MODIFICATIONS
483 /* 448 /*
484 * The type of Tookkit the widgets use 449 * The type of Tookkit the widgets use
485 */ 450 */
486 typedef enum { 451 typedef enum {
487 NPNVGtk12 = 1, 452 NPNVGtk12 = 1,
488 NPNVGtk2 453 NPNVGtk2
489 } NPNToolkitType; 454 } NPNToolkitType;
455 // END GOOGLE MODIFICATIONS
490 456
491 /* 457 /*
492 * The type of a NPWindow - it specifies the type of the data structure 458 * The type of a NPWindow - it specifies the type of the data structure
493 * returned in the window field. 459 * returned in the window field.
494 */ 460 */
495 typedef enum { 461 typedef enum {
496 NPWindowTypeWindow = 1, 462 NPWindowTypeWindow = 1,
497 NPWindowTypeDrawable 463 NPWindowTypeDrawable
498 } NPWindowType; 464 } NPWindowType;
499 465
466 #ifdef XP_MACOSX
467
468 /*
469 * The drawing model for a Mac OS X plugin. These are the possible values for t he NPNVpluginDrawingModel variable.
470 */
471
472 typedef enum {
473 #ifndef NP_NO_QUICKDRAW
474 NPDrawingModelQuickDraw = 0,
475 #endif
476 NPDrawingModelCoreGraphics = 1,
477 NPDrawingModelOpenGL = 2,
478 NPDrawingModelCoreAnimation = 3
479 } NPDrawingModel;
480
481 /*
482 * The event model for a Mac OS X plugin. These are the possible values for the NPNVpluginEventModel variable.
483 */
484
485 typedef enum {
486 #ifndef NP_NO_CARBON
487 NPEventModelCarbon = 0,
488 #endif
489 NPEventModelCocoa = 1,
490 } NPEventModel;
491
492 typedef enum {
493 NPCocoaEventDrawRect = 1,
494 NPCocoaEventMouseDown,
495 NPCocoaEventMouseUp,
496 NPCocoaEventMouseMoved,
497 NPCocoaEventMouseEntered,
498 NPCocoaEventMouseExited,
499 NPCocoaEventMouseDragged,
500 NPCocoaEventKeyDown,
501 NPCocoaEventKeyUp,
502 NPCocoaEventFlagsChanged,
503 NPCocoaEventFocusChanged,
504 NPCocoaEventWindowFocusChanged,
505 NPCocoaEventScrollWheel,
506 NPCocoaEventTextInput
507 } NPCocoaEventType;
508
509 typedef struct _NPNSString NPNSString;
510 typedef struct _NPNSWindow NPNSWindow;
511 typedef struct _NPNSMenu NPNSMenu;
512
513 typedef struct _NPCocoaEvent {
514 NPCocoaEventType type;
515 uint32 version;
516
517 union {
518 struct {
519 uint32 modifierFlags;
520 double pluginX;
521 double pluginY;
522 int32 buttonNumber;
523 int32 clickCount;
524 double deltaX;
525 double deltaY;
526 double deltaZ;
527 } mouse;
528 struct {
529 uint32 modifierFlags;
530 NPNSString *characters;
531 NPNSString *charactersIgnoringModifiers;
532 NPBool isARepeat;
533 uint16 keyCode;
534 } key;
535 struct {
536 CGContextRef context;
537
538 double x;
539 double y;
540 double width;
541 double height;
542 } draw;
543 struct {
544 NPBool hasFocus;
545 } focus;
546 struct {
547 NPNSString *text;
548 } text;
549 } data;
550 } NPCocoaEvent;
551
552 #endif
553
500 typedef struct _NPWindow 554 typedef struct _NPWindow
501 { 555 {
502 void* window; /* Platform specific window handle */ 556 void* window; /* Platform specific window handle */
503 /* OS/2: x - Position of bottom left corner */
504 /* OS/2: y - relative to visible netscape window */
505 int32 x; /* Position of top left corner relative */ 557 int32 x; /* Position of top left corner relative */
506 int32 y; /* to a netscape page. */ 558 int32 y; /* to a netscape page. */
507 uint32 width; /* Maximum window size */ 559 uint32 width; /* Maximum window size */
508 uint32 height; 560 uint32 height;
509 NPRect clipRect; /* Clipping rectangle in port coordinates */ 561 NPRect clipRect; /* Clipping rectangle in port coordinates */
510 /* Used by MAC only. */ 562 /* Used by MAC only. */
511 #if defined(XP_UNIX) && !defined(XP_MACOSX) 563 #if defined(XP_UNIX) && !defined(XP_MACOSX)
512 void * ws_info; /* Platform-dependent additonal data */ 564 void * ws_info; /* Platform-dependent additonal data */
513 #endif /* XP_UNIX */ 565 #endif /* XP_UNIX */
514 NPWindowType type; /* Is this a window or a drawable? */ 566 NPWindowType type; /* Is this a window or a drawable? */
(...skipping 16 matching lines...) Expand all
531 typedef struct _NPPrint 583 typedef struct _NPPrint
532 { 584 {
533 uint16 mode; /* NP_FULL or NP_EMBED */ 585 uint16 mode; /* NP_FULL or NP_EMBED */
534 union 586 union
535 { 587 {
536 NPFullPrint fullPrint; /* if mode is NP_FULL */ 588 NPFullPrint fullPrint; /* if mode is NP_FULL */
537 NPEmbedPrint embedPrint; /* if mode is NP_EMBED */ 589 NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
538 } print; 590 } print;
539 } NPPrint; 591 } NPPrint;
540 592
593 #ifdef XP_MACOSX
541 // BEGIN GOOGLE MODIFICATIONS 594 // BEGIN GOOGLE MODIFICATIONS
542 #ifdef XP_MACOSX
543 typedef struct _NPNSMenu NPNSMenu; 595 typedef struct _NPNSMenu NPNSMenu;
596 // END GOOGLE MODIFICATIONS
544 typedef NPNSMenu NPMenu; 597 typedef NPNSMenu NPMenu;
545 #else 598 #else
546 typedef void * NPMenu; 599 typedef void * NPMenu;
547 #endif 600 #endif
548 // END GOOGLE MODIFICATIONS
549 601
550 #ifdef XP_MACOSX 602 typedef enum {
551 typedef EventRecord» NPEvent; 603 NPCoordinateSpacePlugin = 1,
604 NPCoordinateSpaceWindow,
605 NPCoordinateSpaceFlippedWindow,
606 NPCoordinateSpaceScreen,
607 NPCoordinateSpaceFlippedScreen
608 } NPCoordinateSpace;
609
610 #if defined(XP_MAC) || defined(XP_MACOSX)
611
612 #ifndef NP_NO_CARBON
613 typedef EventRecord NPEvent;
614 #endif
615
552 #elif defined(XP_WIN) 616 #elif defined(XP_WIN)
553 typedef struct _NPEvent 617 typedef struct _NPEvent
554 { 618 {
555 uint16 event; 619 uint16 event;
556 uint32 wParam; 620 uint32 wParam;
557 uint32 lParam; 621 uint32 lParam;
558 } NPEvent; 622 } NPEvent;
559 #elif defined(XP_OS2)
560 typedef struct _NPEvent
561 {
562 uint32 event;
563 uint32 wParam;
564 uint32 lParam;
565 } NPEvent;
566 #elif defined (XP_UNIX) && defined(MOZ_X11) 623 #elif defined (XP_UNIX) && defined(MOZ_X11)
567 // BEGIN GOOGLE MODIFICATIONS 624 // BEGIN GOOGLE MODIFICATIONS
568 typedef union _XEvent XEvent; 625 typedef union _XEvent XEvent;
569 // END GOOGLE MODIFICATIONS 626 // END GOOGLE MODIFICATIONS
570 typedef XEvent NPEvent; 627 typedef XEvent NPEvent;
571 #else 628 #else
572 typedef void* NPEvent; 629 typedef void* NPEvent;
573 #endif /* XP_MACOSX */ 630 #endif /* XP_MACOSX */
574 631
575 #ifdef XP_MACOSX 632 #if defined(XP_MAC)
576 typedef void* NPRegion; 633 typedef RgnHandle NPRegion;
634 #elif defined(XP_MACOSX)
635 /*
636 * NPRegion's type depends on the drawing model specified by the plugin (see NPN VpluginDrawingModel).
637 * NPQDRegion represents a QuickDraw RgnHandle and is used with the QuickDraw dr awing model.
638 * NPCGRegion repesents a graphical region when using any other drawing model.
639 */
640 typedef void *NPRegion;
577 #ifndef NP_NO_QUICKDRAW 641 #ifndef NP_NO_QUICKDRAW
578 typedef RgnHandle NPQDRegion; 642 typedef RgnHandle NPQDRegion;
579 #endif 643 #endif
580 typedef CGPathRef NPCGRegion; 644 typedef CGPathRef NPCGRegion;
581 #elif defined(XP_WIN) 645 #elif defined(XP_WIN)
582 typedef HRGN NPRegion; 646 typedef HRGN NPRegion;
583 #elif defined(XP_UNIX) && defined(MOZ_X11) 647 #elif defined(XP_UNIX)
584 // BEGIN GOOGLE MODIFICATIONS 648 // BEGIN GOOGLE MODIFICATIONS»
585 typedef struct _XRegion *Region; 649 typedef struct _XRegion *Region;»
586 // END GOOGLE MODIFICATIONS 650 // END GOOGLE MODIFICATIONS
587 typedef Region NPRegion; 651 typedef Region NPRegion;
588 #else 652 #else
589 typedef void *NPRegion; 653 typedef void *NPRegion;
654 #endif /* XP_MAC */
655
656 #ifdef XP_MACOSX
657
658 /*
659 * NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelCoreGraphics
660 * as its drawing model.
661 */
662
663 typedef struct NP_CGContext
664 {
665 CGContextRef context;
666 #ifdef NP_NO_CARBON
667 NPNSWindow *window;
668 #else
669 void *window; // Can be either an NSWindow or a WindowRef depending on the eve nt model
670 #endif
671 } NP_CGContext;
672
673 /*
674 * NP_GLContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelOpenGL as its
675 * drawing model.
676 */
677
678 typedef struct NP_GLContext
679 {
680 CGLContextObj context;
681 #ifdef NP_NO_CARBON
682 NPNSWindow *window;
683 #else
684 void *window; // Can be either an NSWindow or a WindowRef depending on the eve nt model
685 #endif
686 } NP_GLContext;
687
590 #endif /* XP_MACOSX */ 688 #endif /* XP_MACOSX */
591 689
592 #ifdef XP_MACOSX 690 #if defined(XP_MAC) || defined(XP_MACOSX)
691
593 /* 692 /*
594 * Mac-specific structures and definitions. 693 * Mac-specific structures and definitions.
595 */ 694 */
596 695
696 #ifndef NP_NO_QUICKDRAW
697
698 /*
699 * NP_Port is the type of the NPWindow's 'window' when the plugin specifies NPDr awingModelQuickDraw as its
700 * drawing model, or the plugin does not specify a drawing model.
701 *
702 * It is not recommended that new plugins use NPDrawingModelQuickDraw or NP_Port , as QuickDraw has been
703 * deprecated in Mac OS X 10.5. CoreGraphics is the preferred drawing API.
704 *
705 * NP_Port is not available in 64-bit.
706 */
707
597 typedef struct NP_Port 708 typedef struct NP_Port
598 { 709 {
599 CGrafPtr port; /* Grafport */ 710 CGrafPtr port; /* Grafport */
600 int32 portx; /* position inside the topmost window */ 711 int32 portx; /* position inside the topmost window */
601 int32 porty; 712 int32 porty;
602 } NP_Port; 713 } NP_Port;
603 714
604 typedef struct NP_CGContext 715 #endif /* NP_NO_QUICKDRAW */
605 {
606 CGContextRef context;
607 WindowRef window;
608 } NP_CGContext;
609 716
610 /* 717 /*
611 * Non-standard event types that can be passed to HandleEvent 718 * Non-standard event types that can be passed to HandleEvent
612 */ 719 */
613 720 // BEGIN GOOGLE MODIFICATIONS
614 enum NPEventType { 721 enum NPEventType {
615 NPEventType_GetFocusEvent = (osEvt + 16), 722 NPEventType_GetFocusEvent = (osEvt + 16),
616 NPEventType_LoseFocusEvent, 723 NPEventType_LoseFocusEvent,
617 NPEventType_AdjustCursorEvent, 724 NPEventType_AdjustCursorEvent,
618 NPEventType_MenuCommandEvent, 725 NPEventType_MenuCommandEvent,
619 NPEventType_ClippingChangedEvent, 726 NPEventType_ClippingChangedEvent,
620 NPEventType_ScrollingBeginsEvent = 1000, 727 NPEventType_ScrollingBeginsEvent = 1000,
621 NPEventType_ScrollingEndsEvent 728 NPEventType_ScrollingEndsEvent
622 }; 729 };
623 730
624 #ifdef OBSOLETE 731 #ifdef OBSOLETE
625 #define getFocusEvent (osEvt + 16) 732 #define getFocusEvent (osEvt + 16)
626 #define loseFocusEvent (osEvt + 17) 733 #define loseFocusEvent (osEvt + 17)
627 #define adjustCursorEvent (osEvt + 18) 734 #define adjustCursorEvent (osEvt + 18)
628 #endif 735 #endif
736 // END GOOGLE MODIFICATIONS
737
629 #endif /* XP_MACOSX */ 738 #endif /* XP_MACOSX */
630 739
631 /* 740 /*
632 * Values for mode passed to NPP_New: 741 * Values for mode passed to NPP_New:
633 */ 742 */
634 #define NP_EMBED 1 743 #define NP_EMBED 1
635 #define NP_FULL 2 744 #define NP_FULL 2
636 745
637 /* 746 /*
638 * Values for stream type passed to NPP_NewStream: 747 * Values for stream type passed to NPP_NewStream:
639 */ 748 */
640 #define NP_NORMAL 1 749 #define NP_NORMAL 1
641 #define NP_SEEK 2 750 #define NP_SEEK 2
642 #define NP_ASFILE 3 751 #define NP_ASFILE 3
643 #define NP_ASFILEONLY 4 752 #define NP_ASFILEONLY 4
644 753
645 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1) 754 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1)
646 755
756 #if !defined(__LP64__)
757 #if defined(XP_MAC) || defined(XP_MACOSX)
758 #pragma options align=reset
759 #endif
760 #endif /* __LP64__ */
761
647 762
648 /*----------------------------------------------------------------------*/ 763 /*----------------------------------------------------------------------*/
649 /* Error and Reason Code definitions */ 764 /* Error and Reason Code definitions */
650 /*----------------------------------------------------------------------*/ 765 /*----------------------------------------------------------------------*/
651 766
652 /* 767 /*
653 * Values of type NPError: 768 * Values of type NPError:
654 */ 769 */
655 #define NPERR_BASE 0 770 #define NPERR_BASE 0
656 #define NPERR_NO_ERROR (NPERR_BASE + 0) 771 #define NPERR_NO_ERROR (NPERR_BASE + 0)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 #define NPVERS_WIN16_HAS_LIVECONNECT 9 807 #define NPVERS_WIN16_HAS_LIVECONNECT 9
693 #define NPVERS_68K_HAS_LIVECONNECT 11 808 #define NPVERS_68K_HAS_LIVECONNECT 11
694 #define NPVERS_HAS_WINDOWLESS 11 809 #define NPVERS_HAS_WINDOWLESS 11
695 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13 810 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13
696 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14 811 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
697 #define NPVERS_HAS_FORM_VALUES 15 812 #define NPVERS_HAS_FORM_VALUES 15
698 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 813 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16
699 #define NPVERS_HAS_RESPONSE_HEADERS 17 814 #define NPVERS_HAS_RESPONSE_HEADERS 17
700 #define NPVERS_HAS_NPOBJECT_ENUM 18 815 #define NPVERS_HAS_NPOBJECT_ENUM 18
701 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19 816 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
817 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20
818 #define NPVERS_HAS_URL_AND_AUTH_INFO 21
819 #define NPVERS_HAS_PRIVATE_MODE 22
820 #define NPVERS_MACOSX_HAS_EVENT_MODELS 23
821 #define NPVERS_HAS_CANCEL_SRC_STREAM 24
702 822
703 /*----------------------------------------------------------------------*/ 823 /*----------------------------------------------------------------------*/
704 /* Function Prototypes */ 824 /* Function Prototypes */
705 /*----------------------------------------------------------------------*/ 825 /*----------------------------------------------------------------------*/
706 826
707 #if defined(_WINDOWS) && !defined(WIN32) 827 #if defined(_WINDOWS) && !defined(WIN32)
708 #define NP_LOADDS _loadds 828 #define NP_LOADDS _loadds
709 #else 829 #else
710 #if defined(__OS2__)
711 #define NP_LOADDS _System
712 #else
713 #define NP_LOADDS 830 #define NP_LOADDS
714 #endif 831 #endif
715 #endif
716 832
717 #ifdef __cplusplus 833 #ifdef __cplusplus
718 extern "C" { 834 extern "C" {
719 #endif 835 #endif
720 836
721 /* 837 /*
722 * NPP_* functions are provided by the plugin and called by the navigator. 838 * NPP_* functions are provided by the plugin and called by the navigator.
723 */ 839 */
724 840
725 #ifdef XP_UNIX 841 #ifdef XP_UNIX
726 char* NPP_GetMIMEDescription(void); 842 char* NPP_GetMIMEDescription(void);
727 #endif /* XP_UNIX */ 843 #endif /* XP_UNIX */
728 844
729 NPError NP_LOADDS NPP_Initialize(void); 845 NPError NPP_Initialize(void);
730 void NP_LOADDS NPP_Shutdown(void); 846 void NPP_Shutdown(void);
731 NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance, 847 NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance,
732 uint16 mode, int16 argc, char* argn[], 848 uint16 mode, int16 argc, char* argn[],
733 char* argv[], NPSavedData* saved); 849 char* argv[], NPSavedData* saved);
734 NPError NP_LOADDS NPP_Destroy(NPP instance, NPSavedData** save); 850 NPError NP_LOADDS NPP_Destroy(NPP instance, NPSavedData** save);
735 NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window); 851 NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window);
736 NPError NP_LOADDS NPP_NewStream(NPP instance, NPMIMEType type, 852 NPError NP_LOADDS NPP_NewStream(NPP instance, NPMIMEType type,
737 NPStream* stream, NPBool seekable, 853 NPStream* stream, NPBool seekable,
738 uint16* stype); 854 uint16* stype);
739 NPError NP_LOADDS NPP_DestroyStream(NPP instance, NPStream* stream, 855 NPError NP_LOADDS NPP_DestroyStream(NPP instance, NPStream* stream,
740 NPReason reason); 856 NPReason reason);
741 int32 NP_LOADDS NPP_WriteReady(NPP instance, NPStream* stream); 857 int32 NP_LOADDS NPP_WriteReady(NPP instance, NPStream* stream);
742 int32 NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32 offset, 858 int32 NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32 offset ,
743 int32 len, void* buffer); 859 int32 len, void* buffer);
744 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream, 860 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
745 const char* fname); 861 const char* fname);
746 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint); 862 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
747 int16 NP_LOADDS NPP_HandleEvent(NPP instance, void* event); 863 int16 NPP_HandleEvent(NPP instance, void* event);
748 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url, 864 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
749 NPReason reason, void* notifyData); 865 NPReason reason, void* notifyData);
750 #ifdef OJI 866 jref NP_LOADDS NPP_GetJavaClass(void);
751 jref NP_LOADDS NPP_GetJavaClass(void); 867 NPError NPP_GetValue(NPP instance, NPPVariable variable,
752 #endif 868 void *value);
753 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value); 869 NPError NPP_SetValue(NPP instance, NPNVariable variable,
754 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value); 870 void *value);
755 871
756 /* 872 /*
757 * NPN_* functions are provided by the navigator and called by the plugin. 873 * NPN_* functions are provided by the navigator and called by the plugin.
758 */ 874 */
759 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor, 875
760 int* netscape_major, int* netscape_minor); 876 void NPN_Version(int* plugin_major, int* plugin_minor,
761 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url, 877 int* netscape_major, int* netscape_minor);
762 const char* target, void* notifyData); 878 NPError NPN_GetURLNotify(NPP instance, const char* url,
763 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url, 879 const char* target, void* notifyData);
764 const char* target); 880 NPError NPN_GetURL(NPP instance, const char* url,
765 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url, 881 const char* target);
766 const char* target, uint32 len, 882 NPError NPN_PostURLNotify(NPP instance, const char* url,
767 const char* buf, NPBool file,
768 void* notifyData);
769 NPError NP_LOADDS NPN_PostURL(NPP instance, const char* url,
770 const char* target, uint32 len, 883 const char* target, uint32 len,
771 const char* buf, NPBool file); 884 const char* buf, NPBool file,
772 NPError NP_LOADDS NPN_RequestRead(NPStream* stream, NPByteRange* rangeList); 885 void* notifyData);
773 NPError NP_LOADDS NPN_NewStream(NPP instance, NPMIMEType type, 886 NPError NPN_PostURL(NPP instance, const char* url,
774 const char* target, NPStream** stream); 887 const char* target, uint32 len,
775 int32 NP_LOADDS NPN_Write(NPP instance, NPStream* stream, int32 len, void* buf fer); 888 const char* buf, NPBool file);
776 NPError NP_LOADDS NPN_DestroyStream(NPP instance, NPStream* stream, NPReason rea son); 889 NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList);
777 void NP_LOADDS NPN_Status(NPP instance, const char* message); 890 NPError NPN_NewStream(NPP instance, NPMIMEType type,
778 const char* NP_LOADDS» NPN_UserAgent(NPP instance); 891 const char* target, NPStream** stream);
779 void* NP_LOADDS NPN_MemAlloc(uint32 size); 892 int32 NPN_Write(NPP instance, NPStream* stream, int32 len,
780 void NP_LOADDS NPN_MemFree(void* ptr); 893 void* buffer);
781 uint32 NP_LOADDS NPN_MemFlush(uint32 size); 894 NPError NPN_DestroyStream(NPP instance, NPStream* stream,
782 void NP_LOADDS NPN_ReloadPlugins(NPBool reloadPages); 895 NPReason reason);
783 #ifdef OJI 896 void NPN_Status(NPP instance, const char* message);
784 JRIEnv* NP_LOADDS NPN_GetJavaEnv(void); 897 const char* NPN_UserAgent(NPP instance);
785 jref NP_LOADDS NPN_GetJavaPeer(NPP instance); 898 void* NPN_MemAlloc(uint32 size);
786 #endif 899 void NPN_MemFree(void* ptr);
787 NPError NP_LOADDS NPN_GetValue(NPP instance, NPNVariable variable, void *value); 900 uint32 NPN_MemFlush(uint32 size);
788 NPError NP_LOADDS NPN_SetValue(NPP instance, NPPVariable variable, void *value); 901 void NPN_ReloadPlugins(NPBool reloadPages);
789 void NP_LOADDS NPN_InvalidateRect(NPP instance, NPRect *invalidRect); 902 JRIEnv* NPN_GetJavaEnv(void);
790 void NP_LOADDS NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion); 903 jref NPN_GetJavaPeer(NPP instance);
791 void NP_LOADDS NPN_ForceRedraw(NPP instance); 904 NPError NPN_GetValue(NPP instance, NPNVariable variable,
792 void NP_LOADDS NPN_PushPopupsEnabledState(NPP instance, NPBool enabled); 905 void *value);
793 void NP_LOADDS NPN_PopPopupsEnabledState(NPP instance); 906 NPError NPN_SetValue(NPP instance, NPPVariable variable,
794 void NP_LOADDS NPN_PluginThreadAsyncCall(NPP instance, 907 void *value);
795 void (*func) (void *), 908 void NPN_InvalidateRect(NPP instance, NPRect *invalidRect);
796 void *userData); 909 void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion);
910 void NPN_ForceRedraw(NPP instance);
911 void NPN_PushPopupsEnabledState(NPP instance, NPBool enabled);
912 void NPN_PopPopupsEnabledState(NPP instance);
913 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void *userData);
914 NPError NPN_GetValueForURL(NPP instance, NPNURLVariable variable, const char * url, char** value, uint32* len);
915 NPError NPN_SetValueForURL(NPP instance, NPNURLVariable variable, const char * url, const char* value, uint32 len);
916 NPError NPN_GetAuthenticationInfo(NPP instance, const char* protocol, const char* host, int32 port, const char* scheme, const char *realm, char** username, uint32* ulen, char** password, uint32* plen);
917 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32 timerID));
918 void NPN_UnscheduleTimer(NPP instance, uint32 timerID);
919 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu);
920 NPBool NPN_ConvertPoint(NPP instance, double sourceX, double sourceY, NPCoo rdinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSp ace);
797 921
798 #ifdef __cplusplus 922 #ifdef __cplusplus
799 } /* end extern "C" */ 923 } /* end extern "C" */
800 #endif 924 #endif
801 925
802 #endif /* RC_INVOKED */
803 #ifdef __OS2__
804 #pragma pack()
805 #endif
806
807 #endif /* _NPAPI_H_ */ 926 #endif /* _NPAPI_H_ */
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/plugins/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698