OLD | NEW |
---|---|
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
4 * | 4 * |
5 * The contents of this file are subject to the Mozilla Public License Version | 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 | 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 | 7 * the License. You may obtain a copy of the License at |
8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
9 * | 9 * |
10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 #if defined(XP_SYMBIAN) | 123 #if defined(XP_SYMBIAN) |
124 #include <QEvent> | 124 #include <QEvent> |
125 #include <QRegion> | 125 #include <QRegion> |
126 #endif | 126 #endif |
127 | 127 |
128 /*----------------------------------------------------------------------*/ | 128 /*----------------------------------------------------------------------*/ |
129 /* Plugin Version Constants */ | 129 /* Plugin Version Constants */ |
130 /*----------------------------------------------------------------------*/ | 130 /*----------------------------------------------------------------------*/ |
131 | 131 |
132 #define NP_VERSION_MAJOR 0 | 132 #define NP_VERSION_MAJOR 0 |
133 #define NP_VERSION_MINOR 23 | 133 #define NP_VERSION_MINOR 25 |
stuartmorgan
2010/11/12 18:43:56
Please don't make direct changes to this file. It'
| |
134 | 134 |
135 | 135 |
136 /* The OS/2 version of Netscape uses RC_DATA to define the | 136 /* The OS/2 version of Netscape uses RC_DATA to define the |
137 mime types, file extensions, etc that are required. | 137 mime types, file extensions, etc that are required. |
138 Use a vertical bar to separate types, end types with \0. | 138 Use a vertical bar to separate types, end types with \0. |
139 FileVersion and ProductVersion are 32bit ints, all other | 139 FileVersion and ProductVersion are 32bit ints, all other |
140 entries are strings that MUST be terminated with a \0. | 140 entries are strings that MUST be terminated with a \0. |
141 | 141 |
142 AN EXAMPLE: | 142 AN EXAMPLE: |
143 | 143 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 uint16_t bottom; | 245 uint16_t bottom; |
246 uint16_t right; | 246 uint16_t right; |
247 } NPRect; | 247 } NPRect; |
248 | 248 |
249 typedef struct _NPSize | 249 typedef struct _NPSize |
250 { | 250 { |
251 int32_t width; | 251 int32_t width; |
252 int32_t height; | 252 int32_t height; |
253 } NPSize; | 253 } NPSize; |
254 | 254 |
255 typedef enum { | |
256 NPFocusNext = 0, | |
257 NPFocusPrevious = 1 | |
258 } NPFocusDirection; | |
259 | |
255 /* Return values for NPP_HandleEvent */ | 260 /* Return values for NPP_HandleEvent */ |
256 #define kNPEventNotHandled 0 | 261 #define kNPEventNotHandled 0 |
257 #define kNPEventHandled 1 | 262 #define kNPEventHandled 1 |
258 /* Exact meaning must be spec'd in event model. */ | 263 /* Exact meaning must be spec'd in event model. */ |
259 #define kNPEventStartIME 2 | 264 #define kNPEventStartIME 2 |
260 | 265 |
261 #if defined(XP_UNIX) | 266 #if defined(XP_UNIX) |
262 /* | 267 /* |
263 * Unix specific structures and definitions | 268 * Unix specific structures and definitions |
264 */ | 269 */ |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
731 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4) | 736 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4) |
732 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5) | 737 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5) |
733 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6) | 738 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6) |
734 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7) | 739 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7) |
735 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8) | 740 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8) |
736 #define NPERR_INVALID_PARAM (NPERR_BASE + 9) | 741 #define NPERR_INVALID_PARAM (NPERR_BASE + 9) |
737 #define NPERR_INVALID_URL (NPERR_BASE + 10) | 742 #define NPERR_INVALID_URL (NPERR_BASE + 10) |
738 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11) | 743 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11) |
739 #define NPERR_NO_DATA (NPERR_BASE + 12) | 744 #define NPERR_NO_DATA (NPERR_BASE + 12) |
740 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13) | 745 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13) |
746 #define NPERR_TIMERANGE_NOT_SUPPORTED (NPERR_BASE + 14) // can't clear b y time range | |
747 #define NPERR_LIMITBYSITE_NOT_SUPPORTED (NPERR_BASE + 15) // can't clear b y domain/site | |
748 #define NPERR_MALFORMED_DOMAIN (NPERR_BASE + 16) // malformed 'do main' string | |
741 | 749 |
742 /* | 750 /* |
743 * Values of type NPReason: | 751 * Values of type NPReason: |
744 */ | 752 */ |
745 #define NPRES_BASE 0 | 753 #define NPRES_BASE 0 |
746 #define NPRES_DONE (NPRES_BASE + 0) | 754 #define NPRES_DONE (NPRES_BASE + 0) |
747 #define NPRES_NETWORK_ERR (NPRES_BASE + 1) | 755 #define NPRES_NETWORK_ERR (NPRES_BASE + 1) |
748 #define NPRES_USER_BREAK (NPRES_BASE + 2) | 756 #define NPRES_USER_BREAK (NPRES_BASE + 2) |
749 | 757 |
750 /* | 758 /* |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
810 int32_t NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32_t offset, | 818 int32_t NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32_t offset, |
811 int32_t len, void* buffer); | 819 int32_t len, void* buffer); |
812 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream, | 820 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream, |
813 const char* fname); | 821 const char* fname); |
814 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint); | 822 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint); |
815 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event); | 823 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event); |
816 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url, | 824 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url, |
817 NPReason reason, void* notifyData); | 825 NPReason reason, void* notifyData); |
818 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value); | 826 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value); |
819 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value); | 827 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value); |
828 NPBool NP_LOADDS NPP_GotFocus(NPP instance, NPFocusDirection direction); | |
829 void NP_LOADDS NPP_LostFocus(NPP instance); | |
Bernhard Bauer
2010/11/12 18:30:10
I added these functions so the offsets in the NPFu
| |
820 | 830 |
821 /* NPN_* functions are provided by the navigator and called by the plugin. */ | 831 /* NPN_* functions are provided by the navigator and called by the plugin. */ |
822 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor, | 832 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor, |
823 int* netscape_major, int* netscape_minor); | 833 int* netscape_major, int* netscape_minor); |
824 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url, | 834 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url, |
825 const char* target, void* notifyData); | 835 const char* target, void* notifyData); |
826 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url, | 836 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url, |
827 const char* target); | 837 const char* target); |
828 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url, | 838 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url, |
829 const char* target, uint32_t len, | 839 const char* target, uint32_t len, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
869 const char *host, int32_t port, | 879 const char *host, int32_t port, |
870 const char *scheme, | 880 const char *scheme, |
871 const char *realm, | 881 const char *realm, |
872 char **username, uint32_t *ulen, | 882 char **username, uint32_t *ulen, |
873 char **password, | 883 char **password, |
874 uint32_t *plen); | 884 uint32_t *plen); |
875 uint32_t NP_LOADDS NPN_ScheduleTimer(NPP instance, uint32_t interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32_t timerID)); | 885 uint32_t NP_LOADDS NPN_ScheduleTimer(NPP instance, uint32_t interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32_t timerID)); |
876 void NP_LOADDS NPN_UnscheduleTimer(NPP instance, uint32_t timerID); | 886 void NP_LOADDS NPN_UnscheduleTimer(NPP instance, uint32_t timerID); |
877 NPError NP_LOADDS NPN_PopUpContextMenu(NPP instance, NPMenu* menu); | 887 NPError NP_LOADDS NPN_PopUpContextMenu(NPP instance, NPMenu* menu); |
878 NPBool NP_LOADDS NPN_ConvertPoint(NPP instance, double sourceX, double sour ceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSp ace destSpace); | 888 NPBool NP_LOADDS NPN_ConvertPoint(NPP instance, double sourceX, double sour ceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSp ace destSpace); |
889 NPBool NP_LOADDS NPN_HandleEvent(NPP instance, void *event, NPBool handled) ; | |
890 NPBool NP_LOADDS NPN_UnfocusInstance(NPP instance, NPFocusDirection directi on); | |
879 | 891 |
880 #ifdef __cplusplus | 892 #ifdef __cplusplus |
881 } /* end extern "C" */ | 893 } /* end extern "C" */ |
882 #endif | 894 #endif |
883 | 895 |
884 #endif /* RC_INVOKED */ | 896 #endif /* RC_INVOKED */ |
885 #if defined(__OS2__) | 897 #if defined(__OS2__) |
886 #pragma pack() | 898 #pragma pack() |
887 #endif | 899 #endif |
888 | 900 |
889 #endif /* npapi_h_ */ | 901 #endif /* npapi_h_ */ |
OLD | NEW |