1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
14 * The Original Code is mozilla.org code.
16 * The Initial Developer of the Original Code is
17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998
19 * the Initial Developer. All Rights Reserved.
22 * Portions Copyright (c) 2004-2006, Nokia Corporation
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the NPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the NPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
40 * Nokia modified this file, by changing certain variables for the purpose of
41 * porting the file to the Symbian platform on May 1st, 2004.
45 * Netscape client plug-in API spec
51 #define GENERIC_CONTEXTS
54 #include "jri.h" /* Java Runtime Interface */
69 # define _declspec __declspec
74 # endif /* macintosh */
79 # endif /* __INTEL__ */
81 #endif /* __MWERKS__ */
87 #if defined(__APPLE_CC__) && !defined(__MACOS_CLASSIC__)
92 #include <Quickdraw.h>
97 #include <Carbon/Carbon.h>
98 #include <ApplicationServices/ApplicationServices.h>
99 #include <OpenGL/OpenGL.h>
103 #include <X11/Xlib.h>
104 #include <X11/Xutil.h>
112 #include <np_defines.h>
114 #if defined(XP_MACOSX) && defined(__LP64__)
115 #error 64-bit Netscape plug-ins are not supported on Mac OS X
118 /*----------------------------------------------------------------------*/
119 /* Plugin Version Constants */
120 /*----------------------------------------------------------------------*/
122 #define NP_VERSION_MAJOR 0
123 #define NP_VERSION_MINOR 18
127 /*----------------------------------------------------------------------*/
128 /* Definition of Basic Types */
129 /*----------------------------------------------------------------------*/
133 typedef unsigned short uint16;
139 typedef unsigned int uint32;
141 typedef unsigned long uint32;
142 #endif /* __LP64__ */
156 #endif /* __LP64__ */
169 typedef unsigned char NPBool;
170 typedef int16 NPError;
171 typedef int16 NPReason;
172 #ifndef __SYMBIAN32__
173 typedef char* NPMIMEType;
174 #else/* __SYMBIAN32__ */
175 typedef const TDesC8& NPMIMEType;
178 /*----------------------------------------------------------------------*/
179 /* Structures and definitions */
180 /*----------------------------------------------------------------------*/
182 #if !defined(__LP64__)
183 #if defined(XP_MAC) || defined(XP_MACOSX)
184 #pragma options align=mac68k
186 #endif /* __LP64__ */
189 * NPP is a plug-in's opaque instance handle
192 #ifndef _NP_RUNTIME_H_NPP
193 #define _NP_RUNTIME_H_NPP
196 void* pdata; /* plug-in private data */
197 void* ndata; /* netscape private data */
201 #endif // _NP_RUNTIME_H_NPP
205 void* pdata; /* plug-in private data */
206 void* ndata; /* netscape private data */
212 typedef struct _NPStream
214 void* pdata; /* plug-in private data */
215 void* ndata; /* netscape private data */
216 #ifndef __SYMBIAN32__
218 #else /*__SYMBIAN32__*/
224 const char* headers; /* Response headers from host.
225 * Exists only for >= NPVERS_HAS_RESPONSE_HEADERS.
226 * Used for HTTP only; NULL for non-HTTP.
227 * Available from NPP_NewStream onwards.
228 * Plugin should copy this data before storing it.
229 * Includes HTTP status line and all headers,
230 * preferably verbatim as received from server,
231 * headers formatted as in HTTP ("Header: Value"),
232 * and newlines (\n, NOT \r\n) separating lines.
233 * Terminated by \n\0 (NOT \n\n\0). */
237 typedef struct _NPByteRange
239 int32 offset; /* negative offset means from the end */
241 struct _NPByteRange* next;
245 typedef struct _NPSavedData
252 typedef struct _NPRect
263 * Unix specific structures and definitions
267 * Callback Structures.
269 * These are used to pass additional platform specific information.
279 } NPAnyCallbackStruct;
288 } NPSetWindowCallbackStruct;
294 } NPPrintCallbackStruct;
299 * The following masks are applied on certain platforms to NPNV and
300 * NPPV selectors that pass around pointers to COM interfaces. Newer
301 * compilers on some platforms may generate vtables that are not
302 * compatible with older compilers. To prevent older plugins from
303 * not understanding a new browser's ABI, these masks change the
304 * values of those selectors on those platforms. To remain backwards
305 * compatible with differenet versions of the browser, plugins can
306 * use these masks to dynamically determine and use the correct C++
307 * ABI that the browser is expecting. This does not apply to Windows
308 * as Microsoft's COM ABI will likely not change.
311 #define NP_ABI_GCC3_MASK 0x10000000
313 * gcc 3.x generated vtables on UNIX and OSX are incompatible with
314 * previous compilers.
316 #if (defined (XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3))
317 #define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK
319 #define _NP_ABI_MIXIN_FOR_GCC3 0
322 #define NP_ABI_MACHO_MASK 0x01000000
324 * On OSX, the Mach-O executable format is significantly
325 * different than CFM. In addition to having a different
326 * C++ ABI, it also has has different C calling convention.
327 * You must use glue code when calling between CFM and
328 * Mach-O C functions.
330 #if (defined(TARGET_RT_MAC_MACHO))
331 #define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK
333 #define _NP_ABI_MIXIN_FOR_MACHO 0
337 #define NP_ABI_MASK (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)
340 * List of variable names for which NPP_GetValue shall be implemented
343 NPPVpluginNameString = 1,
344 NPPVpluginDescriptionString,
345 NPPVpluginWindowBool,
346 NPPVpluginTransparentBool,
348 NPPVjavaClass, /* Not implemented in WebKit */
349 NPPVpluginWindowSize, /* Not implemented in WebKit */
350 NPPVpluginTimerInterval, /* Not implemented in WebKit */
352 NPPVpluginScriptableInstance = (10 | NP_ABI_MASK), /* Not implemented in WebKit */
353 NPPVpluginScriptableIID = 11, /* Not implemented in WebKit */
355 /* 12 and over are available on Mozilla builds starting with 0.9.9 */
356 NPPVjavascriptPushCallerBool = 12, /* Not implemented in WebKit */
357 NPPVpluginKeepLibraryInMemory = 13, /* Not implemented in WebKit */
358 NPPVpluginNeedsXEmbed = 14, /* Not implemented in WebKit */
360 /* Get the NPObject for scripting the plugin. */
361 NPPVpluginScriptableNPObject = 15,
364 // Custom NPP variables, starting from 100 till 1000
365 NPPVPluginFocusPosition = 100,
366 NPPVPluginDeactivate = 101,
367 NPPVPluginZoom = 102,
368 NPPVPluginPointerEvent = 103,
369 NPPVpluginInteractiveBool = 1000,
372 /* Get the plugin value (as \0-terminated UTF-8 string data) for
373 * form submission if the plugin is part of a form. Use
374 * NPN_MemAlloc() to allocate memory for the string data.
376 NPPVformValue = 16, /* Not implemented in WebKit */
377 NPPVpluginFullScreenBool = 17 /* Not implemented in WebKit */
381 * List of variable names for which NPN_GetValue is implemented by Mozilla
387 NPNVjavascriptEnabledBool,
391 /* 10 and over are available on Mozilla builds starting with 0.9.4 */
392 NPNVserviceManager = (10 | NP_ABI_MASK), /* Not implemented in WebKit */
393 NPNVDOMElement = (11 | NP_ABI_MASK), /* Not implemented in WebKit */
394 NPNVDOMWindow = (12 | NP_ABI_MASK), /* Not implemented in WebKit */
395 NPNVToolkit = (13 | NP_ABI_MASK), /* Not implemented in WebKit */
396 NPNVSupportsXEmbedBool = 14, /* Not implemented in WebKit */
398 /* Get the NPObject wrapper for the browser window. */
399 NPNVWindowNPObject = 15,
401 /* Get the NPObject wrapper for the plugins DOM element. */
402 NPNVPluginElementNPObject,
405 , NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugin */
407 #ifndef NP_NO_QUICKDRAW
408 , NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the QuickDraw drawing model */
410 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the CoreGraphics drawing model */
411 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL drawing model (CGL on Mac) */
412 #endif /* XP_MACOSX */
414 /* Get the id of the currently connected access point */
416 NPNVGenericParameter,
417 NPNVSupportsWindowless
420 #ifdef GENERIC_CONTEXTS
422 union NPN_GenericParam {
424 NPN_GenericParam(int aIntValue)
430 NPN_GenericParam(bool aBoolValue)
431 :boolValue(aBoolValue)
436 NPN_GenericParam(const TDesC& aStrValue)
442 NPN_GenericParam(void* aVoidValue)
443 :voidValue(aVoidValue)
449 const TDesC& strValue;
454 typedef struct NPN_GenericElement{
456 NPN_GenericElement(const TDesC& aElementId, int aElementValue)
457 :genericElementId(aElementId), genericElementValue(aElementValue)
462 NPN_GenericElement(const TDesC& aElementId, bool aElementValue)
463 :genericElementId(aElementId), genericElementValue(aElementValue)
468 NPN_GenericElement(const TDesC& aElementId, void* aElementValue)
469 :genericElementId(aElementId), genericElementValue(aElementValue)
474 NPN_GenericElement(const TDesC& aElementId, const TDesC& aElementValue)
475 :genericElementId(aElementId), genericElementValue(aElementValue)
479 const TDesC& genericElementId;
480 NPN_GenericParam genericElementValue;
484 * The type of a NPWindow - it specifies the type of the data structure
485 * returned in the window field.
488 NPWindowTypeWindow = 1,
495 * The drawing model for a Mac OS X plugin. These are the possible values for the NPNVpluginDrawingModel variable.
499 #ifndef NP_NO_QUICKDRAW
500 NPDrawingModelQuickDraw = 0,
502 NPDrawingModelCoreGraphics = 1,
503 NPDrawingModelOpenGL = 2
508 typedef struct _NPWindow
510 void* window; /* Platform specific window handle */
511 int32 x; /* Position of top left corner relative */
512 int32 y; /* to a netscape page. */
513 uint32 width; /* Maximum window size */
515 NPRect clipRect; /* Clipping rectangle in port coordinates */
516 /* Used by MAC only. */
518 void * ws_info; /* Platform-dependent additonal data */
520 NPWindowType type; /* Is this a window or a drawable? */
524 typedef struct _NPFullPrint
526 NPBool pluginPrinted; /* Set TRUE if plugin handled fullscreen */
528 NPBool printOne; /* TRUE if plugin should print one copy */
529 /* to default printer */
530 void* platformPrint; /* Platform-specific printing info */
533 typedef struct _NPEmbedPrint
536 void* platformPrint; /* Platform-specific printing info */
539 typedef struct _NPPrint
541 uint16 mode; /* NP_FULL or NP_EMBED */
544 NPFullPrint fullPrint; /* if mode is NP_FULL */
545 NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
549 #if defined(XP_MAC) || defined(XP_MACOSX)
550 typedef EventRecord NPEvent;
551 #elif defined(XP_WIN)
552 typedef struct _NPEvent
558 #elif defined (XP_UNIX)
559 typedef XEvent NPEvent;
560 #elif defined (__SYMBIAN32__)
561 typedef struct _NPEvent
567 typedef void* NPEvent;
571 typedef RgnHandle NPRegion;
572 #elif defined(XP_MACOSX)
574 * NPRegion's type depends on the drawing model specified by the plugin (see NPNVpluginDrawingModel).
575 * NPQDRegion represents a QuickDraw RgnHandle and is used with the QuickDraw drawing model.
576 * NPCGRegion repesents a graphical region when using any other drawing model.
578 typedef void *NPRegion;
579 #ifndef NP_NO_QUICKDRAW
580 typedef RgnHandle NPQDRegion;
582 typedef CGPathRef NPCGRegion;
583 #elif defined(XP_WIN)
584 typedef HRGN NPRegion;
585 #elif defined(XP_UNIX)
586 typedef Region NPRegion;
588 typedef void *NPRegion;
594 * NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelCoreGraphics
595 * as its drawing model.
598 typedef struct NP_CGContext
600 CGContextRef context;
605 * NP_GLContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelOpenGL as its
609 typedef struct NP_GLContext
611 CGLContextObj context;
615 #endif /* XP_MACOSX */
617 #if defined(XP_MAC) || defined(XP_MACOSX)
620 * Mac-specific structures and definitions.
623 #ifndef NP_NO_QUICKDRAW
626 * NP_Port is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelQuickDraw as its
627 * drawing model, or the plugin does not specify a drawing model.
629 * It is not recommended that new plugins use NPDrawingModelQuickDraw or NP_Port, as QuickDraw has been
630 * deprecated in Mac OS X 10.5. CoreGraphics is the preferred drawing API.
632 * NP_Port is not available in 64-bit.
635 typedef struct NP_Port
637 CGrafPtr port; /* Grafport */
638 int32 portx; /* position inside the topmost window */
642 #endif /* NP_NO_QUICKDRAW */
645 * Non-standard event types that can be passed to HandleEvent
647 #define getFocusEvent (osEvt + 16)
648 #define loseFocusEvent (osEvt + 17)
649 #define adjustCursorEvent (osEvt + 18)
655 * Values for mode passed to NPP_New:
661 * Values for stream type passed to NPP_NewStream:
666 #define NP_ASFILEONLY 4
668 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1)
670 #if !defined(__LP64__)
671 #if defined(XP_MAC) || defined(XP_MACOSX)
672 #pragma options align=reset
674 #endif /* __LP64__ */
677 /*----------------------------------------------------------------------*/
678 /* Error and Reason Code definitions */
679 /*----------------------------------------------------------------------*/
682 * Values of type NPError:
685 #define NPERR_NO_ERROR (NPERR_BASE + 0)
686 #define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
687 #define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2)
688 #define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3)
689 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4)
690 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5)
691 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6)
692 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7)
693 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8)
694 #define NPERR_INVALID_PARAM (NPERR_BASE + 9)
695 #define NPERR_INVALID_URL (NPERR_BASE + 10)
696 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11)
697 #define NPERR_NO_DATA (NPERR_BASE + 12)
698 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13)
701 * Values of type NPReason:
704 #define NPRES_DONE (NPRES_BASE + 0)
705 #define NPRES_NETWORK_ERR (NPRES_BASE + 1)
706 #define NPRES_USER_BREAK (NPRES_BASE + 2)
709 * Don't use these obsolete error codes any more.
711 #define NP_NOERR NP_NOERR_is_obsolete_use_NPERR_NO_ERROR
712 #define NP_EINVAL NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR
713 #define NP_EABORT NP_EABORT_is_obsolete_use_NPRES_USER_BREAK
716 * Version feature information
718 #define NPVERS_HAS_STREAMOUTPUT 8
719 #define NPVERS_HAS_NOTIFICATION 9
720 #define NPVERS_HAS_LIVECONNECT 9
721 #define NPVERS_WIN16_HAS_LIVECONNECT 9
722 #define NPVERS_68K_HAS_LIVECONNECT 11
723 #define NPVERS_HAS_WINDOWLESS 11
724 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */
725 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
726 #define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see bug 13061 */
727 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */
728 #define NPVERS_HAS_RESPONSE_HEADERS 17
729 #define NPVERS_HAS_NPOBJECT_ENUM 18
732 /*----------------------------------------------------------------------*/
733 /* Function Prototypes */
734 /*----------------------------------------------------------------------*/
736 #if defined(_WINDOWS) && !defined(WIN32)
737 #define NP_LOADDS _loadds
742 #ifndef __SYMBIAN32__
749 * NPP_* functions are provided by the plugin and called by the navigator.
753 char* NPP_GetMIMEDescription(void);
758 IMPORT_C const TDesC* NPP_GetMIMEDescription(void);
759 #endif /* __SYMBIAN32__ */
761 NPError NPP_Initialize(void);
764 #endif /* __SYMBIAN32__ */
765 void NPP_Shutdown(void);
767 #ifndef __SYMBIAN32__
768 NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance,
769 uint16 mode, int16 argc, char* argn[],
770 char* argv[], NPSavedData* saved);
772 NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance,
773 uint16 mode, CDesCArray* argn,
774 CDesCArray* argv, NPSavedData* saved);
775 #endif /* __SYMBIAN32__ */
777 NPError NP_LOADDS NPP_Destroy(NPP instance, NPSavedData** save);
778 NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window);
779 NPError NP_LOADDS NPP_NewStream(NPP instance, NPMIMEType type,
780 NPStream* stream, NPBool seekable,
782 NPError NP_LOADDS NPP_DestroyStream(NPP instance, NPStream* stream,
784 int32 NP_LOADDS NPP_WriteReady(NPP instance, NPStream* stream);
785 int32 NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32 offset,
786 int32 len, void* buffer);
788 #ifndef __SYMBIAN32__
789 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
791 #else/* __SYMBIAN32__ */
792 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
794 #endif /* __SYMBIAN32__ */
796 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
797 int16 NPP_HandleEvent(NPP instance, void* event);
799 #ifndef __SYMBIAN32__
800 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
801 NPReason reason, void* notifyData);
802 jref NP_LOADDS NPP_GetJavaClass(void);
803 #else/* __SYMBIAN32__ */
804 void NP_LOADDS NPP_URLNotify(NPP instance, const TDesC& url,
805 NPReason reason, void* notifyData);
806 #endif /* __SYMBIAN32__ */
811 #endif /* __SYMBIAN32__ */
812 NPError NPP_GetValue(NPP instance, NPPVariable variable,
814 NPError NPP_SetValue(NPP instance, NPNVariable variable,
818 * NPN_* functions are provided by the navigator and called by the plugin.
821 void NPN_Version(int* plugin_major, int* plugin_minor,
822 int* netscape_major, int* netscape_minor);
824 #ifndef __SYMBIAN32__
825 NPError NPN_GetURLNotify(NPP instance, const char* url,
826 const char* target, void* notifyData);
827 NPError NPN_GetURL(NPP instance, const char* url,
829 NPError NPN_PostURLNotify(NPP instance, const char* url,
830 const char* target, uint32 len,
831 const char* buf, NPBool file,
833 NPError NPN_PostURL(NPP instance, const char* url,
834 const char* target, uint32 len,
835 const char* buf, NPBool file);
836 #else/* __SYMBIAN32__ */
837 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const TDesC& url,
838 const TDesC* target, void* notifyData);
839 NPError NP_LOADDS NPN_GetURL(NPP instance, const TDesC& url,
840 const TDesC* target);
841 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const TDesC& url,
843 const TDesC& buf, NPBool file,
845 NPError NP_LOADDS NPN_PostURL(NPP instance, const TDesC& url,
847 const TDesC& buf, NPBool file);
848 #endif /* __SYMBIAN32__ */
850 NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList);
852 #ifndef __SYMBIAN32__
853 NPError NPN_NewStream(NPP instance, NPMIMEType type,
854 const char* target, NPStream** stream);
855 #else/* __SYMBIAN32__ */
856 NPError NP_LOADDS NPN_NewStream(NPP instance, NPMIMEType type,
857 const TDesC* target, NPStream** stream);
858 #endif /* __SYMBIAN32__ */
860 int32 NPN_Write(NPP instance, NPStream* stream, int32 len, void* buffer);
861 NPError NPN_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
863 #ifndef __SYMBIAN32__
864 void NPN_Status(NPP instance, const char* message);
865 #else/* __SYMBIAN32__ */
866 void NP_LOADDS NPN_Status(NPP instance, const TDesC& message);
867 #endif /* __SYMBIAN32__ */
869 #ifndef __SYMBIAN32__
870 const char* NPN_UserAgent(NPP instance);
871 #else/* __SYMBIAN32__ */
872 const TDesC* NP_LOADDS NPN_UserAgent(NPP instance);
873 #endif /* __SYMBIAN32__ */
876 void* NPN_MemAlloc(uint32 size);
877 void NPN_MemFree(void* ptr);
878 uint32 NPN_MemFlush(uint32 size);
879 void NPN_ReloadPlugins(NPBool reloadPages);
880 #ifndef __SYMBIAN32__
881 JRIEnv* NPN_GetJavaEnv(void);
882 jref NPN_GetJavaPeer(NPP instance);
884 NPError NPN_GetValue(NPP instance, NPNVariable variable,
886 NPError NPN_SetValue(NPP instance, NPPVariable variable,
888 void NPN_InvalidateRect(NPP instance, NPRect *invalidRect);
889 void NPN_InvalidateRegion(NPP instance, NPRegion invalidRegion);
890 void NPN_ForceRedraw(NPP instance);
891 void NPN_PushPopupsEnabledState(NPP instance, NPBool enabled);
892 void NPN_PopPopupsEnabledState(NPP instance);
894 #ifndef __SYMBIAN32__
896 } /* end extern "C" */
900 #endif /* _NPAPI_H_ */