Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
npapi.h File Reference
#include "nptypes.h"
+ Include dependency graph for npapi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _NPP
 
struct  _NPStream
 
struct  _NPByteRange
 
struct  _NPSavedData
 
struct  _NPRect
 
struct  _NPSize
 
struct  _NPAsyncSurface
 
struct  _NPWindow
 
struct  _NPImageExpose
 
struct  _NPFullPrint
 
struct  _NPEmbedPrint
 
struct  _NPPrint
 

Macros

#define NP_VERSION_MAJOR   0
 
#define NP_VERSION_MINOR   27
 
#define NP_INFO_ProductVersion   1
 
#define NP_INFO_MIMEType   2
 
#define NP_INFO_FileOpenName   3
 
#define NP_INFO_FileExtents   4
 
#define NP_INFO_FileDescription   5
 
#define NP_INFO_ProductName   6
 
#define NP_INFO_CompanyName   7
 
#define NP_INFO_FileVersion   8
 
#define NP_INFO_InternalName   9
 
#define NP_INFO_LegalCopyright   10
 
#define NP_INFO_OriginalFilename   11
 
#define kNPEventNotHandled   0
 
#define kNPEventHandled   1
 
#define kNPEventStartIME   2
 
#define NP_ABI_GCC3_MASK   0x10000000
 
#define _NP_ABI_MIXIN_FOR_GCC3   0
 
#define _NP_ABI_MIXIN_FOR_MACHO   0
 
#define NP_ABI_MASK   (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)
 
#define NP_EMBED   1
 
#define NP_FULL   2
 
#define NP_NORMAL   1
 
#define NP_SEEK   2
 
#define NP_ASFILE   3
 
#define NP_ASFILEONLY   4
 
#define NP_MAXREADY   (((unsigned)(~0)<<1)>>1)
 
#define NP_CLEAR_ALL   0
 
#define NP_CLEAR_CACHE   (1 << 0)
 
#define NPERR_BASE   0
 
#define NPERR_NO_ERROR   (NPERR_BASE + 0)
 
#define NPERR_GENERIC_ERROR   (NPERR_BASE + 1)
 
#define NPERR_INVALID_INSTANCE_ERROR   (NPERR_BASE + 2)
 
#define NPERR_INVALID_FUNCTABLE_ERROR   (NPERR_BASE + 3)
 
#define NPERR_MODULE_LOAD_FAILED_ERROR   (NPERR_BASE + 4)
 
#define NPERR_OUT_OF_MEMORY_ERROR   (NPERR_BASE + 5)
 
#define NPERR_INVALID_PLUGIN_ERROR   (NPERR_BASE + 6)
 
#define NPERR_INVALID_PLUGIN_DIR_ERROR   (NPERR_BASE + 7)
 
#define NPERR_INCOMPATIBLE_VERSION_ERROR   (NPERR_BASE + 8)
 
#define NPERR_INVALID_PARAM   (NPERR_BASE + 9)
 
#define NPERR_INVALID_URL   (NPERR_BASE + 10)
 
#define NPERR_FILE_NOT_FOUND   (NPERR_BASE + 11)
 
#define NPERR_NO_DATA   (NPERR_BASE + 12)
 
#define NPERR_STREAM_NOT_SEEKABLE   (NPERR_BASE + 13)
 
#define NPERR_TIME_RANGE_NOT_SUPPORTED   (NPERR_BASE + 14)
 
#define NPERR_MALFORMED_SITE   (NPERR_BASE + 15)
 
#define NPRES_BASE   0
 
#define NPRES_DONE   (NPRES_BASE + 0)
 
#define NPRES_NETWORK_ERR   (NPRES_BASE + 1)
 
#define NPRES_USER_BREAK   (NPRES_BASE + 2)
 
#define NP_NOERR   NP_NOERR_is_obsolete_use_NPERR_NO_ERROR
 
#define NP_EINVAL   NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR
 
#define NP_EABORT   NP_EABORT_is_obsolete_use_NPRES_USER_BREAK
 
#define NPVERS_HAS_STREAMOUTPUT   8
 
#define NPVERS_HAS_NOTIFICATION   9
 
#define NPVERS_HAS_LIVECONNECT   9
 
#define NPVERS_68K_HAS_LIVECONNECT   11
 
#define NPVERS_HAS_WINDOWLESS   11
 
#define NPVERS_HAS_XPCONNECT_SCRIPTING   13
 
#define NPVERS_HAS_NPRUNTIME_SCRIPTING   14
 
#define NPVERS_HAS_FORM_VALUES   15
 
#define NPVERS_HAS_POPUPS_ENABLED_STATE   16
 
#define NPVERS_HAS_RESPONSE_HEADERS   17
 
#define NPVERS_HAS_NPOBJECT_ENUM   18
 
#define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL   19
 
#define NPVERS_HAS_ALL_NETWORK_STREAMS   20
 
#define NPVERS_HAS_URL_AND_AUTH_INFO   21
 
#define NPVERS_HAS_PRIVATE_MODE   22
 
#define NPVERS_MACOSX_HAS_COCOA_EVENTS   23
 
#define NPVERS_HAS_ADVANCED_KEY_HANDLING   25
 
#define NPVERS_HAS_URL_REDIRECT_HANDLING   26
 
#define NPVERS_HAS_CLEAR_SITE_DATA   27
 
#define NP_LOADDS
 

Typedefs

typedef unsigned char NPBool
 
typedef int16_t NPError
 
