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

Side by Side Diff: third_party/WebKit/WebCore/bridge/npapi.h

Issue 21152: WebKit merge 40668:40722 part 1. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months 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
OLDNEW
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
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 20 111 #define NP_VERSION_MINOR 23
112
113
114 112
115 /*----------------------------------------------------------------------*/ 113 /*----------------------------------------------------------------------*/
116 /* Definition of Basic Types */ 114 /* Definition of Basic Types */
117 /*----------------------------------------------------------------------*/ 115 /*----------------------------------------------------------------------*/
118 116
119 #ifndef _UINT16 117 #ifndef _UINT16
120 #define _UINT16 118 #define _UINT16
121 typedef unsigned short uint16; 119 typedef unsigned short uint16;
122 #endif 120 #endif
123 121
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 */ 334 */
337 NPPVformValue = 16, /* Not implemented in WebKit */ 335 NPPVformValue = 16, /* Not implemented in WebKit */
338 336
339 NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */ 337 NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */
340 338
341 /* Checks if the plugin is interested in receiving the http body of 339 /* Checks if the plugin is interested in receiving the http body of
342 * failed http requests (http status != 200). 340 * failed http requests (http status != 200).
343 */ 341 */
344 NPPVpluginWantsAllNetworkStreams = 18, 342 NPPVpluginWantsAllNetworkStreams = 18,
345 343
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
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
383 385
384 #ifdef XP_MACOSX 386 #ifdef XP_MACOSX
385 , NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugi n */ 387 , NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugi n */
386 388
387 #ifndef NP_NO_QUICKDRAW 389 #ifndef NP_NO_QUICKDRAW
388 , NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the Quick Draw drawing model */ 390 , NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the Quick Draw drawing model */
389 #endif 391 #endif
390 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the Co reGraphics drawing model */ 392 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the Co reGraphics drawing model */
391 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL d rawing model (CGL on Mac) */ 393 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL d rawing model (CGL on Mac) */
392 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the C oreAnimation drawing model */ 394 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the C oreAnimation drawing model */
393 395
394 #ifndef NP_NO_CARBON 396 #ifndef NP_NO_CARBON
395 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon e vent model */ 397 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon e vent model */
396 #endif 398 #endif
397 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa eve nt model */ 399 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa eve nt model */
398 400
399 , NPNVbrowserTextInputFuncs = 1002 /* The browser text input vtable */ 401 , NPNVbrowserTextInputFuncs = 1002 /* The browser text input vtable */
400 #endif /* XP_MACOSX */ 402 #endif /* XP_MACOSX */
401 } NPNVariable; 403 } NPNVariable;
402 404
405 typedef enum {
406 NPNURLVCookie = 501,
407 NPNURLVProxy
408 } NPNURLVariable;
409
403 /* 410 /*
404 * The type of a NPWindow - it specifies the type of the data structure 411 * The type of a NPWindow - it specifies the type of the data structure
405 * returned in the window field. 412 * returned in the window field.
406 */ 413 */
407 typedef enum { 414 typedef enum {
408 NPWindowTypeWindow = 1, 415 NPWindowTypeWindow = 1,
409 NPWindowTypeDrawable 416 NPWindowTypeDrawable
410 } NPWindowType; 417 } NPWindowType;
411 418
412 #ifdef XP_MACOSX 419 #ifdef XP_MACOSX
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 #define NPVERS_WIN16_HAS_LIVECONNECT 9 726 #define NPVERS_WIN16_HAS_LIVECONNECT 9
720 #define NPVERS_68K_HAS_LIVECONNECT 11 727 #define NPVERS_68K_HAS_LIVECONNECT 11
721 #define NPVERS_HAS_WINDOWLESS 11 728 #define NPVERS_HAS_WINDOWLESS 11
722 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */ 729 #define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */
723 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14 730 #define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
724 #define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see bug 13061 */ 731 #define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see bug 13061 */
725 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */ 732 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */
726 #define NPVERS_HAS_RESPONSE_HEADERS 17 733 #define NPVERS_HAS_RESPONSE_HEADERS 17
727 #define NPVERS_HAS_NPOBJECT_ENUM 18 734 #define NPVERS_HAS_NPOBJECT_ENUM 18
728 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19 735 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
729 #define NPVERS_MACOSX_HAS_EVENT_MODELS 20 736 #define NPVERS_HAS_ALL_NETWORK_STREAMS 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
730 741
731 /*----------------------------------------------------------------------*/ 742 /*----------------------------------------------------------------------*/
732 /* Function Prototypes */ 743 /* Function Prototypes */
733 /*----------------------------------------------------------------------*/ 744 /*----------------------------------------------------------------------*/
734 745
735 #if defined(_WINDOWS) && !defined(WIN32) 746 #if defined(_WINDOWS) && !defined(WIN32)
736 #define NP_LOADDS _loadds 747 #define NP_LOADDS _loadds
737 #else 748 #else
738 #define NP_LOADDS 749 #define NP_LOADDS
739 #endif 750 #endif
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void *userData); 832 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void *userData);
822 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32 timerID)); 833 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32 timerID));
823 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); 834 void NPN_UnscheduleTimer(NPP instance, uint32 timerID);
824 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); 835 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu);
825 836
826 #ifdef __cplusplus 837 #ifdef __cplusplus
827 } /* end extern "C" */ 838 } /* end extern "C" */
828 #endif 839 #endif
829 840
830 #endif /* _NPAPI_H_ */ 841 #endif /* _NPAPI_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698