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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 396 |
397 #if defined(XP_MACOSX) | 397 #if defined(XP_MACOSX) |
398 /* Used for negotiating drawing models */ | 398 /* Used for negotiating drawing models */ |
399 , NPPVpluginDrawingModel = 1000 | 399 , NPPVpluginDrawingModel = 1000 |
400 /* Used for negotiating event models */ | 400 /* Used for negotiating event models */ |
401 , NPPVpluginEventModel = 1001 | 401 , NPPVpluginEventModel = 1001 |
402 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug
-in for a Core Animation layer. */ | 402 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug
-in for a Core Animation layer. */ |
403 , NPPVpluginCoreAnimationLayer = 1003 | 403 , NPPVpluginCoreAnimationLayer = 1003 |
404 #endif | 404 #endif |
405 | 405 |
406 #if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6) | 406 #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_M
AEMO == 6)) |
407 , NPPVpluginWindowlessLocalBool = 2002 | 407 , NPPVpluginWindowlessLocalBool = 2002 |
408 #endif | 408 #endif |
409 } NPPVariable; | 409 } NPPVariable; |
410 | 410 |
411 /* | 411 /* |
412 * List of variable names for which NPN_GetValue should be implemented. | 412 * List of variable names for which NPN_GetValue should be implemented. |
413 */ | 413 */ |
414 typedef enum { | 414 typedef enum { |
415 NPNVxDisplay = 1, | 415 NPNVxDisplay = 1, |
416 NPNVxtAppContext, | 416 NPNVxtAppContext, |
(...skipping 11 matching lines...) Expand all Loading... |
428 /* Get the NPObject wrapper for the browser window. */ | 428 /* Get the NPObject wrapper for the browser window. */ |
429 NPNVWindowNPObject = 15, | 429 NPNVWindowNPObject = 15, |
430 | 430 |
431 /* Get the NPObject wrapper for the plugins DOM element. */ | 431 /* Get the NPObject wrapper for the plugins DOM element. */ |
432 NPNVPluginElementNPObject = 16, | 432 NPNVPluginElementNPObject = 16, |
433 | 433 |
434 NPNVSupportsWindowless = 17, | 434 NPNVSupportsWindowless = 17, |
435 | 435 |
436 NPNVprivateModeBool = 18, | 436 NPNVprivateModeBool = 18, |
437 | 437 |
438 NPNVsupportsAdvancedKeyHandling = 21 | 438 NPNVsupportsAdvancedKeyHandling = 21, |
| 439 |
| 440 NPNVdocumentOrigin = 22 |
439 | 441 |
440 #if defined(XP_MACOSX) | 442 #if defined(XP_MACOSX) |
441 /* Used for negotiating drawing models */ | 443 /* Used for negotiating drawing models */ |
442 , NPNVpluginDrawingModel = 1000 | 444 , NPNVpluginDrawingModel = 1000 |
443 #ifndef NP_NO_QUICKDRAW | 445 #ifndef NP_NO_QUICKDRAW |
444 , NPNVsupportsQuickDrawBool = 2000 | 446 , NPNVsupportsQuickDrawBool = 2000 |
445 #endif | 447 #endif |
446 , NPNVsupportsCoreGraphicsBool = 2001 | 448 , NPNVsupportsCoreGraphicsBool = 2001 |
447 , NPNVsupportsOpenGLBool = 2002 | 449 , NPNVsupportsOpenGLBool = 2002 |
448 , NPNVsupportsCoreAnimationBool = 2003 | 450 , NPNVsupportsCoreAnimationBool = 2003 |
449 , NPNVsupportsInvalidatingCoreAnimationBool = 2004 | 451 , NPNVsupportsInvalidatingCoreAnimationBool = 2004 |
450 #ifndef NP_NO_CARBON | 452 #ifndef NP_NO_CARBON |
451 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve
nt model */ | 453 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve
nt model */ |
452 #endif | 454 #endif |
453 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event
model */ | 455 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event
model */ |
454 , NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports
the updated | 456 , NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports
the updated |
455 Cocoa text input specificati
on. */ | 457 Cocoa text input specificati
on. */ |
| 458 , NPNVsupportsCompositingCoreAnimationPluginsBool = 74656 /* TRUE if the brows
er supports |
| 459 CA model composit
ing */ |
456 #endif | 460 #endif |
457 #if (MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_MAEMO == 6) | 461 #if defined(MOZ_PLATFORM_MAEMO) && ((MOZ_PLATFORM_MAEMO == 5) || (MOZ_PLATFORM_M
AEMO == 6)) |
458 , NPNVSupportsWindowlessLocal = 2002 | 462 , NPNVSupportsWindowlessLocal = 2002 |
459 #endif | 463 #endif |
460 } NPNVariable; | 464 } NPNVariable; |
461 | 465 |
462 typedef enum { | 466 typedef enum { |
463 NPNURLVCookie = 501, | 467 NPNURLVCookie = 501, |
464 NPNURLVProxy | 468 NPNURLVProxy |
465 } NPNURLVariable; | 469 } NPNURLVariable; |
466 | 470 |
467 /* | 471 /* |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 #ifdef __cplusplus | 916 #ifdef __cplusplus |
913 } /* end extern "C" */ | 917 } /* end extern "C" */ |
914 #endif | 918 #endif |
915 | 919 |
916 #endif /* RC_INVOKED */ | 920 #endif /* RC_INVOKED */ |
917 #if defined(__OS2__) | 921 #if defined(__OS2__) |
918 #pragma pack() | 922 #pragma pack() |
919 #endif | 923 #endif |
920 | 924 |
921 #endif /* npapi_h_ */ | 925 #endif /* npapi_h_ */ |
OLD | NEW |