typedef int16_t NPReason
 
typedef char * NPMIMEType
 
typedef struct _NPP NPP_t
 
typedef NPP_tNPP
 
typedef struct _NPStream NPStream
 
typedef struct _NPByteRange NPByteRange
 
typedef struct _NPSavedData NPSavedData
 
typedef struct _NPRect NPRect
 
typedef struct _NPSize NPSize
 
typedef struct _NPAsyncSurface NPAsyncSurface
 
typedef struct _NPWindow NPWindow
 
typedef struct _NPImageExpose NPImageExpose
 
typedef struct _NPFullPrint NPFullPrint
 
typedef struct _NPEmbedPrint NPEmbedPrint
 
typedef struct _NPPrint NPPrint
 
typedef void * NPEvent
 
typedef void * NPRegion
 
typedef struct _NPNSString NPNSString
 
typedef struct _NPNSWindow NPNSWindow
 
typedef struct _NPNSMenu NPNSMenu
 
typedef void * NPMenu
 

Enumerations

enum  NPFocusDirection { NPFocusNext = 0, NPFocusPrevious = 1 }
 
enum  NPImageFormat { NPImageFormatBGRA32 = 0x1, NPImageFormatBGRX32 = 0x2 }
 
enum  NPDrawingModel { NPDrawingModelAsyncBitmapSurface = 7 }
 
enum  NPPVariable {
  NPPVpluginNameString = 1, NPPVpluginDescriptionString, NPPVpluginWindowBool, NPPVpluginTransparentBool,
  NPPVjavaClass, NPPVpluginWindowSize, NPPVpluginTimerInterval, NPPVpluginScriptableInstance = (10 | NP_ABI_MASK),
  NPPVpluginScriptableIID = 11, NPPVjavascriptPushCallerBool = 12, NPPVpluginKeepLibraryInMemory = 13, NPPVpluginNeedsXEmbed = 14,
  NPPVpluginScriptableNPObject = 15, NPPVformValue = 16, NPPVpluginUrlRequestsDisplayedBool = 17, NPPVpluginWantsAllNetworkStreams = 18,
  NPPVpluginNativeAccessibleAtkPlugId = 19, NPPVpluginCancelSrcStream = 20, NPPVsupportsAdvancedKeyHandling = 21, NPPVpluginUsesDOMForCursorBool = 22,
  NPPVpluginDrawingModel = 1000
}
 
enum  NPNVariable {
  NPNVxDisplay = 1, NPNVxtAppContext, NPNVnetscapeWindow, NPNVjavascriptEnabledBool,
  NPNVasdEnabledBool, NPNVisOfflineBool, NPNVserviceManager = (10 | NP_ABI_MASK), NPNVDOMElement = (11 | NP_ABI_MASK),
  NPNVDOMWindow = (12 | NP_ABI_MASK), NPNVToolkit = (13 | NP_ABI_MASK), NPNVSupportsXEmbedBool = 14, NPNVWindowNPObject = 15,
  NPNVPluginElementNPObject = 16, NPNVSupportsWindowless = 17, NPNVprivateModeBool = 18, NPNVsupportsAdvancedKeyHandling = 21,
  NPNVdocumentOrigin = 22, NPNVpluginDrawingModel = 1000, NPNVsupportsAsyncBitmapSurfaceBool = 2007
}
 
enum  NPNURLVariable { NPNURLVCookie = 501, NPNURLVProxy }
 
enum  NPNToolkitType { NPNVGtk12 = 1, NPNVGtk2 }
 
enum  NPWindowType { NPWindowTypeWindow = 1, NPWindowTypeDrawable }
 
enum  NPCoordinateSpace {
  NPCoordinateSpacePlugin = 1, NPCoordinateSpaceWindow, NPCoordinateSpaceFlippedWindow, NPCoordinateSpaceScreen,
  NPCoordinateSpaceFlippedScreen
}
 

Functions

NPError NP_LOADDS NPP_New (NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData *saved)
 
NPError NP_LOADDS NPP_Destroy (NPP instance, NPSavedData **save)
 
NPError NP_LOADDS NPP_SetWindow (NPP instance, NPWindow *window)
 
NPError NP_LOADDS NPP_NewStream (NPP instance, NPMIMEType type, NPStream *stream, NPBool seekable, uint16_t *stype)
 
NPError NP_LOADDS NPP_DestroyStream (NPP instance, NPStream *stream, NPReason reason)
 
int32_t NP_LOADDS NPP_WriteReady (NPP instance, NPStream *stream)
 
int32_t NP_LOADDS NPP_Write (NPP instance, NPStream *stream, int32_t offset, int32_t len, void *buffer)
 
void NP_LOADDS NPP_StreamAsFile (NPP instance, NPStream *stream, const char *fname)
 
void NP_LOADDS NPP_Print (NPP instance, NPPrint *platformPrint)
 
int16_t NP_LOADDS NPP_HandleEvent (NPP instance, void *event)
 
void NP_LOADDS NPP_URLNotify (NPP instance, const char *url, NPReason reason, void *notifyData)
 
NPError NP_LOADDS NPP_GetValue (NPP instance, NPPVariable variable, void *value)
 
NPError NP_LOADDS NPP_SetValue (NPP instance, NPNVariable variable, void *value)
 
NPBool NP_LOADDS NPP_GotFocus (NPP instance, NPFocusDirection direction)
 
void NP_LOADDS NPP_LostFocus (NPP instance)
 
