| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 /* Get the NPObject for scripting the plugin. Introduced in Firefox | 428 /* Get the NPObject for scripting the plugin. Introduced in Firefox |
| 429 * 1.0 (NPAPI minor version 14). | 429 * 1.0 (NPAPI minor version 14). |
| 430 */ | 430 */ |
| 431 NPPVpluginScriptableNPObject = 15, | 431 NPPVpluginScriptableNPObject = 15, |
| 432 | 432 |
| 433 /* Get the plugin value (as \0-terminated UTF-8 string data) for | 433 /* Get the plugin value (as \0-terminated UTF-8 string data) for |
| 434 * form submission if the plugin is part of a form. Use | 434 * form submission if the plugin is part of a form. Use |
| 435 * NPN_MemAlloc() to allocate memory for the string data. Introduced | 435 * NPN_MemAlloc() to allocate memory for the string data. Introduced |
| 436 * in Mozilla 1.8b2 (NPAPI minor version 15). | 436 * in Mozilla 1.8b2 (NPAPI minor version 15). |
| 437 */ | 437 */ |
| 438 NPPVformValue = 16 | 438 NPPVformValue = 16, |
| 439 |
| 440 // BEGIN MODIFICATIONS (copied from WebKit/WebCore/bridge/npapi.h) |
| 441 NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */ |
| 442 |
| 443 /* Checks if the plugin is interested in receiving the http body of |
| 444 * failed http requests (http status != 200). |
| 445 */ |
| 446 NPPVpluginWantsAllNetworkStreams = 18, |
| 447 |
| 448 /* Checks to see if the plug-in would like the browser to load the "src" att
ribute. */ |
| 449 NPPVpluginCancelSrcStream = 20, |
| 450 // END MODIFICATIONS |
| 439 #ifdef XP_MACOSX | 451 #ifdef XP_MACOSX |
| 440 /* Used for negotiating drawing models */ | 452 /* Used for negotiating drawing models */ |
| 441 , NPPVpluginDrawingModel = 1000 | 453 , NPPVpluginDrawingModel = 1000 |
| 442 #endif | 454 #endif |
| 443 } NPPVariable; | 455 } NPPVariable; |
| 444 | 456 |
| 445 /* | 457 /* |
| 446 * List of variable names for which NPN_GetValue is implemented by Mozilla | 458 * List of variable names for which NPN_GetValue is implemented by Mozilla |
| 447 */ | 459 */ |
| 448 typedef enum { | 460 typedef enum { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 } NPNVariable; | 493 } NPNVariable; |
| 482 | 494 |
| 483 /* | 495 /* |
| 484 * The type of Tookkit the widgets use | 496 * The type of Tookkit the widgets use |
| 485 */ | 497 */ |
| 486 typedef enum { | 498 typedef enum { |
| 487 NPNVGtk12 = 1, | 499 NPNVGtk12 = 1, |
| 488 NPNVGtk2 | 500 NPNVGtk2 |
| 489 } NPNToolkitType; | 501 } NPNToolkitType; |
| 490 | 502 |
| 503 // BEGIN MODIFICATIONS (copied from WebKit/WebCore/bridge/npapi.h) |
| 504 typedef enum { |
| 505 NPNURLVCookie = 501, |
| 506 NPNURLVProxy |
| 507 } NPNURLVariable; |
| 508 // END MODIFICATIONS |
| 509 |
| 491 /* | 510 /* |
| 492 * The type of a NPWindow - it specifies the type of the data structure | 511 * The type of a NPWindow - it specifies the type of the data structure |
| 493 * returned in the window field. | 512 * returned in the window field. |
| 494 */ | 513 */ |
| 495 typedef enum { | 514 typedef enum { |
| 496 NPWindowTypeWindow = 1, | 515 NPWindowTypeWindow = 1, |
| 497 NPWindowTypeDrawable | 516 NPWindowTypeDrawable |
| 498 } NPWindowType; | 517 } NPWindowType; |
| 499 | 518 |
| 500 typedef struct _NPWindow | 519 typedef struct _NPWindow |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 559 |
| 541 // BEGIN GOOGLE MODIFICATIONS | 560 // BEGIN GOOGLE MODIFICATIONS |
| 542 #ifdef XP_MACOSX | 561 #ifdef XP_MACOSX |
| 543 typedef struct _NPNSMenu NPNSMenu; | 562 typedef struct _NPNSMenu NPNSMenu; |
| 544 typedef NPNSMenu NPMenu; | 563 typedef NPNSMenu NPMenu; |
| 545 #else | 564 #else |
| 546 typedef void * NPMenu; | 565 typedef void * NPMenu; |
| 547 #endif | 566 #endif |
| 548 // END GOOGLE MODIFICATIONS | 567 // END GOOGLE MODIFICATIONS |
| 549 | 568 |
| 569 // BEGIN MODIFICATIONS (copied from WebKit/WebCore/bridge/npapi.h) |
| 570 typedef enum { |
| 571 NPCoordinateSpacePlugin = 1, |
| 572 NPCoordinateSpaceWindow, |
| 573 NPCoordinateSpaceFlippedWindow, |
| 574 NPCoordinateSpaceScreen, |
| 575 NPCoordinateSpaceFlippedScreen |
| 576 } NPCoordinateSpace; |
| 577 // END MODIFICATIONS |
| 578 |
| 550 #ifdef XP_MACOSX | 579 #ifdef XP_MACOSX |
| 551 typedef EventRecord NPEvent; | 580 typedef EventRecord NPEvent; |
| 552 #elif defined(XP_WIN) | 581 #elif defined(XP_WIN) |
| 553 typedef struct _NPEvent | 582 typedef struct _NPEvent |
| 554 { | 583 { |
| 555 uint16 event; | 584 uint16 event; |
| 556 uint32 wParam; | 585 uint32 wParam; |
| 557 uint32 lParam; | 586 uint32 lParam; |
| 558 } NPEvent; | 587 } NPEvent; |
| 559 #elif defined(XP_OS2) | 588 #elif defined(XP_OS2) |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 #ifdef __cplusplus | 827 #ifdef __cplusplus |
| 799 } /* end extern "C" */ | 828 } /* end extern "C" */ |
| 800 #endif | 829 #endif |
| 801 | 830 |
| 802 #endif /* RC_INVOKED */ | 831 #endif /* RC_INVOKED */ |
| 803 #ifdef __OS2__ | 832 #ifdef __OS2__ |
| 804 #pragma pack() | 833 #pragma pack() |
| 805 #endif | 834 #endif |
| 806 | 835 |
| 807 #endif /* _NPAPI_H_ */ | 836 #endif /* _NPAPI_H_ */ |
| OLD | NEW |