epoc32/include/mw/npapi.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
    45   *  Netscape client plug-in API spec
    45   *  Netscape client plug-in API spec
    46   */
    46   */
    47 
    47 
    48 #ifndef _NPAPI_H_
    48 #ifndef _NPAPI_H_
    49 #define _NPAPI_H_
    49 #define _NPAPI_H_
       
    50 
       
    51 #define GENERIC_CONTEXTS
    50 
    52 
    51 #ifdef INCLUDE_JAVA
    53 #ifdef INCLUDE_JAVA
    52 #include "jri.h"                /* Java Runtime Interface */
    54 #include "jri.h"                /* Java Runtime Interface */
    53 #else
    55 #else
    54 #ifndef __SYMBIAN32__
    56 #ifndef __SYMBIAN32__
   408     , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the CoreGraphics drawing model */
   410     , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the CoreGraphics drawing model */
   409     , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL drawing model (CGL on Mac) */
   411     , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL drawing model (CGL on Mac) */
   410 #endif /* XP_MACOSX */
   412 #endif /* XP_MACOSX */
   411     
   413     
   412     /* Get the id of the currently connected access point */
   414     /* Get the id of the currently connected access point */
   413     NPNNetworkAccess
   415     NPNNetworkAccess,
       
   416     NPNVGenericParameter,
       
   417     NPNVSupportsWindowless
   414 } NPNVariable;
   418 } NPNVariable;
   415 
   419 
       
   420 #ifdef GENERIC_CONTEXTS
       
   421 
       
   422 union  NPN_GenericParam {
       
   423 
       
   424     NPN_GenericParam(int aIntValue)
       
   425     :intValue(aIntValue)
       
   426         {
       
   427         
       
   428         }
       
   429     
       
   430     NPN_GenericParam(bool aBoolValue)
       
   431     :boolValue(aBoolValue)
       
   432         {
       
   433         
       
   434         }
       
   435             
       
   436     NPN_GenericParam(const TDesC& aStrValue)
       
   437     :strValue(aStrValue)
       
   438         {
       
   439         
       
   440         }
       
   441         
       
   442     NPN_GenericParam(void*  aVoidValue)
       
   443     :voidValue(aVoidValue)
       
   444         {
       
   445         
       
   446         }
       
   447     int intValue;
       
   448     bool   boolValue;
       
   449     const TDesC& strValue;
       
   450     void*  voidValue;
       
   451 };
       
   452 
       
   453 
       
   454 typedef struct NPN_GenericElement{          
       
   455 
       
   456     NPN_GenericElement(const TDesC& aElementId, int aElementValue)
       
   457     :genericElementId(aElementId), genericElementValue(aElementValue)
       
   458         {
       
   459         
       
   460         }
       
   461     
       
   462     NPN_GenericElement(const TDesC& aElementId, bool aElementValue)
       
   463     :genericElementId(aElementId), genericElementValue(aElementValue)
       
   464         {
       
   465         
       
   466         }
       
   467 
       
   468     NPN_GenericElement(const TDesC& aElementId, void* aElementValue)
       
   469     :genericElementId(aElementId), genericElementValue(aElementValue)
       
   470         {
       
   471         
       
   472         }
       
   473                         
       
   474     NPN_GenericElement(const TDesC& aElementId, const TDesC& aElementValue)
       
   475     :genericElementId(aElementId), genericElementValue(aElementValue)
       
   476         {
       
   477         
       
   478         }
       
   479     const TDesC&  genericElementId;          
       
   480     NPN_GenericParam genericElementValue;
       
   481 } GenericEntry;
       
   482 #endif
   416 /*
   483 /*
   417  * The type of a NPWindow - it specifies the type of the data structure
   484  * The type of a NPWindow - it specifies the type of the data structure
   418  * returned in the window field.
   485  * returned in the window field.
   419  */
   486  */
   420 typedef enum {
   487 typedef enum {