Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: third_party/npapi/bindings/npapi.h

Issue 4930001: Sync to r31 of npapi-headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | third_party/npapi/bindings/npfunctions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 26
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
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 379
375 /* Checks if the plugin is interested in receiving the http body of 380 /* Checks if the plugin is interested in receiving the http body of
376 * all http requests (including failed ones, http status != 200). 381 * all http requests (including failed ones, http status != 200).
377 */ 382 */
378 NPPVpluginWantsAllNetworkStreams = 18, 383 NPPVpluginWantsAllNetworkStreams = 18,
379 384
380 /* Browsers can retrieve a native ATK accessibility plug ID via this variable. */ 385 /* Browsers can retrieve a native ATK accessibility plug ID via this variable. */
381 NPPVpluginNativeAccessibleAtkPlugId = 19, 386 NPPVpluginNativeAccessibleAtkPlugId = 19,
382 387
383 /* Checks to see if the plug-in would like the browser to load the "src" attri bute. */ 388 /* Checks to see if the plug-in would like the browser to load the "src" attri bute. */
384 NPPVpluginCancelSrcStream = 20 389 NPPVpluginCancelSrcStream = 20,
390
391 NPPVSupportsAdvancedKeyHandling = 21
385 392
386 #if defined(XP_MACOSX) 393 #if defined(XP_MACOSX)
387 /* Used for negotiating drawing models */ 394 /* Used for negotiating drawing models */
388 , NPPVpluginDrawingModel = 1000 395 , NPPVpluginDrawingModel = 1000
389 /* Used for negotiating event models */ 396 /* Used for negotiating event models */
390 , NPPVpluginEventModel = 1001 397 , NPPVpluginEventModel = 1001
391 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug -in for a Core Animation layer. */ 398 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug -in for a Core Animation layer. */
392 , NPPVpluginCoreAnimationLayer = 1003 399 , NPPVpluginCoreAnimationLayer = 1003
393 #endif 400 #endif
394 401
395 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5) 402 #if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6)
396 , NPPVpluginWindowlessLocalBool = 2002 403 , NPPVpluginWindowlessLocalBool = 2002
397 #endif 404 #endif
398 } NPPVariable; 405 } NPPVariable;
399 406
400 /* 407 /*
401 * List of variable names for which NPN_GetValue should be implemented. 408 * List of variable names for which NPN_GetValue should be implemented.
402 */ 409 */
403 typedef enum { 410 typedef enum {
404 NPNVxDisplay = 1, 411 NPNVxDisplay = 1,
405 NPNVxtAppContext, 412 NPNVxtAppContext,
406 NPNVnetscapeWindow, 413 NPNVnetscapeWindow,
407 NPNVjavascriptEnabledBool, 414 NPNVjavascriptEnabledBool,
408 NPNVasdEnabledBool, 415 NPNVasdEnabledBool,
409 NPNVisOfflineBool, 416 NPNVisOfflineBool,
410 417
411 NPNVserviceManager = (10 | NP_ABI_MASK), 418 NPNVserviceManager = (10 | NP_ABI_MASK),
412 NPNVDOMElement = (11 | NP_ABI_MASK), 419 NPNVDOMElement = (11 | NP_ABI_MASK),
413 NPNVDOMWindow = (12 | NP_ABI_MASK), 420 NPNVDOMWindow = (12 | NP_ABI_MASK),
414 NPNVToolkit = (13 | NP_ABI_MASK), 421 NPNVToolkit = (13 | NP_ABI_MASK),
415 NPNVSupportsXEmbedBool = 14, 422 NPNVSupportsXEmbedBool = 14,
416 423
417 /* Get the NPObject wrapper for the browser window. */ 424 /* Get the NPObject wrapper for the browser window. */
418 NPNVWindowNPObject = 15, 425 NPNVWindowNPObject = 15,
419 426
420 /* Get the NPObject wrapper for the plugins DOM element. */ 427 /* Get the NPObject wrapper for the plugins DOM element. */
421 NPNVPluginElementNPObject = 16, 428 NPNVPluginElementNPObject = 16,
422 429
423 NPNVSupportsWindowless = 17, 430 NPNVSupportsWindowless = 17,
424 431
425 NPNVprivateModeBool = 18 432 NPNVprivateModeBool = 18,
433
434 NPNVsupportsAdvancedKeyHandling = 21
426 435
427 #if defined(XP_MACOSX) 436 #if defined(XP_MACOSX)
428 /* Used for negotiating drawing models */ 437 /* Used for negotiating drawing models */
429 , NPNVpluginDrawingModel = 1000 438 , NPNVpluginDrawingModel = 1000
430 #ifndef NP_NO_QUICKDRAW 439 #ifndef NP_NO_QUICKDRAW
431 , NPNVsupportsQuickDrawBool = 2000 440 , NPNVsupportsQuickDrawBool = 2000
432 #endif 441 #endif
433 , NPNVsupportsCoreGraphicsBool = 2001 442 , NPNVsupportsCoreGraphicsBool = 2001
434 , NPNVsupportsOpenGLBool = 2002 443 , NPNVsupportsOpenGLBool = 2002
435 , NPNVsupportsCoreAnimationBool = 2003 444 , NPNVsupportsCoreAnimationBool = 2003
436 , NPNVsupportsInvalidatingCoreAnimationBool = 2004 445 , NPNVsupportsInvalidatingCoreAnimationBool = 2004
437 #ifndef NP_NO_CARBON 446 #ifndef NP_NO_CARBON
438 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve nt model */ 447 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve nt model */
439 #endif 448 #endif
440 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */ 449 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
441 #endif 450 #endif
442 #if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO == 5) 451 #if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6)
443 , NPNVSupportsWindowlessLocal = 2002 452 , NPNVSupportsWindowlessLocal = 2002
444 #endif 453 #endif
445 } NPNVariable; 454 } NPNVariable;
446 455
447 typedef enum { 456 typedef enum {
448 NPNURLVCookie = 501, 457 NPNURLVCookie = 501,
449 NPNURLVProxy 458 NPNURLVProxy
450 } NPNURLVariable; 459 } NPNURLVariable;
451 460
452 /* 461 /*
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14 775 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
767 #define NPVERS_HAS_FORM_VALUES 15 776 #define NPVERS_HAS_FORM_VALUES 15
768 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 777 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16
769 #define NPVERS_HAS_RESPONSE_HEADERS 17 778 #define NPVERS_HAS_RESPONSE_HEADERS 17
770 #define NPVERS_HAS_NPOBJECT_ENUM 18 779 #define NPVERS_HAS_NPOBJECT_ENUM 18
771 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19 780 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
772 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20 781 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20
773 #define NPVERS_HAS_URL_AND_AUTH_INFO 21 782 #define NPVERS_HAS_URL_AND_AUTH_INFO 21
774 #define NPVERS_HAS_PRIVATE_MODE 22 783 #define NPVERS_HAS_PRIVATE_MODE 22
775 #define NPVERS_MACOSX_HAS_COCOA_EVENTS 23 784 #define NPVERS_MACOSX_HAS_COCOA_EVENTS 23
785 #define NPVERS_HAS_ADVANCED_KEY_HANDLING 25
786 #define NPVERS_HAS_URL_REDIRECT_HANDLING 26
776 787
777 /*----------------------------------------------------------------------*/ 788 /*----------------------------------------------------------------------*/
778 /* Function Prototypes */ 789 /* Function Prototypes */
779 /*----------------------------------------------------------------------*/ 790 /*----------------------------------------------------------------------*/
780 791
781 #if defined(__OS2__) 792 #if defined(__OS2__)
782 #define NP_LOADDS _System 793 #define NP_LOADDS _System
783 #else 794 #else
784 #define NP_LOADDS 795 #define NP_LOADDS
785 #endif 796 #endif
(...skipping 24 matching lines...) Expand all
810 int32_t NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32_t offset, 821 int32_t NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32_t offset,
811 int32_t len, void* buffer); 822 int32_t len, void* buffer);
812 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream, 823 void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
813 const char* fname); 824 const char* fname);
814 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint); 825 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
815 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event); 826 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event);
816 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url, 827 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
817 NPReason reason, void* notifyData); 828 NPReason reason, void* notifyData);
818 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value); 829 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value);
819 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value); 830 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value);
831 NPBool NP_LOADDS NPP_GotFocus(NPP instance, NPFocusDirection direction);
832 void NP_LOADDS NPP_LostFocus(NPP instance);
833 void NP_LOADDS NPP_URLRedirectNotify(NPP instance, const char* url, int32_t s tatus, void* notifyData);
820 834
821 /* NPN_* functions are provided by the navigator and called by the plugin. */ 835 /* NPN_* functions are provided by the navigator and called by the plugin. */
822 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor, 836 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor,
823 int* netscape_major, int* netscape_minor); 837 int* netscape_major, int* netscape_minor);
824 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url, 838 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url,
825 const char* target, void* notifyData); 839 const char* target, void* notifyData);
826 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url, 840 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url,
827 const char* target); 841 const char* target);
828 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url, 842 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url,
829 const char* target, uint32_t len, 843 const char* target, uint32_t len,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 const char *host, int32_t port, 883 const char *host, int32_t port,
870 const char *scheme, 884 const char *scheme,
871 const char *realm, 885 const char *realm,
872 char **username, uint32_t *ulen, 886 char **username, uint32_t *ulen,
873 char **password, 887 char **password,
874 uint32_t *plen); 888 uint32_t *plen);
875 uint32_t NP_LOADDS NPN_ScheduleTimer(NPP instance, uint32_t interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32_t timerID)); 889 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); 890 void NP_LOADDS NPN_UnscheduleTimer(NPP instance, uint32_t timerID);
877 NPError NP_LOADDS NPN_PopUpContextMenu(NPP instance, NPMenu* menu); 891 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); 892 NPBool NP_LOADDS NPN_ConvertPoint(NPP instance, double sourceX, double sour ceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSp ace destSpace);
893 NPBool NP_LOADDS NPN_HandleEvent(NPP instance, void *event, NPBool handled) ;
894 NPBool NP_LOADDS NPN_UnfocusInstance(NPP instance, NPFocusDirection directi on);
895 void NP_LOADDS NPN_URLRedirectResponse(NPP instance, void* notifyData, NP Bool allow);
879 896
880 #ifdef __cplusplus 897 #ifdef __cplusplus
881 } /* end extern "C" */ 898 } /* end extern "C" */
882 #endif 899 #endif
883 900
884 #endif /* RC_INVOKED */ 901 #endif /* RC_INVOKED */
885 #if defined(__OS2__) 902 #if defined(__OS2__)
886 #pragma pack() 903 #pragma pack()
887 #endif 904 #endif
888 905
889 #endif /* npapi_h_ */ 906 #endif /* npapi_h_ */
OLDNEW
« no previous file with comments | « no previous file | third_party/npapi/bindings/npfunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698