1.1 --- a/epoc32/include/mw/npapi.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/mw/npapi.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -48,6 +48,8 @@
1.4 #ifndef _NPAPI_H_
1.5 #define _NPAPI_H_
1.6
1.7 +#define GENERIC_CONTEXTS
1.8 +
1.9 #ifdef INCLUDE_JAVA
1.10 #include "jri.h" /* Java Runtime Interface */
1.11 #else
1.12 @@ -410,9 +412,74 @@
1.13 #endif /* XP_MACOSX */
1.14
1.15 /* Get the id of the currently connected access point */
1.16 - NPNNetworkAccess
1.17 + NPNNetworkAccess,
1.18 + NPNVGenericParameter,
1.19 + NPNVSupportsWindowless
1.20 } NPNVariable;
1.21
1.22 +#ifdef GENERIC_CONTEXTS
1.23 +
1.24 +union NPN_GenericParam {
1.25 +
1.26 + NPN_GenericParam(int aIntValue)
1.27 + :intValue(aIntValue)
1.28 + {
1.29 +
1.30 + }
1.31 +
1.32 + NPN_GenericParam(bool aBoolValue)
1.33 + :boolValue(aBoolValue)
1.34 + {
1.35 +
1.36 + }
1.37 +
1.38 + NPN_GenericParam(const TDesC& aStrValue)
1.39 + :strValue(aStrValue)
1.40 + {
1.41 +
1.42 + }
1.43 +
1.44 + NPN_GenericParam(void* aVoidValue)
1.45 + :voidValue(aVoidValue)
1.46 + {
1.47 +
1.48 + }
1.49 + int intValue;
1.50 + bool boolValue;
1.51 + const TDesC& strValue;
1.52 + void* voidValue;
1.53 +};
1.54 +
1.55 +
1.56 +typedef struct NPN_GenericElement{
1.57 +
1.58 + NPN_GenericElement(const TDesC& aElementId, int aElementValue)
1.59 + :genericElementId(aElementId), genericElementValue(aElementValue)
1.60 + {
1.61 +
1.62 + }
1.63 +
1.64 + NPN_GenericElement(const TDesC& aElementId, bool aElementValue)
1.65 + :genericElementId(aElementId), genericElementValue(aElementValue)
1.66 + {
1.67 +
1.68 + }
1.69 +
1.70 + NPN_GenericElement(const TDesC& aElementId, void* aElementValue)
1.71 + :genericElementId(aElementId), genericElementValue(aElementValue)
1.72 + {
1.73 +
1.74 + }
1.75 +
1.76 + NPN_GenericElement(const TDesC& aElementId, const TDesC& aElementValue)
1.77 + :genericElementId(aElementId), genericElementValue(aElementValue)
1.78 + {
1.79 +
1.80 + }
1.81 + const TDesC& genericElementId;
1.82 + NPN_GenericParam genericElementValue;
1.83 +} GenericEntry;
1.84 +#endif
1.85 /*
1.86 * The type of a NPWindow - it specifies the type of the data structure
1.87 * returned in the window field.