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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 /* | 38 /* |
39 * Netscape client plug-in API spec | 39 * Netscape client plug-in API spec |
40 */ | 40 */ |
41 | 41 |
42 | 42 |
43 #ifndef _NPAPI_H_ | 43 #ifndef _NPAPI_H_ |
44 #define _NPAPI_H_ | 44 #define _NPAPI_H_ |
45 | 45 |
46 | 46 |
47 // BEGIN GOOGLE MODIFICATIONS | 47 /* BEGIN GOOGLE MODIFICATIONS */ |
48 | 48 |
49 #include "base/basictypes.h" | 49 #include "base/basictypes.h" |
50 | 50 |
51 // END GOOGLE MODIFICATIONS | 51 /* END GOOGLE MODIFICATIONS */ |
52 | 52 |
53 #ifdef INCLUDE_JAVA | 53 #ifdef INCLUDE_JAVA |
54 #include "jri.h" /* Java Runtime Interface */ | 54 #include "jri.h" /* Java Runtime Interface */ |
55 #else | 55 #else |
56 #define jref void * | 56 #define jref void * |
57 #define JRIEnv void | 57 #define JRIEnv void |
58 #endif | 58 #endif |
59 | 59 |
60 #ifdef _WIN32 | 60 #ifdef _WIN32 |
61 # ifndef XP_WIN | 61 # ifndef XP_WIN |
62 # define XP_WIN 1 | 62 # define XP_WIN 1 |
63 # endif /* XP_WIN */ | 63 # endif /* XP_WIN */ |
64 #endif /* _WIN32 */ | 64 #endif /* _WIN32 */ |
65 | 65 |
66 // BEGIN GOOGLE MODIFICATIONS | 66 /* BEGIN GOOGLE MODIFICATIONS */ |
67 // On Linux and Mac, be sure to set Mozilla-specific macros. | 67 /* On Linux and Mac, be sure to set Mozilla-specific macros. */ |
68 #if defined(OS_LINUX) || defined(OS_FREEBSD) | 68 #if defined(OS_LINUX) || defined(OS_FREEBSD) |
69 #define XP_UNIX 1 | 69 #define XP_UNIX 1 |
70 #define MOZ_X11 1 | 70 #define MOZ_X11 1 |
71 #endif | 71 #endif |
72 // END GOOGLE MODIFICATIONS | 72 /* END GOOGLE MODIFICATIONS */ |
73 | 73 |
74 #ifdef __MWERKS__ | 74 #ifdef __MWERKS__ |
75 # define _declspec __declspec | 75 # define _declspec __declspec |
76 # ifdef macintosh | 76 # ifdef macintosh |
77 # ifndef XP_MAC | 77 # ifndef XP_MAC |
78 # define XP_MAC 1 | 78 # define XP_MAC 1 |
79 # endif /* XP_MAC */ | 79 # endif /* XP_MAC */ |
80 # endif /* macintosh */ | 80 # endif /* macintosh */ |
81 # ifdef __INTEL__ | 81 # ifdef __INTEL__ |
82 # undef NULL | 82 # undef NULL |
(...skipping 27 matching lines...) Expand all Loading... |
110 #ifdef XP_MACOSX | 110 #ifdef XP_MACOSX |
111 #include <ApplicationServices/ApplicationServices.h> | 111 #include <ApplicationServices/ApplicationServices.h> |
112 #include <OpenGL/OpenGL.h> | 112 #include <OpenGL/OpenGL.h> |
113 #ifndef NP_NO_CARBON | 113 #ifndef NP_NO_CARBON |
114 #include <Carbon/Carbon.h> | 114 #include <Carbon/Carbon.h> |
115 #endif | 115 #endif |
116 #endif | 116 #endif |
117 | 117 |
118 #if defined(XP_UNIX) | 118 #if defined(XP_UNIX) |
119 # include <stdio.h> | 119 # include <stdio.h> |
120 // BEGIN GOOGLE MODIFICATIONS | 120 /* BEGIN GOOGLE MODIFICATIONS */ |
121 #if 0 | 121 #if 0 |
122 // END GOOGLE MODIFICATIONS | 122 /* END GOOGLE MODIFICATIONS */ |
123 # if defined(MOZ_X11) | 123 # if defined(MOZ_X11) |
124 # include <X11/Xlib.h> | 124 # include <X11/Xlib.h> |
125 # include <X11/Xutil.h> | 125 # include <X11/Xutil.h> |
126 # endif | 126 # endif |
127 // BEGIN GOOGLE MODIFICATIONS | 127 /* BEGIN GOOGLE MODIFICATIONS */ |
128 #endif | 128 #endif |
129 // END GOOGLE MODIFICATIONS | 129 /* END GOOGLE MODIFICATIONS */ |
130 #endif | 130 #endif |
131 | 131 |
132 #ifdef XP_WIN | 132 #ifdef XP_WIN |
133 #include <windows.h> | 133 #include <windows.h> |
134 #endif | 134 #endif |
135 | 135 |
136 /*----------------------------------------------------------------------*/ | 136 /*----------------------------------------------------------------------*/ |
137 /* Plugin Version Constants */ | 137 /* Plugin Version Constants */ |
138 /*----------------------------------------------------------------------*/ | 138 /*----------------------------------------------------------------------*/ |
139 | 139 |
140 #define NP_VERSION_MAJOR 0 | 140 #define NP_VERSION_MAJOR 0 |
141 // BEGIN GOOGLE MODIFICATIONS | 141 /* BEGIN GOOGLE MODIFICATIONS */ |
142 #define NP_VERSION_MINOR 23 // maximum version currently supported by Chromium | 142 #define NP_VERSION_MINOR 23 /* maximum version currently supported by Chromium *
/ |
143 // END GOOGLE MODIFICATIONS | 143 /* END GOOGLE MODIFICATIONS */ |
144 | 144 |
145 | 145 |
146 /*----------------------------------------------------------------------*/ | 146 /*----------------------------------------------------------------------*/ |
147 /* Definition of Basic Types */ | 147 /* Definition of Basic Types */ |
148 /*----------------------------------------------------------------------*/ | 148 /*----------------------------------------------------------------------*/ |
149 | 149 |
150 /* QNX sets the _INT16 and friends defines, but does not typedef the types */ | 150 /* QNX sets the _INT16 and friends defines, but does not typedef the types */ |
151 #ifdef __QNXNTO__ | 151 #ifdef __QNXNTO__ |
152 #undef _UINT16 | 152 #undef _UINT16 |
153 #undef _INT16 | 153 #undef _INT16 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 enum { | 280 enum { |
281 NP_SETWINDOW = 1, | 281 NP_SETWINDOW = 1, |
282 NP_PRINT | 282 NP_PRINT |
283 }; | 283 }; |
284 | 284 |
285 typedef struct | 285 typedef struct |
286 { | 286 { |
287 int32 type; | 287 int32 type; |
288 } NPAnyCallbackStruct; | 288 } NPAnyCallbackStruct; |
289 | 289 |
290 // BEGIN GOOGLE MODIFICATIONS | 290 /* BEGIN GOOGLE MODIFICATIONS */ |
291 typedef struct _NPSetWindowCallbackStruct NPSetWindowCallbackStruct; | 291 typedef struct _NPSetWindowCallbackStruct NPSetWindowCallbackStruct; |
292 // END GOOGLE MODIFICATIONS | 292 /* END GOOGLE MODIFICATIONS */ |
293 | 293 |
294 typedef struct | 294 typedef struct |
295 { | 295 { |
296 int32 type; | 296 int32 type; |
297 FILE* fp; | 297 FILE* fp; |
298 } NPPrintCallbackStruct; | 298 } NPPrintCallbackStruct; |
299 | 299 |
300 #endif /* XP_UNIX */ | 300 #endif /* XP_UNIX */ |
301 | 301 |
302 | 302 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve
nt model */ | 436 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon eve
nt model */ |
437 #endif | 437 #endif |
438 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event
model */ | 438 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event
model */ |
439 #endif | 439 #endif |
440 #ifdef PEPPER_APIS_ENABLED | 440 #ifdef PEPPER_APIS_ENABLED |
441 /* | 441 /* |
442 * Note: these APIs have not been ratified by Mozilla, et al. | 442 * Note: these APIs have not been ratified by Mozilla, et al. |
443 * Until they are, they need to be distinct values from other enum | 443 * Until they are, they need to be distinct values from other enum |
444 * elements here. | 444 * elements here. |
445 */ | 445 */ |
446 , NPNVInitializeRenderContextFunc = 4000 /* A pointer to the InitializeRenderC
ontext function */ | 446 , NPNVPepperExtensions = 4000 /* A pointer to an NPPepperExtensions structure
*/ |
447 , NPNVFlushRenderContextFunc = 4001 /* A pointer to the FlushRenderContext fun
ction */ | |
448 #endif | 447 #endif |
449 } NPNVariable; | 448 } NPNVariable; |
450 | 449 |
451 typedef enum { | 450 typedef enum { |
452 NPNURLVCookie = 501, | 451 NPNURLVCookie = 501, |
453 NPNURLVProxy | 452 NPNURLVProxy |
454 } NPNURLVariable; | 453 } NPNURLVariable; |
455 | 454 |
456 // BEGIN GOOGLE MODIFICATIONS | 455 /* BEGIN GOOGLE MODIFICATIONS */ |
457 /* | 456 /* |
458 * The type of Tookkit the widgets use | 457 * The type of Tookkit the widgets use |
459 */ | 458 */ |
460 typedef enum { | 459 typedef enum { |
461 NPNVGtk12 = 1, | 460 NPNVGtk12 = 1, |
462 NPNVGtk2 | 461 NPNVGtk2 |
463 } NPNToolkitType; | 462 } NPNToolkitType; |
464 // END GOOGLE MODIFICATIONS | 463 /* END GOOGLE MODIFICATIONS */ |
465 | 464 |
466 /* | 465 /* |
467 * The type of a NPWindow - it specifies the type of the data structure | 466 * The type of a NPWindow - it specifies the type of the data structure |
468 * returned in the window field. | 467 * returned in the window field. |
469 */ | 468 */ |
470 typedef enum { | 469 typedef enum { |
471 NPWindowTypeWindow = 1, | 470 NPWindowTypeWindow = 1, |
472 NPWindowTypeDrawable | 471 NPWindowTypeDrawable |
473 } NPWindowType; | 472 } NPWindowType; |
474 | 473 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 { | 592 { |
594 uint16 mode; /* NP_FULL or NP_EMBED */ | 593 uint16 mode; /* NP_FULL or NP_EMBED */ |
595 union | 594 union |
596 { | 595 { |
597 NPFullPrint fullPrint; /* if mode is NP_FULL */ | 596 NPFullPrint fullPrint; /* if mode is NP_FULL */ |
598 NPEmbedPrint embedPrint; /* if mode is NP_EMBED */ | 597 NPEmbedPrint embedPrint; /* if mode is NP_EMBED */ |
599 } print; | 598 } print; |
600 } NPPrint; | 599 } NPPrint; |
601 | 600 |
602 #ifdef XP_MACOSX | 601 #ifdef XP_MACOSX |
603 // BEGIN GOOGLE MODIFICATIONS | 602 /* BEGIN GOOGLE MODIFICATIONS */ |
604 typedef struct _NPNSMenu NPNSMenu; | 603 typedef struct _NPNSMenu NPNSMenu; |
605 // END GOOGLE MODIFICATIONS | 604 /* END GOOGLE MODIFICATIONS */ |
606 typedef NPNSMenu NPMenu; | 605 typedef NPNSMenu NPMenu; |
607 #else | 606 #else |
608 typedef void * NPMenu; | 607 typedef void * NPMenu; |
609 #endif | 608 #endif |
610 | 609 |
611 typedef enum { | 610 typedef enum { |
612 NPCoordinateSpacePlugin = 1, | 611 NPCoordinateSpacePlugin = 1, |
613 NPCoordinateSpaceWindow, | 612 NPCoordinateSpaceWindow, |
614 NPCoordinateSpaceFlippedWindow, | 613 NPCoordinateSpaceFlippedWindow, |
615 NPCoordinateSpaceScreen, | 614 NPCoordinateSpaceScreen, |
616 NPCoordinateSpaceFlippedScreen | 615 NPCoordinateSpaceFlippedScreen |
617 } NPCoordinateSpace; | 616 } NPCoordinateSpace; |
618 | 617 |
619 #if !defined(PEPPER_APIS_ENABLED) | 618 #if !defined(PEPPER_APIS_ENABLED) |
620 #if defined(XP_MAC) || defined(XP_MACOSX) | 619 #if defined(XP_MAC) || defined(XP_MACOSX) |
621 | 620 |
622 #ifndef NP_NO_CARBON | 621 #ifndef NP_NO_CARBON |
623 typedef EventRecord NPEvent; | 622 typedef EventRecord NPEvent; |
624 #endif | 623 #endif |
625 | 624 |
626 #elif defined(XP_WIN) | 625 #elif defined(XP_WIN) |
627 typedef struct _NPEvent | 626 typedef struct _NPEvent |
628 { | 627 { |
629 uint16 event; | 628 uint16 event; |
630 uint32 wParam; | 629 uint32 wParam; |
631 uint32 lParam; | 630 uint32 lParam; |
632 } NPEvent; | 631 } NPEvent; |
633 #elif defined (XP_UNIX) && defined(MOZ_X11) | 632 #elif defined (XP_UNIX) && defined(MOZ_X11) |
634 // BEGIN GOOGLE MODIFICATIONS | 633 /* BEGIN GOOGLE MODIFICATIONS */ |
635 typedef union _XEvent XEvent; | 634 typedef union _XEvent XEvent; |
636 // END GOOGLE MODIFICATIONS | 635 /* END GOOGLE MODIFICATIONS */ |
637 typedef XEvent NPEvent; | 636 typedef XEvent NPEvent; |
638 #else | 637 #else |
639 typedef void* NPEvent; | 638 typedef void* NPEvent; |
640 #endif /* XP_MACOSX */ | 639 #endif /* XP_MACOSX */ |
641 | 640 |
642 #if defined(XP_MAC) | 641 #if defined(XP_MAC) |
643 typedef RgnHandle NPRegion; | 642 typedef RgnHandle NPRegion; |
644 #elif defined(XP_MACOSX) | 643 #elif defined(XP_MACOSX) |
645 /* | 644 /* |
646 * NPRegion's type depends on the drawing model specified by the plugin (see NPN
VpluginDrawingModel). | 645 * NPRegion's type depends on the drawing model specified by the plugin (see NPN
VpluginDrawingModel). |
647 * NPQDRegion represents a QuickDraw RgnHandle and is used with the QuickDraw dr
awing model. | 646 * NPQDRegion represents a QuickDraw RgnHandle and is used with the QuickDraw dr
awing model. |
648 * NPCGRegion repesents a graphical region when using any other drawing model. | 647 * NPCGRegion repesents a graphical region when using any other drawing model. |
649 */ | 648 */ |
650 typedef void *NPRegion; | 649 typedef void *NPRegion; |
651 #ifndef NP_NO_QUICKDRAW | 650 #ifndef NP_NO_QUICKDRAW |
652 typedef RgnHandle NPQDRegion; | 651 typedef RgnHandle NPQDRegion; |
653 #endif | 652 #endif |
654 typedef CGPathRef NPCGRegion; | 653 typedef CGPathRef NPCGRegion; |
655 #elif defined(XP_WIN) | 654 #elif defined(XP_WIN) |
656 typedef HRGN NPRegion; | 655 typedef HRGN NPRegion; |
657 #elif defined(XP_UNIX) | 656 #elif defined(XP_UNIX) |
658 // BEGIN GOOGLE MODIFICATIONS» | 657 /* BEGIN GOOGLE MODIFICATIONS */ |
659 typedef struct _XRegion *Region; | 658 typedef struct _XRegion *Region; |
660 // END GOOGLE MODIFICATIONS | 659 /* END GOOGLE MODIFICATIONS */ |
661 typedef Region NPRegion; | 660 typedef Region NPRegion; |
662 #else | 661 #else |
663 typedef void *NPRegion; | 662 typedef void *NPRegion; |
664 #endif /* XP_MAC */ | 663 #endif /* XP_MAC */ |
665 | 664 |
666 #ifdef XP_MACOSX | 665 #ifdef XP_MACOSX |
667 | 666 |
668 /* | 667 /* |
669 * NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies
NPDrawingModelCoreGraphics | 668 * NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies
NPDrawingModelCoreGraphics |
670 * as its drawing model. | 669 * as its drawing model. |
671 */ | 670 */ |
672 | 671 |
673 typedef struct NP_CGContext | 672 typedef struct NP_CGContext |
674 { | 673 { |
675 CGContextRef context; | 674 CGContextRef context; |
676 #ifdef NP_NO_CARBON | 675 #ifdef NP_NO_CARBON |
677 NPNSWindow *window; | 676 NPNSWindow *window; |
678 #else | 677 #else |
679 void *window; // Can be either an NSWindow or a WindowRef depending on the eve
nt model | 678 void *window; /* Can be either an NSWindow or a WindowRef depending on the eve
nt model */ |
680 #endif | 679 #endif |
681 } NP_CGContext; | 680 } NP_CGContext; |
682 | 681 |
683 /* | 682 /* |
684 * NP_GLContext is the type of the NPWindow's 'window' when the plugin specifies
NPDrawingModelOpenGL as its | 683 * NP_GLContext is the type of the NPWindow's 'window' when the plugin specifies
NPDrawingModelOpenGL as its |
685 * drawing model. | 684 * drawing model. |
686 */ | 685 */ |
687 | 686 |
688 typedef struct NP_GLContext | 687 typedef struct NP_GLContext |
689 { | 688 { |
690 CGLContextObj context; | 689 CGLContextObj context; |
691 #ifdef NP_NO_CARBON | 690 #ifdef NP_NO_CARBON |
692 NPNSWindow *window; | 691 NPNSWindow *window; |
693 #else | 692 #else |
694 void *window; // Can be either an NSWindow or a WindowRef depending on the eve
nt model | 693 void *window; /* Can be either an NSWindow or a WindowRef depending on the eve
nt model */ |
695 #endif | 694 #endif |
696 } NP_GLContext; | 695 } NP_GLContext; |
697 | 696 |
698 #endif /* XP_MACOSX */ | 697 #endif /* XP_MACOSX */ |
699 | 698 |
700 #if defined(XP_MAC) || defined(XP_MACOSX) | 699 #if defined(XP_MAC) || defined(XP_MACOSX) |
701 | 700 |
702 /* | 701 /* |
703 * Mac-specific structures and definitions. | 702 * Mac-specific structures and definitions. |
704 */ | 703 */ |
(...skipping 15 matching lines...) Expand all Loading... |
720 CGrafPtr port; /* Grafport */ | 719 CGrafPtr port; /* Grafport */ |
721 int32 portx; /* position inside the topmost window */ | 720 int32 portx; /* position inside the topmost window */ |
722 int32 porty; | 721 int32 porty; |
723 } NP_Port; | 722 } NP_Port; |
724 | 723 |
725 #endif /* NP_NO_QUICKDRAW */ | 724 #endif /* NP_NO_QUICKDRAW */ |
726 | 725 |
727 /* | 726 /* |
728 * Non-standard event types that can be passed to HandleEvent | 727 * Non-standard event types that can be passed to HandleEvent |
729 */ | 728 */ |
730 // BEGIN GOOGLE MODIFICATIONS | 729 /* BEGIN GOOGLE MODIFICATIONS */ |
731 enum NPEventType { | 730 enum NPEventType { |
732 NPEventType_GetFocusEvent = (osEvt + 16), | 731 NPEventType_GetFocusEvent = (osEvt + 16), |
733 NPEventType_LoseFocusEvent, | 732 NPEventType_LoseFocusEvent, |
734 NPEventType_AdjustCursorEvent, | 733 NPEventType_AdjustCursorEvent, |
735 NPEventType_MenuCommandEvent, | 734 NPEventType_MenuCommandEvent, |
736 NPEventType_ClippingChangedEvent, | 735 NPEventType_ClippingChangedEvent, |
737 NPEventType_ScrollingBeginsEvent = 1000, | 736 NPEventType_ScrollingBeginsEvent = 1000, |
738 NPEventType_ScrollingEndsEvent | 737 NPEventType_ScrollingEndsEvent |
739 }; | 738 }; |
740 | 739 |
741 #ifdef OBSOLETE | 740 #ifdef OBSOLETE |
742 #define getFocusEvent (osEvt + 16) | 741 #define getFocusEvent (osEvt + 16) |
743 #define loseFocusEvent (osEvt + 17) | 742 #define loseFocusEvent (osEvt + 17) |
744 #define adjustCursorEvent (osEvt + 18) | 743 #define adjustCursorEvent (osEvt + 18) |
745 #endif | 744 #endif |
746 // END GOOGLE MODIFICATIONS | 745 /* END GOOGLE MODIFICATIONS */ |
747 | 746 |
748 #endif /* XP_MACOSX */ | 747 #endif /* XP_MACOSX */ |
749 | 748 |
750 /* Stub typedefs for interfaces requiring Pepper types. */ | 749 /* Stub typedefs for interfaces requiring Pepper types. */ |
751 typedef int NPRenderType; | 750 typedef int NPRenderType; |
752 typedef struct _NPRenderContext NPRenderContext; | 751 typedef struct _NPRenderContext NPRenderContext; |
| 752 typedef struct _NPPepperExtensions NPPepperExtensions; |
753 | 753 |
754 #else // defined(PEPPER_APIS_ENABLED) | 754 #else /* defined(PEPPER_APIS_ENABLED) */ |
755 typedef enum { | 755 typedef enum { |
756 NPMouseButton_None = -1, | 756 NPMouseButton_None = -1, |
757 NPMouseButton_Left = 0, | 757 NPMouseButton_Left = 0, |
758 NPMouseButton_Middle = 1, | 758 NPMouseButton_Middle = 1, |
759 NPMouseButton_Right = 2, | 759 NPMouseButton_Right = 2, |
760 } NPMouseButtons; | 760 } NPMouseButtons; |
761 | 761 |
762 typedef enum { | 762 typedef enum { |
763 NPEventType_Undefined = -1, | 763 NPEventType_Undefined = -1, |
764 NPEventType_MouseDown = 0, | 764 NPEventType_MouseDown = 0, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 float deltaX; | 816 float deltaX; |
817 float deltaY; | 817 float deltaY; |
818 float wheelTicksX; | 818 float wheelTicksX; |
819 float wheelTicksY; | 819 float wheelTicksY; |
820 uint32 scrollByPage; | 820 uint32 scrollByPage; |
821 } NPMouseWheelEvent; | 821 } NPMouseWheelEvent; |
822 | 822 |
823 typedef struct _NPDeviceEvent { | 823 typedef struct _NPDeviceEvent { |
824 uint32 device_uid; | 824 uint32 device_uid; |
825 uint32 subtype; | 825 uint32 subtype; |
826 // uint8 generic[0]; | 826 /* uint8 generic[0]; */ |
827 } NPDeviceEvent; | 827 } NPDeviceEvent; |
828 | 828 |
829 typedef struct _NPMinimizeEvent { | 829 typedef struct _NPMinimizeEvent { |
830 int32 value; | 830 int32 value; |
831 } NPMinimizeEvent; | 831 } NPMinimizeEvent; |
832 | 832 |
833 typedef struct _NPFocusEvent { | 833 typedef struct _NPFocusEvent { |
834 int32 value; | 834 int32 value; |
835 } NPFocusEvent; | 835 } NPFocusEvent; |
836 | 836 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 typedef void (*NPFlushRenderContextCallbackPtr)(NPRenderContext* context, | 876 typedef void (*NPFlushRenderContextCallbackPtr)(NPRenderContext* context, |
877
NPError err, | 877
NPError err, |
878 void* userData); | 878 void* userData); |
879 typedef NPError (*NPInitializeRenderContextPtr)(NPP instance, | 879 typedef NPError (*NPInitializeRenderContextPtr)(NPP instance, |
880 NPRenderType type, | 880 NPRenderType type, |
881 NPRenderContext* context); | 881 NPRenderContext* context); |
882 typedef NPError (*NPFlushRenderContextPtr)(NPP instance, | 882 typedef NPError (*NPFlushRenderContextPtr)(NPP instance, |
883 NPRenderContext* context, | 883 NPRenderContext* context, |
884 NPFlushRenderContextCallbackPtr callb
ack, | 884 NPFlushRenderContextCallbackPtr callb
ack, |
885 void* userData); | 885 void* userData); |
886 #endif // defined(PEPPER_APIS_ENABLED) | 886 typedef NPError (*NPDestroyRenderContextPtr)(NPP instance, |
| 887 NPRenderContext* context); |
| 888 |
| 889 typedef struct _NPPepperExtensions |
| 890 { |
| 891 /* Renderer extensions */ |
| 892 NPInitializeRenderContextPtr initializeRender; |
| 893 NPFlushRenderContextPtr flushRender; |
| 894 NPDestroyRenderContextPtr destroyRender; |
| 895 /* Shared memory extensions */ |
| 896 } NPPepperExtensions; |
| 897 |
| 898 #endif /* defined(PEPPER_APIS_ENABLED) */ |
887 | 899 |
888 /* | 900 /* |
889 * Values for mode passed to NPP_New: | 901 * Values for mode passed to NPP_New: |
890 */ | 902 */ |
891 #define NP_EMBED 1 | 903 #define NP_EMBED 1 |
892 #define NP_FULL 2 | 904 #define NP_FULL 2 |
893 | 905 |
894 /* | 906 /* |
895 * Values for stream type passed to NPP_NewStream: | 907 * Values for stream type passed to NPP_NewStream: |
896 */ | 908 */ |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void
(*timerFunc)(NPP npp, uint32 timerID)); | 1077 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void
(*timerFunc)(NPP npp, uint32 timerID)); |
1066 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); | 1078 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); |
1067 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); | 1079 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); |
1068 NPBool NPN_ConvertPoint(NPP instance, double sourceX, double sourceY, NPCoo
rdinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSp
ace); | 1080 NPBool NPN_ConvertPoint(NPP instance, double sourceX, double sourceY, NPCoo
rdinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSp
ace); |
1069 | 1081 |
1070 #ifdef __cplusplus | 1082 #ifdef __cplusplus |
1071 } /* end extern "C" */ | 1083 } /* end extern "C" */ |
1072 #endif | 1084 #endif |
1073 | 1085 |
1074 #endif /* _NPAPI_H_ */ | 1086 #endif /* _NPAPI_H_ */ |
OLD | NEW |