void NP_LOADDS NPP_URLRedirectNotify (NPP instance, const char *url, int32_t status, void *notifyData)
 
NPError NP_LOADDS NPP_ClearSiteData (const char *site, uint64_t flags, uint64_t maxAge)
 
char **NP_LOADDS NPP_GetSitesWithData (void)
 
void NP_LOADDS NPP_DidComposite (NPP instance)
 
void NP_LOADDS NPN_Version (int *plugin_major, int *plugin_minor, int *netscape_major, int *netscape_minor)
 
NPError NP_LOADDS NPN_GetURLNotify (NPP instance, const char *url, const char *target, void *notifyData)
 
NPError NP_LOADDS NPN_GetURL (NPP instance, const char *url, const char *target)
 
NPError NP_LOADDS NPN_PostURLNotify (NPP instance, const char *url, const char *target, uint32_t len, const char *buf, NPBool file, void *notifyData)
 
NPError NP_LOADDS NPN_PostURL (NPP instance, const char *url, const char *target, uint32_t len, const char *buf, NPBool file)
 
NPError NP_LOADDS NPN_RequestRead (NPStream *stream, NPByteRange *rangeList)
 
NPError NP_LOADDS NPN_NewStream (NPP instance, NPMIMEType type, const char *target, NPStream **stream)
 
int32_t NP_LOADDS NPN_Write (NPP instance, NPStream *stream, int32_t len, void *buffer)
 
NPError NP_LOADDS NPN_DestroyStream (NPP instance, NPStream *stream, NPReason reason)
 
void NP_LOADDS NPN_Status (NPP instance, const char *message)
 
const char *NP_LOADDS NPN_UserAgent (NPP instance)
 
void *NP_LOADDS NPN_MemAlloc (uint32_t size)
 
void NP_LOADDS NPN_MemFree (void *ptr)
 
uint32_t NP_LOADDS NPN_MemFlush (uint32_t size)
 
void NP_LOADDS NPN_ReloadPlugins (NPBool reloadPages)
 
NPError NP_LOADDS NPN_GetValue (NPP instance, NPNVariable variable, void *value)
 
NPError NP_LOADDS NPN_SetValue (NPP instance, NPPVariable variable, void *value)
 
void NP_LOADDS NPN_InvalidateRect (NPP instance, NPRect *invalidRect)
 
void NP_LOADDS NPN_InvalidateRegion (NPP instance, NPRegion invalidRegion)
 
void NP_LOADDS NPN_ForceRedraw (NPP instance)
 
void NP_LOADDS NPN_PushPopupsEnabledState (NPP instance, NPBool enabled)
 
void NP_LOADDS NPN_PopPopupsEnabledState (NPP instance)
 
void NP_LOADDS NPN_PluginThreadAsyncCall (NPP instance, void(*func)(void *), void *userData)
 
NPError NP_LOADDS NPN_GetValueForURL (NPP instance, NPNURLVariable variable, const char *url, char **value, uint32_t *len)
 
NPError NP_LOADDS NPN_SetValueForURL (NPP instance, NPNURLVariable variable, const char *url, const char *value, uint32_t len)
 
NPError NP_LOADDS NPN_GetAuthenticationInfo (NPP instance, const char *protocol, const char *host, int32_t port, const char *scheme, const char *realm, char **username, uint32_t *ulen, char **password, uint32_t *plen)
 
uint32_t NP_LOADDS NPN_ScheduleTimer (NPP instance, uint32_t interval, NPBool repeat, void(*timerFunc)(NPP npp, uint32_t timerID))
 
void NP_LOADDS NPN_UnscheduleTimer (NPP instance, uint32_t timerID)
 
NPError NP_LOADDS NPN_PopUpContextMenu (NPP instance, NPMenu *menu)
 
NPBool NP_LOADDS NPN_ConvertPoint (NPP instance, double sourceX, double sourceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSpace)
 
NPBool NP_LOADDS NPN_HandleEvent (NPP instance, void *event, NPBool handled)
 
NPBool NP_LOADDS NPN_UnfocusInstance (NPP instance, NPFocusDirection direction)
 
void NP_LOADDS NPN_URLRedirectResponse (NPP instance, void *notifyData, NPBool allow)
 
NPError NP_LOADDS NPN_InitAsyncSurface (NPP instance, NPSize *size, NPImageFormat format, void *initData, NPAsyncSurface *surface)
 
NPError NP_LOADDS NPN_FinalizeAsyncSurface (NPP instance, NPAsyncSurface *surface)
 
void NP_LOADDS NPN_SetCurrentAsyncSurface (NPP instance, NPAsyncSurface *surface, NPRect *changed)
 

Macro Definition Documentation

#define _NP_ABI_MIXIN_FOR_GCC3   0

Definition at line 323 of file npapi.h.

#define _NP_ABI_MIXIN_FOR_MACHO   0

Definition at line 330 of file npapi.h.

#define kNPEventHandled   1

Definition at line 228 of file npapi.h.

#define kNPEventNotHandled   0

Definition at line 227 of file npapi.h.

#define kNPEventStartIME   2

Definition at line 230 of file npapi.h.

#define NP_ABI_GCC3_MASK   0x10000000

Definition at line 315 of file npapi.h.

#define NP_ABI_MASK   (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)

Definition at line 333 of file npapi.h.

#define NP_ASFILE   3

Definition at line 710 of file npapi.h.

#define NP_ASFILEONLY   4

Definition at line 711 of file npapi.h.

#define NP_CLEAR_ALL   0

