| OLD | NEW |
| 1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
| 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 * | 3 * |
| 4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
| 5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
| 7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
| 8 * | 8 * |
| 9 * Software distributed under the License is distributed on an "AS IS" basis, | 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 | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 #ifdef XP_WIN | 102 #ifdef XP_WIN |
| 103 #include <windows.h> | 103 #include <windows.h> |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 /*----------------------------------------------------------------------*/ | 106 /*----------------------------------------------------------------------*/ |
| 107 /* Plugin Version Constants */ | 107 /* Plugin Version Constants */ |
| 108 /*----------------------------------------------------------------------*/ | 108 /*----------------------------------------------------------------------*/ |
| 109 | 109 |
| 110 #define NP_VERSION_MAJOR 0 | 110 #define NP_VERSION_MAJOR 0 |
| 111 #define NP_VERSION_MINOR 23 | 111 #define NP_VERSION_MINOR 20 |
| 112 |
| 113 |
| 112 | 114 |
| 113 /*----------------------------------------------------------------------*/ | 115 /*----------------------------------------------------------------------*/ |
| 114 /* Definition of Basic Types */ | 116 /* Definition of Basic Types */ |
| 115 /*----------------------------------------------------------------------*/ | 117 /*----------------------------------------------------------------------*/ |
| 116 | 118 |
| 117 #ifndef _UINT16 | 119 #ifndef _UINT16 |
| 118 #define _UINT16 | 120 #define _UINT16 |
| 119 typedef unsigned short uint16; | 121 typedef unsigned short uint16; |
| 120 #endif | 122 #endif |
| 121 | 123 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 */ | 336 */ |
| 335 NPPVformValue = 16, /* Not implemented in WebKit */ | 337 NPPVformValue = 16, /* Not implemented in WebKit */ |
| 336 | 338 |
| 337 NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */ | 339 NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */ |
| 338 | 340 |
| 339 /* Checks if the plugin is interested in receiving the http body of | 341 /* Checks if the plugin is interested in receiving the http body of |
| 340 * failed http requests (http status != 200). | 342 * failed http requests (http status != 200). |
| 341 */ | 343 */ |
| 342 NPPVpluginWantsAllNetworkStreams = 18, | 344 NPPVpluginWantsAllNetworkStreams = 18, |
| 343 | 345 |
| 344 NPPVpluginPrivateModeBool = 19, | |
| 345 | |
| 346 #ifdef XP_MACOSX | 346 #ifdef XP_MACOSX |
| 347 /* Used for negotiating drawing models */ | 347 /* Used for negotiating drawing models */ |
| 348 NPPVpluginDrawingModel = 1000, | 348 NPPVpluginDrawingModel = 1000, |
| 349 /* Used for negotiating event models */ | 349 /* Used for negotiating event models */ |
| 350 NPPVpluginEventModel = 1001, | 350 NPPVpluginEventModel = 1001, |
| 351 /* The plug-in text input vtable */ | 351 /* The plug-in text input vtable */ |
| 352 NPPVpluginTextInputFuncs = 1002, | 352 NPPVpluginTextInputFuncs = 1002, |
| 353 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the pl
ug-in for a Core Animation layer. */ | 353 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the pl
ug-in for a Core Animation layer. */ |
| 354 NPPVpluginCoreAnimationLayer = 1003 | 354 NPPVpluginCoreAnimationLayer = 1003 |
| 355 #endif | 355 #endif |
| (...skipping 16 matching lines...) Expand all Loading... |
| 372 NPNVDOMWindow = (12 | NP_ABI_MASK), /* Not implemented in WebKit */ | 372 NPNVDOMWindow = (12 | NP_ABI_MASK), /* Not implemented in WebKit */ |
| 373 NPNVToolkit = (13 | NP_ABI_MASK), /* Not implemented in WebKit */ | 373 NPNVToolkit = (13 | NP_ABI_MASK), /* Not implemented in WebKit */ |
| 374 NPNVSupportsXEmbedBool = 14, /* Not implemented in WebKit */ | 374 NPNVSupportsXEmbedBool = 14, /* Not implemented in WebKit */ |
| 375 | 375 |
| 376 /* Get the NPObject wrapper for the browser window. */ | 376 /* Get the NPObject wrapper for the browser window. */ |
| 377 NPNVWindowNPObject = 15, | 377 NPNVWindowNPObject = 15, |
| 378 | 378 |
| 379 /* Get the NPObject wrapper for the plugins DOM element. */ | 379 /* Get the NPObject wrapper for the plugins DOM element. */ |
| 380 NPNVPluginElementNPObject = 16, | 380 NPNVPluginElementNPObject = 16, |
| 381 | 381 |
| 382 NPNVSupportsWindowless = 17, | 382 NPNVSupportsWindowless = 17 |
| 383 | |
| 384 NPNVprivateModeBool = 18 | |
| 385 | 383 |
| 386 #ifdef XP_MACOSX | 384 #ifdef XP_MACOSX |
| 387 , NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugi
n */ | 385 , NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugi
n */ |
| 388 | 386 |
| 389 #ifndef NP_NO_QUICKDRAW | 387 #ifndef NP_NO_QUICKDRAW |
| 390 , NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the Quick
Draw drawing model */ | 388 , NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the Quick
Draw drawing model */ |
| 391 #endif | 389 #endif |
| 392 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the Co
reGraphics drawing model */ | 390 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the Co
reGraphics drawing model */ |
| 393 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL d
rawing model (CGL on Mac) */ | 391 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL d
rawing model (CGL on Mac) */ |
| 394 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the C
oreAnimation drawing model */ | 392 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the C
oreAnimation drawing model */ |
| 395 | 393 |
| 396 #ifndef NP_NO_CARBON | 394 #ifndef NP_NO_CARBON |
| 397 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon e
vent model */ | 395 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon e
vent model */ |
| 398 #endif | 396 #endif |
| 399 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa eve
nt model */ | 397 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa eve
nt model */ |
| 400 | 398 |
| 401 , NPNVbrowserTextInputFuncs = 1002 /* The browser text input vtable */ | 399 , NPNVbrowserTextInputFuncs = 1002 /* The browser text input vtable */ |
| 402 #endif /* XP_MACOSX */ | 400 #endif /* XP_MACOSX */ |
| 403 } NPNVariable; | 401 } NPNVariable; |
| 404 | 402 |
| 405 typedef enum { | |
| 406 NPNURLVCookie = 501, | |
| 407 NPNURLVProxy | |
| 408 } NPNURLVariable; | |
| 409 | |
| 410 /* | 403 /* |
| 411 * The type of a NPWindow - it specifies the type of the data structure | 404 * The type of a NPWindow - it specifies the type of the data structure |
| 412 * returned in the window field. | 405 * returned in the window field. |
| 413 */ | 406 */ |
| 414 typedef enum { | 407 typedef enum { |
| 415 NPWindowTypeWindow = 1, | 408 NPWindowTypeWindow = 1, |
| 416 NPWindowTypeDrawable | 409 NPWindowTypeDrawable |
| 417 } NPWindowType; | 410 } NPWindowType; |
| 418 | 411 |
| 419 #ifdef XP_MACOSX | 412 #ifdef XP_MACOSX |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 #define NPVERS_WIN16_HAS_LIVECONNECT 9 | 719 #define NPVERS_WIN16_HAS_LIVECONNECT 9 |
| 727 #define NPVERS_68K_HAS_LIVECONNECT 11 | 720 #define NPVERS_68K_HAS_LIVECONNECT 11 |
| 728 #define NPVERS_HAS_WINDOWLESS 11 | 721 #define NPVERS_HAS_WINDOWLESS 11 |
| 729 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */ | 722 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */ |
| 730 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14 | 723 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14 |
| 731 #define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see
bug 13061 */ | 724 #define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see
bug 13061 */ |
| 732 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */ | 725 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */ |
| 733 #define NPVERS_HAS_RESPONSE_HEADERS 17 | 726 #define NPVERS_HAS_RESPONSE_HEADERS 17 |
| 734 #define NPVERS_HAS_NPOBJECT_ENUM 18 | 727 #define NPVERS_HAS_NPOBJECT_ENUM 18 |
| 735 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19 | 728 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19 |
| 736 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20 | 729 #define NPVERS_MACOSX_HAS_EVENT_MODELS 20 |
| 737 #define NPVERS_HAS_URL_AND_AUTH_INFO 21 | |
| 738 #define NPVERS_HAS_PRIVATE_MODE 22 | |
| 739 #define NPVERS_MACOSX_HAS_EVENT_MODELS 23 | |
| 740 | |
| 741 | 730 |
| 742 /*----------------------------------------------------------------------*/ | 731 /*----------------------------------------------------------------------*/ |
| 743 /* Function Prototypes */ | 732 /* Function Prototypes */ |
| 744 /*----------------------------------------------------------------------*/ | 733 /*----------------------------------------------------------------------*/ |
| 745 | 734 |
| 746 #if defined(_WINDOWS) && !defined(WIN32) | 735 #if defined(_WINDOWS) && !defined(WIN32) |
| 747 #define NP_LOADDS _loadds | 736 #define NP_LOADDS _loadds |
| 748 #else | 737 #else |
| 749 #define NP_LOADDS | 738 #define NP_LOADDS |
| 750 #endif | 739 #endif |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void
*userData); | 821 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void
*userData); |
| 833 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void
(*timerFunc)(NPP npp, uint32 timerID)); | 822 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void
(*timerFunc)(NPP npp, uint32 timerID)); |
| 834 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); | 823 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); |
| 835 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); | 824 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); |
| 836 | 825 |
| 837 #ifdef __cplusplus | 826 #ifdef __cplusplus |
| 838 } /* end extern "C" */ | 827 } /* end extern "C" */ |
| 839 #endif | 828 #endif |
| 840 | 829 |
| 841 #endif /* _NPAPI_H_ */ | 830 #endif /* _NPAPI_H_ */ |
| OLD | NEW |