15 #if defined(__OS2__) || defined(OS2)
21 #if defined(_WIN32) && !defined(__SYMBIAN32__)
28 #if defined(__SYMBIAN32__)
35 #if defined(__APPLE_CC__) && !defined(XP_UNIX)
41 #if defined(XP_MACOSX) && defined(__LP64__)
42 #define NP_NO_QUICKDRAW
46 #if defined(XP_MACOSX)
47 #include <ApplicationServices/ApplicationServices.h>
48 #include <OpenGL/OpenGL.h>
50 #include <Carbon/Carbon.h>
58 #include <X11/Xutil.h>
62 #if defined(XP_SYMBIAN)
71 #define NP_VERSION_MAJOR 0
72 #define NP_VERSION_MINOR 27
101 #define NP_INFO_ProductVersion 1
102 #define NP_INFO_MIMEType 2
103 #define NP_INFO_FileOpenName 3
104 #define NP_INFO_FileExtents 4
106 #define NP_INFO_FileDescription 5
107 #define NP_INFO_ProductName 6
109 #define NP_INFO_CompanyName 7
110 #define NP_INFO_FileVersion 8
111 #define NP_INFO_InternalName 9
112 #define NP_INFO_LegalCopyright 10
113 #define NP_INFO_OriginalFilename 11
130 #if !defined(__LP64__)
131 #if defined(XP_MACOSX)
132 #pragma options align=mac68k
227 #define kNPEventNotHandled 0
228 #define kNPEventHandled 1
230 #define kNPEventStartIME 2
250 } NPAnyCallbackStruct;
261 } NPSetWindowCallbackStruct;
267 } NPPrintCallbackStruct;
272 #if defined(XP_MACOSX)
273 #ifndef NP_NO_QUICKDRAW
274 NPDrawingModelQuickDraw = 0,
276 NPDrawingModelCoreGraphics = 1,
277 NPDrawingModelOpenGL = 2,
278 NPDrawingModelCoreAnimation = 3,
279 NPDrawingModelInvalidatingCoreAnimation = 4,
282 NPDrawingModelSyncWin = 5,
285 NPDrawingModelSyncX = 6,
289 , NPDrawingModelAsyncWindowsDXGISurface = 8
296 NPEventModelCarbon = 0,
298 NPEventModelCocoa = 1
315 #define NP_ABI_GCC3_MASK 0x10000000
320 #if (defined(XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3))
321 #define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK
323 #define _NP_ABI_MIXIN_FOR_GCC3 0
326 #if defined(XP_MACOSX)
327 #define NP_ABI_MACHO_MASK 0x01000000
328 #define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK
330 #define _NP_ABI_MIXIN_FOR_MACHO 0
333 #define NP_ABI_MASK (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)
382 #
if defined(XP_MACOSX)
384 , NPPVpluginEventModel = 1001
386 , NPPVpluginCoreAnimationLayer = 1003
389 #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
390 , NPPVpluginWindowlessLocalBool = 2002
426 #if defined(XP_MACOSX)
427 , NPNVcontentsScaleFactor = 1001
428 #ifndef NP_NO_QUICKDRAW
429 , NPNVsupportsQuickDrawBool = 2000
431 , NPNVsupportsCoreGraphicsBool = 2001
432 , NPNVsupportsOpenGLBool = 2002
433 , NPNVsupportsCoreAnimationBool = 2003
434 , NPNVsupportsInvalidatingCoreAnimationBool = 2004
438 , NPNVsupportsAsyncWindowsDXGISurfaceBool = 2008
440 #if defined(XP_MACOSX)
442 , NPNVsupportsCarbonBool = 3000
444 , NPNVsupportsCocoaBool = 3001
445 , NPNVsupportsUpdatedCocoaTextInputBool = 3002
447 , NPNVsupportsCompositingCoreAnimationPluginsBool = 74656
450 #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
451 , NPNVSupportsWindowlessLocal = 2002
487 #if (defined(XP_UNIX) || defined(XP_SYMBIAN)) && !defined(XP_MACOSX)
533 #if defined(XP_MACOSX)
537 #elif defined(XP_SYMBIAN)
539 #elif defined(XP_WIN)
540 typedef struct _NPEvent
546 #elif defined(XP_OS2)
547 typedef struct _NPEvent
553 #elif defined(XP_UNIX) && defined(MOZ_X11)
559 #if defined(XP_MACOSX)
561 #ifndef NP_NO_QUICKDRAW
562 typedef RgnHandle NPQDRegion;
564 typedef CGPathRef NPCGRegion;
565 #elif defined(XP_WIN)
567 #elif defined(XP_UNIX) && defined(MOZ_X11)
569 #elif defined(XP_SYMBIAN)
579 #if defined(XP_MACOSX)
593 #if defined(XP_MACOSX)
595 #ifndef NP_NO_QUICKDRAW
596 typedef struct NP_Port
609 typedef struct NP_CGContext
611 CGContextRef context;
620 typedef struct NP_GLContext
622 CGLContextObj context;
631 NPCocoaEventDrawRect = 1,
632 NPCocoaEventMouseDown,
634 NPCocoaEventMouseMoved,
635 NPCocoaEventMouseEntered,
636 NPCocoaEventMouseExited,
637 NPCocoaEventMouseDragged,
640 NPCocoaEventFlagsChanged,
641 NPCocoaEventFocusChanged,
642 NPCocoaEventWindowFocusChanged,
643 NPCocoaEventScrollWheel,
644 NPCocoaEventTextInput
647 typedef struct _NPCocoaEvent {
648 NPCocoaEventType type;
652 uint32_t modifierFlags;
655 int32_t buttonNumber;
662 uint32_t modifierFlags;
669 CGContextRef context;
687 NPEventType_GetFocusEvent = (osEvt + 16),
688 NPEventType_LoseFocusEvent,
689 NPEventType_AdjustCursorEvent,
690 NPEventType_MenuCommandEvent,
691 NPEventType_ClippingChangedEvent,
692 NPEventType_ScrollingBeginsEvent = 1000,
693 NPEventType_ScrollingEndsEvent
711 #define NP_ASFILEONLY 4
713 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1)
718 #define NP_CLEAR_ALL 0
719 #define NP_CLEAR_CACHE (1 << 0)
721 #if !defined(__LP64__)
722 #if defined(XP_MACOSX)
723 #pragma options align=reset
735 #define NPERR_NO_ERROR (NPERR_BASE + 0)
736 #define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
737 #define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2)
738 #define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3)
739 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4)
740 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5)
741 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6)
742 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7)
743 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8)
744 #define NPERR_INVALID_PARAM (NPERR_BASE + 9)
745 #define NPERR_INVALID_URL (NPERR_BASE + 10)
746 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11)
747 #define NPERR_NO_DATA (NPERR_BASE + 12)
748 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13)
749 #define NPERR_TIME_RANGE_NOT_SUPPORTED (NPERR_BASE + 14)
750 #define NPERR_MALFORMED_SITE (NPERR_BASE + 15)
756 #define NPRES_DONE (NPRES_BASE + 0)
757 #define NPRES_NETWORK_ERR (NPRES_BASE + 1)
758 #define NPRES_USER_BREAK (NPRES_BASE + 2)
763 #define NP_NOERR NP_NOERR_is_obsolete_use_NPERR_NO_ERROR
764 #define NP_EINVAL NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR
765 #define NP_EABORT NP_EABORT_is_obsolete_use_NPRES_USER_BREAK
770 #define NPVERS_HAS_STREAMOUTPUT 8
771 #define NPVERS_HAS_NOTIFICATION 9
772 #define NPVERS_HAS_LIVECONNECT 9
773 #define NPVERS_68K_HAS_LIVECONNECT 11
774 #define NPVERS_HAS_WINDOWLESS 11
775 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13
776 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
777 #define NPVERS_HAS_FORM_VALUES 15
778 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16
779 #define NPVERS_HAS_RESPONSE_HEADERS 17
780 #define NPVERS_HAS_NPOBJECT_ENUM 18
781 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
782 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20
783 #define NPVERS_HAS_URL_AND_AUTH_INFO 21
784 #define NPVERS_HAS_PRIVATE_MODE 22
785 #define NPVERS_MACOSX_HAS_COCOA_EVENTS 23
786 #define NPVERS_HAS_ADVANCED_KEY_HANDLING 25
787 #define NPVERS_HAS_URL_REDIRECT_HANDLING 26
788 #define NPVERS_HAS_CLEAR_SITE_DATA 27
795 #define NP_LOADDS _System
807 const char* NPP_GetMIMEDescription(
void);
811 uint16_t mode, int16_t argc,
char* argn[],
822 int32_t len,
void* buffer);
840 int* netscape_major,
int* netscape_minor);
842 const char* target,
void* notifyData);
846 const char* target, uint32_t len,
847 const char* buf,
NPBool file,
850 const char* target, uint32_t len,
851 const char* buf,
NPBool file);
854 const char* target,
NPStream** stream);
871 NPRegion invalidRegion);
876 void (*func) (
void *),
879 const char *url,
char **value,
882 const char *url,
const char *value,
885 const char *protocol,
886 const char *host, int32_t port,
889 char **username, uint32_t *ulen,