Definition at line 718 of file npapi.h.

#define NP_CLEAR_CACHE   (1 << 0)

Definition at line 719 of file npapi.h.

#define NP_EABORT   NP_EABORT_is_obsolete_use_NPRES_USER_BREAK

Definition at line 765 of file npapi.h.

#define NP_EINVAL   NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR

Definition at line 764 of file npapi.h.

#define NP_EMBED   1

Definition at line 702 of file npapi.h.

#define NP_FULL   2

Definition at line 703 of file npapi.h.

#define NP_INFO_CompanyName   7

Definition at line 109 of file npapi.h.

#define NP_INFO_FileDescription   5

Definition at line 106 of file npapi.h.

#define NP_INFO_FileExtents   4

Definition at line 104 of file npapi.h.

#define NP_INFO_FileOpenName   3

Definition at line 103 of file npapi.h.

#define NP_INFO_FileVersion   8

Definition at line 110 of file npapi.h.

#define NP_INFO_InternalName   9

Definition at line 111 of file npapi.h.

#define NP_INFO_LegalCopyright   10

Definition at line 112 of file npapi.h.

#define NP_INFO_MIMEType   2

Definition at line 102 of file npapi.h.

#define NP_INFO_OriginalFilename   11

Definition at line 113 of file npapi.h.

#define NP_INFO_ProductName   6

Definition at line 107 of file npapi.h.

#define NP_INFO_ProductVersion   1

Definition at line 101 of file npapi.h.

#define NP_LOADDS

Definition at line 797 of file npapi.h.

#define NP_MAXREADY   (((unsigned)(~0)<<1)>>1)

Definition at line 713 of file npapi.h.

#define NP_NOERR   NP_NOERR_is_obsolete_use_NPERR_NO_ERROR

Definition at line 763 of file npapi.h.

#define NP_NORMAL   1

Definition at line 708 of file npapi.h.

#define NP_SEEK   2

Definition at line 709 of file npapi.h.

#define NP_VERSION_MAJOR   0

Definition at line 71 of file npapi.h.

#define NP_VERSION_MINOR   27

Definition at line 72 of file npapi.h.

#define NPERR_BASE   0

Definition at line 734 of file npapi.h.

#define NPERR_FILE_NOT_FOUND   (NPERR_BASE + 11)

Definition at line 746 of file npapi.h.

#define NPERR_GENERIC_ERROR   (NPERR_BASE + 1)

Definition at line 736 of file npapi.h.

#define NPERR_INCOMPATIBLE_VERSION_ERROR   (NPERR_BASE + 8)

Definition at line 743 of file npapi.h.

#define NPERR_INVALID_FUNCTABLE_ERROR   (NPERR_BASE + 3)

Definition at line 738 of file npapi.h.

#define NPERR_INVALID_INSTANCE_ERROR   (NPERR_BASE + 2)

Definition at line 737 of file npapi.h.

#define NPERR_INVALID_PARAM   (NPERR_BASE + 9)

Definition at line 744 of file npapi.h.

#define NPERR_INVALID_PLUGIN_DIR_ERROR   (NPERR_BASE + 7)

Definition at line 742 of file npapi.h.

#define NPERR_INVALID_PLUGIN_ERROR   (NPERR_BASE + 6)

Definition at line 741 of file npapi.h.

#define NPERR_INVALID_URL   (NPERR_BASE + 10)

Definition at line 745 of file npapi.h.

#define NPERR_MALFORMED_SITE   (NPERR_BASE + 15)

Definition at line 750 of file npapi.h.

#define NPERR_MODULE_LOAD_FAILED_ERROR   (NPERR_BASE + 4)

Definition at line 739 of file npapi.h.

#define NPERR_NO_DATA   (NPERR_BASE + 12)

Definition at line 747 of file npapi.h.

#define NPERR_NO_ERROR   (NPERR_BASE + 0)

Definition at line 735 of file npapi.h.

#define NPERR_OUT_OF_MEMORY_ERROR   (NPERR_BASE + 5)

Definition at line 740 of file npapi.h.

#define NPERR_STREAM_NOT_SEEKABLE   (NPERR_BASE + 13)

Definition at line 748 of file npapi.h.

#define NPERR_TIME_RANGE_NOT_SUPPORTED   (NPERR_BASE + 14)

Definition at line 749 of file npapi.h.

#define NPRES_BASE   0

Definition at line 755 of file npapi.h.

#define NPRES_DONE   (NPRES_BASE + 0)

Definition at line 756 of file npapi.h.

#define NPRES_NETWORK_ERR   (NPRES_BASE + 1)

Definition at line 757 of file npapi.h.

#define NPRES_USER_BREAK   (NPRES_BASE + 2)

Definition at line 758 of file npapi.h.

#define NPVERS_68K_HAS_LIVECONNECT   11

Definition at line 773 of file npapi.h.

#define NPVERS_HAS_ADVANCED_KEY_HANDLING   25

Definition at line 786 of file npapi.h.

#define NPVERS_HAS_ALL_NETWORK_STREAMS   20

Definition at line 782 of file npapi.h.

#define NPVERS_HAS_CLEAR_SITE_DATA   27

Definition at line 788 of file npapi.h.

#define NPVERS_HAS_FORM_VALUES   15

Definition at line 777 of file npapi.h.

#define NPVERS_HAS_LIVECONNECT   9

Definition at line 772 of file npapi.h.

#define NPVERS_HAS_NOTIFICATION   9

