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

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

Issue 6102007: Update NPAPI headers to r32 from the upstream npapi-headers repository (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add nptypes.h changes Created 9 years, 11 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
« 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 /* END GOOGLE MODIFICATIONS */ 83 /* END GOOGLE MODIFICATIONS */
84 84
85 #if defined(__SYMBIAN32__) 85 #if defined(__SYMBIAN32__)
86 #ifndef XP_SYMBIAN 86 #ifndef XP_SYMBIAN
87 #define XP_SYMBIAN 1 87 #define XP_SYMBIAN 1
88 #undef XP_WIN 88 #undef XP_WIN
89 #endif 89 #endif
90 #endif 90 #endif
91 91
92 #if defined(__APPLE_CC__) && !defined(XP_UNIX) 92 #if defined(__APPLE_CC__) && !defined(XP_UNIX)
93 #define XP_MACOSX 93 #ifndef XP_MACOSX
94 #define XP_MACOSX 1
95 #endif
94 #endif 96 #endif
95 97
96 #if defined(XP_MACOSX) && defined(__LP64__) 98 #if defined(XP_MACOSX) && defined(__LP64__)
97 #define NP_NO_QUICKDRAW 99 #define NP_NO_QUICKDRAW
98 #define NP_NO_CARBON 100 #define NP_NO_CARBON
99 #endif 101 #endif
100 102
101 #if defined(XP_MACOSX) 103 #if defined(XP_MACOSX)
102 #include <ApplicationServices/ApplicationServices.h> 104 #include <ApplicationServices/ApplicationServices.h>
103 #include <OpenGL/OpenGL.h> 105 #include <OpenGL/OpenGL.h>
(...skipping 19 matching lines...) Expand all
123 #if defined(XP_SYMBIAN) 125 #if defined(XP_SYMBIAN)
124 #include <QEvent> 126 #include <QEvent>
125 #include <QRegion> 127 #include <QRegion>
126 #endif 128 #endif
127 129
128 /*----------------------------------------------------------------------*/ 130 /*----------------------------------------------------------------------*/
129 /* Plugin Version Constants */ 131 /* Plugin Version Constants */
130 /*----------------------------------------------------------------------*/ 132 /*----------------------------------------------------------------------*/
131 133
132 #define NP_VERSION_MAJOR 0 134 #define NP_VERSION_MAJOR 0
133 #define NP_VERSION_MINOR 26 135 #define NP_VERSION_MINOR 27
134 136
135 137
136 /* The OS/2 version of Netscape uses RC_DATA to define the 138 /* The OS/2 version of Netscape uses RC_DATA to define the
137 mime types, file extensions, etc that are required. 139 mime types, file extensions, etc that are required.
138 Use a vertical bar to separate types, end types with \0. 140 Use a vertical bar to separate types, end types with \0.
139 FileVersion and ProductVersion are 32bit ints, all other 141 FileVersion and ProductVersion are 32bit ints, all other
140 entries are strings that MUST be terminated with a \0. 142 entries are strings that MUST be terminated with a \0.
141 143
142 AN EXAMPLE: 144 AN EXAMPLE:
143 145
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 /* 714 /*
713 * Values for stream type passed to NPP_NewStream: 715 * Values for stream type passed to NPP_NewStream:
714 */ 716 */
715 #define NP_NORMAL 1 717 #define NP_NORMAL 1
716 #define NP_SEEK 2 718 #define NP_SEEK 2
717 #define NP_ASFILE 3 719 #define NP_ASFILE 3
718 #define NP_ASFILEONLY 4 720 #define NP_ASFILEONLY 4
719 721
720 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1) 722 #define NP_MAXREADY (((unsigned)(~0)<<1)>>1)
721 723
724 /*
725 * Flags for NPP_ClearSiteData.
726 */
727 #define NP_CLEAR_ALL 0
728 #define NP_CLEAR_CACHE (1 << 0)
729
722 #if !defined(__LP64__) 730 #if !defined(__LP64__)
723 #if defined(XP_MACOSX) 731 #if defined(XP_MACOSX)
724 #pragma options align=reset 732 #pragma options align=reset
725 #endif 733 #endif
726 #endif /* __LP64__ */ 734 #endif /* __LP64__ */
727 735
728 /*----------------------------------------------------------------------*/ 736 /*----------------------------------------------------------------------*/
729 /* Error and Reason Code definitions */ 737 /* Error and Reason Code definitions */
730 /*----------------------------------------------------------------------*/ 738 /*----------------------------------------------------------------------*/
731 739
732 /* 740 /*
733 * Values of type NPError: 741 * Values of type NPError:
734 */ 742 */
735 #define NPERR_BASE 0 743 #define NPERR_BASE 0
736 #define NPERR_NO_ERROR (NPERR_BASE + 0) 744 #define NPERR_NO_ERROR (NPERR_BASE + 0)
737 #define NPERR_GENERIC_ERROR (NPERR_BASE + 1) 745 #define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
738 #define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2) 746 #define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2)
739 #define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3) 747 #define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3)
740 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4) 748 #define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4)
741 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5) 749 #define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5)
742 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6) 750 #define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6)
743 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7) 751 #define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7)
744 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8) 752 #define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8)
745 #define NPERR_INVALID_PARAM (NPERR_BASE + 9) 753 #define NPERR_INVALID_PARAM (NPERR_BASE + 9)
746 #define NPERR_INVALID_URL (NPERR_BASE + 10) 754 #define NPERR_INVALID_URL (NPERR_BASE + 10)
747 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11) 755 #define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11)
748 #define NPERR_NO_DATA (NPERR_BASE + 12) 756 #define NPERR_NO_DATA (NPERR_BASE + 12)
749 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13) 757 #define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13)
758 #define NPERR_TIME_RANGE_NOT_SUPPORTED (NPERR_BASE + 14)
759 #define NPERR_MALFORMED_SITE (NPERR_BASE + 15)
750 760
751 /* 761 /*
752 * Values of type NPReason: 762 * Values of type NPReason:
753 */ 763 */
754 #define NPRES_BASE 0 764 #define NPRES_BASE 0
755 #define NPRES_DONE (NPRES_BASE + 0) 765 #define NPRES_DONE (NPRES_BASE + 0)
756 #define NPRES_NETWORK_ERR (NPRES_BASE + 1) 766 #define NPRES_NETWORK_ERR (NPRES_BASE + 1)
757 #define NPRES_USER_BREAK (NPRES_BASE + 2) 767 #define NPRES_USER_BREAK (NPRES_BASE + 2)
758 768
759 /* 769 /*
(...skipping 17 matching lines...) Expand all
777 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16 787 #define NPVERS_HAS_POPUPS_ENABLED_STATE 16
778 #define NPVERS_HAS_RESPONSE_HEADERS 17 788 #define NPVERS_HAS_RESPONSE_HEADERS 17
779 #define NPVERS_HAS_NPOBJECT_ENUM 18 789 #define NPVERS_HAS_NPOBJECT_ENUM 18
780 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19 790 #define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
781 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20 791 #define NPVERS_HAS_ALL_NETWORK_STREAMS 20
782 #define NPVERS_HAS_URL_AND_AUTH_INFO 21 792 #define NPVERS_HAS_URL_AND_AUTH_INFO 21
783 #define NPVERS_HAS_PRIVATE_MODE 22 793 #define NPVERS_HAS_PRIVATE_MODE 22
784 #define NPVERS_MACOSX_HAS_COCOA_EVENTS 23 794 #define NPVERS_MACOSX_HAS_COCOA_EVENTS 23
785 #define NPVERS_HAS_ADVANCED_KEY_HANDLING 25 795 #define NPVERS_HAS_ADVANCED_KEY_HANDLING 25
786 #define NPVERS_HAS_URL_REDIRECT_HANDLING 26 796 #define NPVERS_HAS_URL_REDIRECT_HANDLING 26
797 #define NPVERS_HAS_CLEAR_SITE_DATA 27
787 798
788 /*----------------------------------------------------------------------*/ 799 /*----------------------------------------------------------------------*/
789 /* Function Prototypes */ 800 /* Function Prototypes */
790 /*----------------------------------------------------------------------*/ 801 /*----------------------------------------------------------------------*/
791 802
792 #if defined(__OS2__) 803 #if defined(__OS2__)
793 #define NP_LOADDS _System 804 #define NP_LOADDS _System
794 #else 805 #else
795 #define NP_LOADDS 806 #define NP_LOADDS
796 #endif 807 #endif
(...skipping 27 matching lines...) Expand all
824 const char* fname); 835 const char* fname);
825 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint); 836 void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
826 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event); 837 int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event);
827 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url, 838 void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
828 NPReason reason, void* notifyData); 839 NPReason reason, void* notifyData);
829 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value); 840 NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value);
830 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value); 841 NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value);
831 NPBool NP_LOADDS NPP_GotFocus(NPP instance, NPFocusDirection direction); 842 NPBool NP_LOADDS NPP_GotFocus(NPP instance, NPFocusDirection direction);
832 void NP_LOADDS NPP_LostFocus(NPP instance); 843 void NP_LOADDS NPP_LostFocus(NPP instance);
833 void NP_LOADDS NPP_URLRedirectNotify(NPP instance, const char* url, int32_t s tatus, void* notifyData); 844 void NP_LOADDS NPP_URLRedirectNotify(NPP instance, const char* url, int32_t s tatus, void* notifyData);
845 NPError NP_LOADDS NPP_ClearSiteData(const char* site, uint64_t flags, uint64_t m axAge);
846 char** NP_LOADDS NPP_GetSitesWithData(void);
834 847
835 /* NPN_* functions are provided by the navigator and called by the plugin. */ 848 /* NPN_* functions are provided by the navigator and called by the plugin. */
836 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor, 849 void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor,
837 int* netscape_major, int* netscape_minor); 850 int* netscape_major, int* netscape_minor);
838 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url, 851 NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url,
839 const char* target, void* notifyData); 852 const char* target, void* notifyData);
840 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url, 853 NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url,
841 const char* target); 854 const char* target);
842 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url, 855 NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url,
843 const char* target, uint32_t len, 856 const char* target, uint32_t len,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 #ifdef __cplusplus 910 #ifdef __cplusplus
898 } /* end extern "C" */ 911 } /* end extern "C" */
899 #endif 912 #endif
900 913
901 #endif /* RC_INVOKED */ 914 #endif /* RC_INVOKED */
902 #if defined(__OS2__) 915 #if defined(__OS2__)
903 #pragma pack() 916 #pragma pack()
904 #endif 917 #endif
905 918
906 #endif /* npapi_h_ */ 919 #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