Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / modules / plugin / base / public / npapi.h
blob5d3a3405884966b45f435c28bd0989cb58537160
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * 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
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * 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
32 * 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
34 * the terms of any one of the MPL, the GPL or the LGPL.
36 * ***** END LICENSE BLOCK ***** */
38 #ifndef npapi_h_
39 #define npapi_h_
41 #ifdef __OS2__
42 #pragma pack(1)
43 #endif
45 #include "nptypes.h"
47 #ifdef OJI
48 #include "jri.h" /* Java Runtime Interface */
49 #endif
51 #if defined (__OS2__) || defined (OS2)
52 # ifndef XP_OS2
53 # define XP_OS2 1
54 # endif /* XP_OS2 */
55 #endif /* __OS2__ */
57 #ifdef _WINDOWS
58 # include <windef.h>
59 # ifndef XP_WIN
60 # define XP_WIN 1
61 # endif /* XP_WIN */
62 #endif /* _WINDOWS */
64 #ifdef __MWERKS__
65 # define _declspec __declspec
66 # ifdef __INTEL__
67 # undef NULL
68 # ifndef XP_WIN
69 # define XP_WIN 1
70 # endif /* XP_WIN */
71 # endif /* __INTEL__ */
72 #endif /* __MWERKS__ */
74 #ifdef XP_MACOSX
75 #include <Carbon/Carbon.h>
76 #ifdef __LP64__
77 #define NP_NO_QUICKDRAW
78 #endif
79 #endif
81 #if defined(XP_UNIX)
82 # include <stdio.h>
83 # if defined(MOZ_X11)
84 # include <X11/Xlib.h>
85 # include <X11/Xutil.h>
86 # endif
87 #endif
89 /*----------------------------------------------------------------------*/
90 /* Plugin Version Constants */
91 /*----------------------------------------------------------------------*/
93 #define NP_VERSION_MAJOR 0
94 #define NP_VERSION_MINOR 20
97 /* The OS/2 version of Netscape uses RC_DATA to define the
98 mime types, file extensions, etc that are required.
99 Use a vertical bar to separate types, end types with \0.
100 FileVersion and ProductVersion are 32bit ints, all other
101 entries are strings the MUST be terminated wwith a \0.
103 AN EXAMPLE:
105 RCDATA NP_INFO_ProductVersion { 1,0,0,1,}
107 RCDATA NP_INFO_MIMEType { "video/x-video|",
108 "video/x-flick\0" }
109 RCDATA NP_INFO_FileExtents { "avi|",
110 "flc\0" }
111 RCDATA NP_INFO_FileOpenName{ "MMOS2 video player(*.avi)|",
112 "MMOS2 Flc/Fli player(*.flc)\0" }
114 RCDATA NP_INFO_FileVersion { 1,0,0,1 }
115 RCDATA NP_INFO_CompanyName { "Netscape Communications\0" }
116 RCDATA NP_INFO_FileDescription { "NPAVI32 Extension DLL\0"
117 RCDATA NP_INFO_InternalName { "NPAVI32\0" )
118 RCDATA NP_INFO_LegalCopyright { "Copyright Netscape Communications \251 1996\0"
119 RCDATA NP_INFO_OriginalFilename { "NVAPI32.DLL" }
120 RCDATA NP_INFO_ProductName { "NPAVI32 Dynamic Link Library\0" }
122 /* RC_DATA types for version info - required */
123 #define NP_INFO_ProductVersion 1
124 #define NP_INFO_MIMEType 2
125 #define NP_INFO_FileOpenName 3
126 #define NP_INFO_FileExtents 4
127 /* RC_DATA types for version info - used if found */
128 #define NP_INFO_FileDescription 5
129 #define NP_INFO_ProductName 6
130 /* RC_DATA types for version info - optional */
131 #define NP_INFO_CompanyName 7
132 #define NP_INFO_FileVersion 8
133 #define NP_INFO_InternalName 9
134 #define NP_INFO_LegalCopyright 10
135 #define NP_INFO_OriginalFilename 11
137 #ifndef RC_INVOKED
139 /*----------------------------------------------------------------------*/
140 /* Definition of Basic Types */
141 /*----------------------------------------------------------------------*/
143 typedef unsigned char NPBool;
144 typedef int16_t NPError;
145 typedef int16_t NPReason;
146 typedef char* NPMIMEType;
148 /*----------------------------------------------------------------------*/
149 /* Structures and definitions */
150 /*----------------------------------------------------------------------*/
153 * NPP is a plug-in's opaque instance handle
155 typedef struct _NPP
157 void* pdata; /* plug-in private data */
158 void* ndata; /* netscape private data */
159 } NPP_t;
161 typedef NPP_t* NPP;
163 typedef struct _NPStream
165 void* pdata; /* plug-in private data */
166 void* ndata; /* netscape private data */
167 const char* url;
168 uint32_t end;
169 uint32_t lastmodified;
170 void* notifyData;
171 const char* headers; /* Response headers from host.
172 * Exists only for >= NPVERS_HAS_RESPONSE_HEADERS.
173 * Used for HTTP only; NULL for non-HTTP.
174 * Available from NPP_NewStream onwards.
175 * Plugin should copy this data before storing it.
176 * Includes HTTP status line and all headers,
177 * preferably verbatim as received from server,
178 * headers formatted as in HTTP ("Header: Value"),
179 * and newlines (\n, NOT \r\n) separating lines.
180 * Terminated by \n\0 (NOT \n\n\0). */
181 } NPStream;
183 typedef struct _NPByteRange
185 int32_t offset; /* negative offset means from the end */
186 uint32_t length;
187 struct _NPByteRange* next;
188 } NPByteRange;
190 typedef struct _NPSavedData
192 int32_t len;
193 void* buf;
194 } NPSavedData;
196 typedef struct _NPRect
198 uint16_t top;
199 uint16_t left;
200 uint16_t bottom;
201 uint16_t right;
202 } NPRect;
204 typedef struct _NPSize
206 int32_t width;
207 int32_t height;
208 } NPSize;
210 #ifdef XP_UNIX
212 * Unix specific structures and definitions
216 * Callback Structures.
218 * These are used to pass additional platform specific information.
220 enum {
221 NP_SETWINDOW = 1,
222 NP_PRINT
225 typedef struct
227 int32_t type;
228 } NPAnyCallbackStruct;
230 typedef struct
232 int32_t type;
233 #ifdef MOZ_X11
234 Display* display;
235 Visual* visual;
236 Colormap colormap;
237 unsigned int depth;
238 #endif
239 } NPSetWindowCallbackStruct;
241 typedef struct
243 int32_t type;
244 FILE* fp;
245 } NPPrintCallbackStruct;
247 #endif /* XP_UNIX */
249 #ifdef XP_MACOSX
250 typedef enum {
251 #ifndef NP_NO_QUICKDRAW
252 NPDrawingModelQuickDraw = 0,
253 #endif
254 NPDrawingModelCoreGraphics = 1
255 } NPDrawingModel;
256 #endif
259 * The following masks are applied on certain platforms to NPNV and
260 * NPPV selectors that pass around pointers to COM interfaces. Newer
261 * compilers on some platforms may generate vtables that are not
262 * compatible with older compilers. To prevent older plugins from
263 * not understanding a new browser's ABI, these masks change the
264 * values of those selectors on those platforms. To remain backwards
265 * compatible with differenet versions of the browser, plugins can
266 * use these masks to dynamically determine and use the correct C++
267 * ABI that the browser is expecting. This does not apply to Windows
268 * as Microsoft's COM ABI will likely not change.
271 #define NP_ABI_GCC3_MASK 0x10000000
273 * gcc 3.x generated vtables on UNIX and OSX are incompatible with
274 * previous compilers.
276 #if (defined(XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3))
277 #define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK
278 #else
279 #define _NP_ABI_MIXIN_FOR_GCC3 0
280 #endif
282 #ifdef XP_MACOSX
283 #define NP_ABI_MACHO_MASK 0x01000000
284 #define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK
285 #else
286 #define _NP_ABI_MIXIN_FOR_MACHO 0
287 #endif
289 #define NP_ABI_MASK (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)
292 * List of variable names for which NPP_GetValue shall be implemented
294 typedef enum {
295 NPPVpluginNameString = 1,
296 NPPVpluginDescriptionString,
297 NPPVpluginWindowBool,
298 NPPVpluginTransparentBool,
299 NPPVjavaClass, /* Not implemented in Mozilla 1.0 */
300 NPPVpluginWindowSize,
301 NPPVpluginTimerInterval,
303 NPPVpluginScriptableInstance = (10 | NP_ABI_MASK),
304 NPPVpluginScriptableIID = 11,
306 /* Introduced in Mozilla 0.9.9 */
307 NPPVjavascriptPushCallerBool = 12,
309 /* Introduced in Mozilla 1.0 */
310 NPPVpluginKeepLibraryInMemory = 13,
311 NPPVpluginNeedsXEmbed = 14,
313 /* Get the NPObject for scripting the plugin. Introduced in Firefox
314 * 1.0 (NPAPI minor version 14).
316 NPPVpluginScriptableNPObject = 15,
318 /* Get the plugin value (as \0-terminated UTF-8 string data) for
319 * form submission if the plugin is part of a form. Use
320 * NPN_MemAlloc() to allocate memory for the string data. Introduced
321 * in Mozilla 1.8b2 (NPAPI minor version 15).
323 NPPVformValue = 16,
325 NPPVpluginUrlRequestsDisplayedBool = 17,
327 /* Checks if the plugin is interested in receiving the http body of
328 * all http requests (including failed ones, http status != 200).
330 NPPVpluginWantsAllNetworkStreams = 18
331 #ifdef XP_MACOSX
332 /* Used for negotiating drawing models */
333 , NPPVpluginDrawingModel = 1000
334 #endif
335 } NPPVariable;
338 * List of variable names for which NPN_GetValue is implemented by Mozilla
340 typedef enum {
341 NPNVxDisplay = 1,
342 NPNVxtAppContext,
343 NPNVnetscapeWindow,
344 NPNVjavascriptEnabledBool,
345 NPNVasdEnabledBool,
346 NPNVisOfflineBool,
348 /* 10 and over are available on Mozilla builds starting with 0.9.4 */
349 NPNVserviceManager = (10 | NP_ABI_MASK),
350 NPNVDOMElement = (11 | NP_ABI_MASK), /* available in Mozilla 1.2 */
351 NPNVDOMWindow = (12 | NP_ABI_MASK),
352 NPNVToolkit = (13 | NP_ABI_MASK),
353 NPNVSupportsXEmbedBool = 14,
355 /* Get the NPObject wrapper for the browser window. */
356 NPNVWindowNPObject = 15,
358 /* Get the NPObject wrapper for the plugins DOM element. */
359 NPNVPluginElementNPObject = 16,
361 NPNVSupportsWindowless = 17
363 #ifdef XP_MACOSX
364 /* Used for negotiating drawing models */
365 , NPNVpluginDrawingModel = 1000
366 #ifndef NP_NO_QUICKDRAW
367 , NPNVsupportsQuickDrawBool = 2000
368 #endif
369 , NPNVsupportsCoreGraphicsBool = 2001
370 #endif
371 } NPNVariable;
374 * The type of Tookkit the widgets use
376 typedef enum {
377 NPNVGtk12 = 1,
378 NPNVGtk2
379 } NPNToolkitType;
382 * The type of a NPWindow - it specifies the type of the data structure
383 * returned in the window field.
385 typedef enum {
386 NPWindowTypeWindow = 1,
387 NPWindowTypeDrawable
388 } NPWindowType;
390 typedef struct _NPWindow
392 void* window; /* Platform specific window handle */
393 /* OS/2: x - Position of bottom left corner */
394 /* OS/2: y - relative to visible netscape window */
395 int32_t x; /* Position of top left corner relative */
396 int32_t y; /* to a netscape page. */
397 uint32_t width; /* Maximum window size */
398 uint32_t height;
399 NPRect clipRect; /* Clipping rectangle in port coordinates */
400 /* Used by MAC only. */
401 #if defined(XP_UNIX) && !defined(XP_MACOSX)
402 void * ws_info; /* Platform-dependent additonal data */
403 #endif /* XP_UNIX */
404 NPWindowType type; /* Is this a window or a drawable? */
405 } NPWindow;
408 typedef struct _NPFullPrint
410 NPBool pluginPrinted;/* Set TRUE if plugin handled fullscreen printing */
411 NPBool printOne; /* TRUE if plugin should print one copy to default
412 printer */
413 void* platformPrint; /* Platform-specific printing info */
414 } NPFullPrint;
416 typedef struct _NPEmbedPrint
418 NPWindow window;
419 void* platformPrint; /* Platform-specific printing info */
420 } NPEmbedPrint;
422 typedef struct _NPPrint
424 uint16_t mode; /* NP_FULL or NP_EMBED */
425 union
427 NPFullPrint fullPrint; /* if mode is NP_FULL */
428 NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
429 } print;
430 } NPPrint;
432 #ifdef XP_MACOSX
433 typedef EventRecord NPEvent;
434 #elif defined(XP_WIN)
435 typedef struct _NPEvent
437 uint16_t event;
438 uint32_t wParam;
439 uint32_t lParam;
440 } NPEvent;
441 #elif defined(XP_OS2)
442 typedef struct _NPEvent
444 uint32_t event;
445 uint32_t wParam;
446 uint32_t lParam;
447 } NPEvent;
448 #elif defined (XP_UNIX) && defined(MOZ_X11)
449 typedef XEvent NPEvent;
450 #else
451 typedef void* NPEvent;
452 #endif /* XP_MACOSX */
454 #ifdef XP_MACOSX
456 typedef void* NPRegion;
457 #ifndef NP_NO_QUICKDRAW
458 typedef RgnHandle NPQDRegion;
459 #endif
460 typedef CGPathRef NPCGRegion;
461 #elif defined(XP_WIN)
462 typedef HRGN NPRegion;
463 #elif defined(XP_UNIX) && defined(MOZ_X11)
464 typedef Region NPRegion;
465 #else
466 typedef void *NPRegion;
467 #endif
469 #ifdef XP_MACOSX
470 typedef struct NP_Port
472 CGrafPtr port;
473 int32_t portx; /* position inside the topmost window */
474 int32_t porty;
475 } NP_Port;
477 typedef struct NP_CGContext
479 CGContextRef context;
480 WindowRef window;
481 } NP_CGContext;
483 /* Non-standard event types that can be passed to HandleEvent */
484 enum NPEventType {
485 NPEventType_GetFocusEvent = (osEvt + 16),
486 NPEventType_LoseFocusEvent,
487 NPEventType_AdjustCursorEvent,
488 NPEventType_MenuCommandEvent,
489 NPEventType_ClippingChangedEvent,
490 NPEventType_ScrollingBeginsEvent = 1000,
491 NPEventType_ScrollingEndsEvent
494 #ifdef OBSOLETE
495 #define getFocusEvent (osEvt + 16)
496 #define loseFocusEvent (osEvt + 17)
497 #define adjustCursorEvent (osEvt + 18)
498 #endif
500 #endif /* XP_MACOSX */
503 * Values for mode passed to NPP_New:
505 #define NP_EMBED 1
506 #define NP_FULL 2
509 * Values for stream type passed to NPP_NewStream:
511 #define NP_NORMAL 1
512 #define NP_SEEK 2
513 #define NP_ASFILE 3
514 #define NP_ASFILEONLY 4
516 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1)
519 /*----------------------------------------------------------------------*/
520 /* Error and Reason Code definitions */
521 /*----------------------------------------------------------------------*/
524 * Values of type NPError:
526 #define NPERR_BASE 0
527 #define NPERR_NO_ERROR (NPERR_BASE + 0)
528 #define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
529 #define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2)
530 #define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3)
531 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4)
532 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5)
533 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6)
534 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7)
535 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8)
536 #define NPERR_INVALID_PARAM (NPERR_BASE + 9)
537 #define NPERR_INVALID_URL (NPERR_BASE + 10)
538 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11)
539 #define NPERR_NO_DATA (NPERR_BASE + 12)
540 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13)
543 * Values of type NPReason:
545 #define NPRES_BASE 0
546 #define NPRES_DONE (NPRES_BASE + 0)
547 #define NPRES_NETWORK_ERR (NPRES_BASE + 1)
548 #define NPRES_USER_BREAK (NPRES_BASE + 2)
551 * Don't use these obsolete error codes any more.
553 #define NP_NOERR NP_NOERR_is_obsolete_use_NPERR_NO_ERROR
554 #define NP_EINVAL NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR
555 #define NP_EABORT NP_EABORT_is_obsolete_use_NPRES_USER_BREAK
558 * Version feature information
560 #define NPVERS_HAS_STREAMOUTPUT 8
561 #define NPVERS_HAS_NOTIFICATION 9
562 #define NPVERS_HAS_LIVECONNECT 9
563 #define NPVERS_WIN16_HAS_LIVECONNECT 9
564 #define NPVERS_68K_HAS_LIVECONNECT 11
565 #define NPVERS_HAS_WINDOWLESS 11
566 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13
567 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
568 #define NPVERS_HAS_FORM_VALUES 15
569 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16
570 #define NPVERS_HAS_RESPONSE_HEADERS 17
571 #define NPVERS_HAS_NPOBJECT_ENUM 18
572 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
573 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20
575 /*----------------------------------------------------------------------*/
576 /* Function Prototypes */
577 /*----------------------------------------------------------------------*/
579 #if defined(__OS2__)
580 #define NP_LOADDS _System
581 #else
582 #define NP_LOADDS
583 #endif
585 #ifdef __cplusplus
586 extern "C" {
587 #endif
589 /* NPP_* functions are provided by the plugin and called by the navigator. */
591 #ifdef XP_UNIX
592 char* NPP_GetMIMEDescription();
593 #endif
595 NPError NP_LOADDS NPP_Initialize();
596 void NP_LOADDS NPP_Shutdown();
597 NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance,
598 uint16_t mode, int16_t argc, char* argn[],
599 char* argv[], NPSavedData* saved);
600 NPError NP_LOADDS NPP_Destroy(NPP instance, NPSavedData** save);
601 NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window);
602 NPError NP_LOADDS NPP_NewStream(NPP instance, NPMIMEType type,
603 NPStream* stream, NPBool seekable,
604 uint16_t* stype);
605 NPError NP_LOADDS NPP_DestroyStream(NPP instance, NPStream* stream,
606 NPReason reason);
607 int32_t NP_LOADDS NPP_WriteReady(NPP instance, NPStream* stream);
608 int32_t NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32_t offset,
609 int32_t len, void* buffer);
610 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
611 const char* fname);
612 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
613 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event);
614 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
615 NPReason reason, void* notifyData);
616 #ifdef OJI
617 jref NP_LOADDS NPP_GetJavaClass();
618 #endif
619 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value);
620 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value);
622 /* NPN_* functions are provided by the navigator and called by the plugin. */
623 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor,
624 int* netscape_major, int* netscape_minor);
625 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url,
626 const char* target, void* notifyData);
627 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url,
628 const char* target);
629 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url,
630 const char* target, uint32_t len,
631 const char* buf, NPBool file,
632 void* notifyData);
633 NPError NP_LOADDS NPN_PostURL(NPP instance, const char* url,
634 const char* target, uint32_t len,
635 const char* buf, NPBool file);
636 NPError NP_LOADDS NPN_RequestRead(NPStream* stream, NPByteRange* rangeList);
637 NPError NP_LOADDS NPN_NewStream(NPP instance, NPMIMEType type,
638 const char* target, NPStream** stream);
639 int32_t NP_LOADDS NPN_Write(NPP instance, NPStream* stream, int32_t len,
640 void* buffer);
641 NPError NP_LOADDS NPN_DestroyStream(NPP instance, NPStream* stream,
642 NPReason reason);
643 void NP_LOADDS NPN_Status(NPP instance, const char* message);
644 const char* NP_LOADDS NPN_UserAgent(NPP instance);
645 void* NP_LOADDS NPN_MemAlloc(uint32_t size);
646 void NP_LOADDS NPN_MemFree(void* ptr);
647 uint32_t NP_LOADDS NPN_MemFlush(uint32_t size);
648 void NP_LOADDS NPN_ReloadPlugins(NPBool reloadPages);
649 #ifdef OJI
650 JRIEnv* NP_LOADDS NPN_GetJavaEnv();
651 jref NP_LOADDS NPN_GetJavaPeer(NPP instance);
652 #endif
653 NPError NP_LOADDS NPN_GetValue(NPP instance, NPNVariable variable,
654 void *value);
655 NPError NP_LOADDS NPN_SetValue(NPP instance, NPPVariable variable,
656 void *value);
657 void NP_LOADDS NPN_InvalidateRect(NPP instance, NPRect *invalidRect);
658 void NP_LOADDS NPN_InvalidateRegion(NPP instance,
659 NPRegion invalidRegion);
660 void NP_LOADDS NPN_ForceRedraw(NPP instance);
661 void NP_LOADDS NPN_PushPopupsEnabledState(NPP instance, NPBool enabled);
662 void NP_LOADDS NPN_PopPopupsEnabledState(NPP instance);
663 void NP_LOADDS NPN_PluginThreadAsyncCall(NPP instance,
664 void (*func) (void *), void *userData);
666 #ifdef __cplusplus
667 } /* end extern "C" */
668 #endif
670 #endif /* RC_INVOKED */
671 #ifdef __OS2__
672 #pragma pack()
673 #endif
675 #endif /* npapi_h_ */