Definition at line 771 of file npapi.h.

#define NPVERS_HAS_NPOBJECT_ENUM   18

Definition at line 780 of file npapi.h.

#define NPVERS_HAS_NPRUNTIME_SCRIPTING   14

Definition at line 776 of file npapi.h.

#define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL   19

Definition at line 781 of file npapi.h.

#define NPVERS_HAS_POPUPS_ENABLED_STATE   16

Definition at line 778 of file npapi.h.

#define NPVERS_HAS_PRIVATE_MODE   22

Definition at line 784 of file npapi.h.

#define NPVERS_HAS_RESPONSE_HEADERS   17

Definition at line 779 of file npapi.h.

#define NPVERS_HAS_STREAMOUTPUT   8

Definition at line 770 of file npapi.h.

#define NPVERS_HAS_URL_AND_AUTH_INFO   21

Definition at line 783 of file npapi.h.

#define NPVERS_HAS_URL_REDIRECT_HANDLING   26

Definition at line 787 of file npapi.h.

#define NPVERS_HAS_WINDOWLESS   11

Definition at line 774 of file npapi.h.

#define NPVERS_HAS_XPCONNECT_SCRIPTING   13

Definition at line 775 of file npapi.h.

#define NPVERS_MACOSX_HAS_COCOA_EVENTS   23

Definition at line 785 of file npapi.h.

Typedef Documentation

typedef unsigned char NPBool

Definition at line 121 of file npapi.h.

typedef struct _NPByteRange NPByteRange
typedef struct _NPEmbedPrint NPEmbedPrint
typedef int16_t NPError

Definition at line 122 of file npapi.h.

typedef void* NPEvent

Definition at line 556 of file npapi.h.

typedef struct _NPFullPrint NPFullPrint
typedef struct _NPImageExpose NPImageExpose
typedef void* NPMenu

Definition at line 582 of file npapi.h.

typedef char* NPMIMEType

Definition at line 124 of file npapi.h.

typedef struct _NPNSMenu NPNSMenu

Definition at line 577 of file npapi.h.

typedef struct _NPNSString NPNSString

Definition at line 575 of file npapi.h.

typedef struct _NPNSWindow NPNSWindow

Definition at line 576 of file npapi.h.

typedef NPP_t* NPP

Definition at line 145 of file npapi.h.

typedef struct _NPP NPP_t
typedef struct _NPPrint NPPrint
typedef int16_t NPReason

Definition at line 123 of file npapi.h.

typedef struct _NPRect NPRect
typedef void* NPRegion

Definition at line 572 of file npapi.h.

typedef struct _NPSavedData NPSavedData
typedef struct _NPSize NPSize
typedef struct _NPStream NPStream
typedef struct _NPWindow NPWindow

Enumeration Type Documentation

Enumerator
NPCoordinateSpacePlugin 
NPCoordinateSpaceWindow 
NPCoordinateSpaceFlippedWindow 
NPCoordinateSpaceScreen 
NPCoordinateSpaceFlippedScreen 

Definition at line 585 of file npapi.h.

Enumerator
NPDrawingModelAsyncBitmapSurface 

Definition at line 271 of file npapi.h.

271  {
272 #if defined(XP_MACOSX)
273 #ifndef NP_NO_QUICKDRAW
274  NPDrawingModelQuickDraw = 0,
275 #endif
276  NPDrawingModelCoreGraphics = 1,
277  NPDrawingModelOpenGL = 2,
278  NPDrawingModelCoreAnimation = 3,
279  NPDrawingModelInvalidatingCoreAnimation = 4,
280 #endif
281 #if defined(XP_WIN)
282  NPDrawingModelSyncWin = 5,
283 #endif
284 #if defined(MOZ_X11)
285  NPDrawingModelSyncX = 6,
286 #endif
288 #if defined(XP_WIN)
289  , NPDrawingModelAsyncWindowsDXGISurface = 8
290 #endif
Enumerator
NPFocusNext 
NPFocusPrevious 

Definition at line 194 of file npapi.h.

194  {
195  NPFocusNext = 0,
196  NPFocusPrevious = 1
Enumerator
NPImageFormatBGRA32 
NPImageFormatBGRX32 

Definition at line 203 of file npapi.h.

203  {
204  /* 32-bit per pixel 8-bit per channel - premultiplied alpha */
205  NPImageFormatBGRA32 = 0x1,
206  /* 32-bit per pixel 8-bit per channel - 1 unused channel */
207  NPImageFormatBGRX32 = 0x2
208 } NPImageFormat;
Enumerator
NPNVGtk12 
NPNVGtk2 

Definition at line 463 of file npapi.h.

463  {
464  NPNVGtk12 = 1,
465  NPNVGtk2
Enumerator
NPNURLVCookie 
NPNURLVProxy 

Definition at line 455 of file npapi.h.

455  {
456  NPNURLVCookie = 501,
Enumerator
NPNVxDisplay 
NPNVxtAppContext 
NPNVnetscapeWindow 
NPNVjavascriptEnabledBool 
NPNVasdEnabledBool 
NPNVisOfflineBool 
NPNVserviceManager 
NPNVDOMElement 
NPNVDOMWindow 
NPNVToolkit 
NPNVSupportsXEmbedBool 
NPNVWindowNPObject 
NPNVPluginElementNPObject 
NPNVSupportsWindowless 
NPNVprivateModeBool 
NPNVsupportsAdvancedKeyHandling 
NPNVdocumentOrigin 
NPNVpluginDrawingModel 
NPNVsupportsAsyncBitmapSurfaceBool 

Definition at line 397 of file npapi.h.

397  {
398  NPNVxDisplay = 1,
404 
406  NPNVDOMElement = (11 | NP_ABI_MASK),
407  NPNVDOMWindow = (12 | NP_ABI_MASK),
408  NPNVToolkit = (13 | NP_ABI_MASK),
410 
411  /* Get the NPObject wrapper for the browser window. */
412  NPNVWindowNPObject = 15,
413 
414  /* Get the NPObject wrapper for the plugins DOM element. */
416 
418 
419  NPNVprivateModeBool = 18,
420 
422 
423  NPNVdocumentOrigin = 22,
424 
425  NPNVpluginDrawingModel = 1000 /* Get the current drawing model (NPDrawingModel) */
426 #if defined(XP_MACOSX)
427  , NPNVcontentsScaleFactor = 1001
428 #ifndef NP_NO_QUICKDRAW
429  , NPNVsupportsQuickDrawBool = 2000
430 #endif
431  , NPNVsupportsCoreGraphicsBool = 2001
432  , NPNVsupportsOpenGLBool = 2002
433  , NPNVsupportsCoreAnimationBool = 2003
434  , NPNVsupportsInvalidatingCoreAnimationBool = 2004
435 #endif
437 #if defined(XP_WIN)
438  , NPNVsupportsAsyncWindowsDXGISurfaceBool = 2008
439 #endif
440 #if defined(XP_MACOSX)
441 #ifndef NP_NO_CARBON
442  , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon event model */
443 #endif
444  , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
445  , NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports the updated
446  Cocoa text input specification. */
447  , NPNVsupportsCompositingCoreAnimationPluginsBool = 74656 /* TRUE if the browser supports
448  CA model compositing */
449 #endif
450 #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
451  , NPNVSupportsWindowlessLocal = 2002
452 #endif
453 } NPNVariable;
Enumerator
NPPVpluginNameString 
NPPVpluginDescriptionString 
NPPVpluginWindowBool 
NPPVpluginTransparentBool 
NPPVjavaClass 
NPPVpluginWindowSize 
NPPVpluginTimerInterval 
NPPVpluginScriptableInstance 
NPPVpluginScriptableIID 
NPPVjavascriptPushCallerBool 
NPPVpluginKeepLibraryInMemory 
NPPVpluginNeedsXEmbed 
NPPVpluginScriptableNPObject 
NPPVformValue 
NPPVpluginUrlRequestsDisplayedBool 
NPPVpluginWantsAllNetworkStreams 
NPPVpluginNativeAccessibleAtkPlugId 
NPPVpluginCancelSrcStream 
NPPVsupportsAdvancedKeyHandling 
NPPVpluginUsesDOMForCursorBool 
NPPVpluginDrawingModel 

Definition at line 338 of file npapi.h.

338  {
351 
352  /* Get the NPObject for scripting the plugin. Introduced in NPAPI minor version 14.
353  */
355 
356  /* Get the plugin value (as \0-terminated UTF-8 string data) for
357  * form submission if the plugin is part of a form. Use
358  * NPN_MemAlloc() to allocate memory for the string data. Introduced
359  * in NPAPI minor version 15.
360  */
361  NPPVformValue = 16,
362 
364 
365  /* Checks if the plugin is interested in receiving the http body of
366  * all http requests (including failed ones, http status != 200).
367  */
369 
370  /* Browsers can retrieve a native ATK accessibility plug ID via this variable. */
372 
373  /* Checks to see if the plug-in would like the browser to load the "src" attribute. */
375 
377 
379 
380  /* Used for negotiating drawing models */
382 #if defined(XP_MACOSX)
383  /* Used for negotiating event models */
384  , NPPVpluginEventModel = 1001
385  /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug-in for a Core Animation layer. */
386  , NPPVpluginCoreAnimationLayer = 1003
387 #endif
388 
389 #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6))
390  , NPPVpluginWindowlessLocalBool = 2002
391 #endif
392 } NPPVariable;
Enumerator
NPWindowTypeWindow 
NPWindowTypeDrawable 

Definition at line 472 of file npapi.h.

472  {
473  NPWindowTypeWindow = 1,
475 } NPWindowType;

Function Documentation

NPBool NP_LOADDS NPN_ConvertPoint ( NPP  instance,
double  sourceX,
double  sourceY,
NPCoordinateSpace  sourceSpace,
double *  destX,
double *  destY,
NPCoordinateSpace  destSpace 
)
NPError NP_LOADDS NPN_DestroyStream ( NPP  instance,
NPStream stream,
NPReason  reason 
)
NPError NP_LOADDS NPN_FinalizeAsyncSurface ( NPP  instance,
NPAsyncSurface surface 
)
void NP_LOADDS NPN_ForceRedraw ( NPP  instance)
NPError NP_LOADDS NPN_GetAuthenticationInfo ( NPP  instance,
const char *  protocol,
const char *  host,
int32_t  port,
const char *  scheme,
const char *  realm,
char **  username,
uint32_t *  ulen,
char **  password,
uint32_t *  plen 
)
NPError NP_LOADDS NPN_GetURL ( NPP  instance,
const char *  url,
const char *  target 
)

Definition at line 333 of file EvBrowserPluginMain.cpp.

334 {
335  return browser->geturl(instance, url, target);
336 }

+ Here is the caller graph for this function:

NPError NP_LOADDS NPN_GetURLNotify ( NPP  instance,
const char *  url,
const char *  target,
void *  notifyData 
)
NPError NP_LOADDS NPN_GetValue ( NPP  instance,
NPNVariable  variable,
void *  value 
)
NPError NP_LOADDS NPN_GetValueForURL ( NPP  instance,
NPNURLVariable  variable,
const char *  url,
char **  value,
uint32_t *  len 
)
NPBool NP_LOADDS NPN_HandleEvent ( NPP  instance,
void *  event,
NPBool  handled 
)
NPError NP_LOADDS NPN_InitAsyncSurface ( NPP  instance,
NPSize size,
NPImageFormat  format,
void *  initData,
NPAsyncSurface surface 
)
void NP_LOADDS NPN_InvalidateRect ( NPP  instance,
NPRect invalidRect 
)
void NP_LOADDS NPN_InvalidateRegion ( NPP  instance,
NPRegion  invalidRegion 
)
void* NP_LOADDS NPN_MemAlloc ( uint32_t  size)

Definition at line 343 of file EvBrowserPluginMain.cpp.

344 {
345  return browser->memalloc(size);
346 }

+ Here is the caller graph for this function:

uint32_t NP_LOADDS NPN_MemFlush ( uint32_t  size)
void NP_LOADDS NPN_MemFree ( void *  ptr)

Definition at line 348 of file EvBrowserPluginMain.cpp.

349 {
350  if (ptr)
351  browser->memfree(ptr);
352 }
NPError NP_LOADDS NPN_NewStream ( NPP  instance,
NPMIMEType  type,
const char *  target,
NPStream **  stream 
)
void NP_LOADDS NPN_PluginThreadAsyncCall ( NPP  instance,
void(*)(void *)  func,
void *  userData 
)
void NP_LOADDS NPN_PopPopupsEnabledState ( NPP  instance)
NPError NP_LOADDS NPN_PopUpContextMenu ( NPP  instance,
NPMenu menu 
)
NPError NP_LOADDS NPN_PostURL ( NPP  instance,
const char *  url,
const char *  target,
uint32_t  len,
const char *  buf,
NPBool  file 
)
NPError NP_LOADDS NPN_PostURLNotify ( NPP  instance,
const char *  url,
const char *  target,
uint32_t  len,
const char *  buf,
NPBool  file,
void *  notifyData 
)
void NP_LOADDS NPN_PushPopupsEnabledState ( NPP  instance,
NPBool  enabled 
)
void NP_LOADDS NPN_ReloadPlugins ( NPBool  reloadPages)
NPError NP_LOADDS NPN_RequestRead ( NPStream stream,
NPByteRange rangeList 
)
uint32_t NP_LOADDS NPN_ScheduleTimer ( NPP  instance,
uint32_t  interval,
NPBool  repeat,
void(*)(NPP npp, uint32_t timerID)  timerFunc 
)
void NP_LOADDS NPN_SetCurrentAsyncSurface ( NPP  instance,
NPAsyncSurface surface,
NPRect changed 
)
NPError NP_LOADDS NPN_SetValue ( NPP  instance,
NPPVariable  variable,
void *  value 
)
NPError NP_LOADDS NPN_SetValueForURL ( NPP  instance,
NPNURLVariable  variable,
const char *  url,
const char *  value,
uint32_t  len 
)
void NP_LOADDS NPN_Status ( NPP  instance,
const char *  message 
)
NPBool NP_LOADDS NPN_UnfocusInstance ( NPP  instance,
NPFocusDirection  direction 
)
void NP_LOADDS NPN_UnscheduleTimer ( NPP  instance,
uint32_t  timerID 
)
void NP_LOADDS NPN_URLRedirectResponse ( NPP  instance,
void *  notifyData,
NPBool  allow 
)
const char* NP_LOADDS NPN_UserAgent ( NPP  instance)

Definition at line 338 of file EvBrowserPluginMain.cpp.

339 {
340  return browser->uagent(instance);
341 }

+ Here is the caller graph for this function:

void NP_LOADDS NPN_Version ( int *  plugin_major,
int *  plugin_minor,
int *  netscape_major,
int *  netscape_minor 
)
int32_t NP_LOADDS NPN_Write ( NPP  instance,
NPStream stream,
int32_t  len,
void *  buffer 
)
NPError NP_LOADDS NPP_ClearSiteData ( const char *  site,
uint64_t  flags,
uint64_t  maxAge 
)
NPError NP_LOADDS NPP_Destroy ( NPP  instance,
NPSavedData **  save 
)

Definition at line 49 of file EvBrowserPluginMain.cpp.

50 {
51  EvBrowserPlugin *plugin = pluginForInstance(instance);
52  if (!plugin)
54 
55  browser->releaseobject(static_cast<NPObject *>(plugin));
56  return NPERR_NO_ERROR;
57 }

+ Here is the caller graph for this function:

NPError NP_LOADDS NPP_DestroyStream ( NPP  instance,
NPStream stream,
NPReason  reason 
)

Definition at line 77 of file EvBrowserPluginMain.cpp.

78 {
79  EvBrowserPlugin *plugin = pluginForInstance(instance);
80  if (!plugin)
82 
83  return plugin->destroyStream(stream, reason);
84 }

+ Here is the caller graph for this function:

void NP_LOADDS NPP_DidComposite ( NPP  instance)
char** NP_LOADDS NPP_GetSitesWithData ( void  )
NPError NP_LOADDS NPP_GetValue ( NPP  instance,
NPPVariable  variable,
void *  value 
)

Definition at line 140 of file EvBrowserPluginMain.cpp.

141 {
142  switch (variable) {
144  *((char **)value) = const_cast<char *>(EvBrowserPlugin::nameString());
145  return NPERR_NO_ERROR;
147  *((char **)value) = const_cast<char *>(EvBrowserPlugin::descriptionString());
148  return NPERR_NO_ERROR;
150  *((NPBool *)value) = TRUE;
151  return NPERR_NO_ERROR;
153  EvBrowserPlugin *plugin = pluginForInstance(instance);
154  if (!plugin)
156 
157  browser->retainobject(static_cast<NPObject *>(plugin));
158  *((NPObject **)value) = plugin;
159  return NPERR_NO_ERROR;
160  }
161  default:
162  return NPERR_INVALID_PARAM;
163  }
164 
165  return NPERR_GENERIC_ERROR;
166 }

+ Here is the caller graph for this function:

NPBool NP_LOADDS NPP_GotFocus ( NPP  instance,
NPFocusDirection  direction 
)
int16_t NP_LOADDS NPP_HandleEvent ( NPP  instance,
void *  event 
)

Definition at line 122 of file EvBrowserPluginMain.cpp.

123 {
124  EvBrowserPlugin *plugin = pluginForInstance(instance);
125  if (!plugin)
126  return 0;
127 
128  return plugin->handleEvent(static_cast<XEvent *>(event));
129 }

+ Here is the caller graph for this function:

void NP_LOADDS NPP_LostFocus ( NPP  instance)
NPError NP_LOADDS NPP_New ( NPMIMEType  pluginType,
NPP  instance,
uint16_t  mode,
int16_t  argc,
char *  argn[],
char *  argv[],
NPSavedData saved 
)

Definition at line 41 of file EvBrowserPluginMain.cpp.

42 {
43  if (!instance)
45 
46  return EvBrowserPlugin::create(instance)->initialize(pluginType, mode, argc, argn, argv, savedData);
47 }

+ Here is the caller graph for this function:

NPError NP_LOADDS NPP_NewStream ( NPP  instance,
NPMIMEType  type,
NPStream stream,
NPBool  seekable,
uint16_t *  stype 
)

Definition at line 68 of file EvBrowserPluginMain.cpp.

69 {
70  EvBrowserPlugin *plugin = pluginForInstance(instance);
71  if (!plugin)
73 
74  return plugin->newStream(type, stream, seekable, stype);
75 }

+ Here is the caller graph for this function:

void NP_LOADDS NPP_Print ( NPP  instance,
NPPrint platformPrint 
)

Definition at line 113 of file EvBrowserPluginMain.cpp.

114 {
115  EvBrowserPlugin *plugin = pluginForInstance(instance);
116  if (!plugin)
117  return;
118 
119  return plugin->print(platformPrint);
120 }

+ Here is the caller graph for this function:

NPError NP_LOADDS NPP_SetValue ( NPP  instance,
NPNVariable  variable,
void *  value 
)

Definition at line 168 of file EvBrowserPluginMain.cpp.

169 {
170  return NPERR_NO_ERROR;
171 }

+ Here is the caller graph for this function:

NPError NP_LOADDS NPP_SetWindow ( NPP  instance,
NPWindow window 
)

Definition at line 59 of file EvBrowserPluginMain.cpp.

60 {
61  EvBrowserPlugin *plugin = pluginForInstance(instance);
62  if (!plugin)
64 
65  return plugin->setWindow(window);
66 }

+ Here is the caller graph for this function:

void NP_LOADDS NPP_StreamAsFile ( NPP  instance,
NPStream stream,
const char *  fname 
)

Definition at line 86 of file EvBrowserPluginMain.cpp.

87 {
88  EvBrowserPlugin *plugin = pluginForInstance(instance);
89  if (!plugin)
90  return;
91 
92  return plugin->streamAsFile(stream, fname);
93 }

+ Here is the caller graph for this function:

void NP_LOADDS NPP_URLNotify ( NPP  instance,
const char *  url,
NPReason  reason,
void *  notifyData 
)

Definition at line 131 of file EvBrowserPluginMain.cpp.

132 {
133  EvBrowserPlugin *plugin = pluginForInstance(instance);
134  if (!plugin)
135  return;
136 
137  return plugin->urlNotify(url, reason, notifyData);
138 }

+ Here is the caller graph for this function:

void NP_LOADDS NPP_URLRedirectNotify ( NPP  instance,
const char *  url,
int32_t  status,
void *  notifyData 
)
int32_t NP_LOADDS NPP_Write ( NPP  instance,
NPStream stream,
int32_t  offset,
int32_t  len,
void *  buffer 
)

Definition at line 104 of file EvBrowserPluginMain.cpp.

105 {
106  EvBrowserPlugin *plugin = pluginForInstance(instance);
107  if (!plugin)
108  return -1;
109 
110  return plugin->write(stream, offset, len, buffer);
111 }

+ Here is the caller graph for this function:

int32_t NP_LOADDS NPP_WriteReady ( NPP  instance,
NPStream stream 
)

Definition at line 95 of file EvBrowserPluginMain.cpp.

96 {
97  EvBrowserPlugin *plugin = pluginForInstance(instance);
98  if (!plugin)
99  return -1;
100 
101  return plugin->writeReady(stream);
102 }

+ Here is the caller graph for this function: