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 |
414 } NPNVariable; |
417 } NPNVariable; |
415 |
418 |
|
419 #ifdef GENERIC_CONTEXTS |
|
420 |
|
421 union NPN_GenericParam { |
|
422 |
|
423 NPN_GenericParam(int aIntValue) |
|
424 :intValue(aIntValue) |
|
425 { |
|
426 |
|
427 } |
|
428 |
|
429 NPN_GenericParam(bool aBoolValue) |
|
430 :boolValue(aBoolValue) |
|
431 { |
|
432 |
|
433 } |
|
434 |
|
435 NPN_GenericParam(const TDesC& aStrValue) |
|
436 :strValue(aStrValue) |
|
437 { |
|
438 |
|
439 } |
|
440 |
|
441 NPN_GenericParam(void* aVoidValue) |
|
442 :voidValue(aVoidValue) |
|
443 { |
|
444 |
|
445 } |
|
446 int intValue; |
|
447 bool boolValue; |
|
448 const TDesC& strValue; |
|
449 void* voidValue; |
|
450 }; |
|
451 |
|
452 |
|
453 typedef struct NPN_GenericElement{ |
|
454 |
|
455 NPN_GenericElement(const TDesC& aElementId, int aElementValue) |
|
456 :genericElementId(aElementId), genericElementValue(aElementValue) |
|
457 { |
|
458 |
|
459 } |
|
460 |
|
461 NPN_GenericElement(const TDesC& aElementId, bool aElementValue) |
|
462 :genericElementId(aElementId), genericElementValue(aElementValue) |
|
463 { |
|
464 |
|
465 } |
|
466 |
|
467 NPN_GenericElement(const TDesC& aElementId, void* aElementValue) |
|
468 :genericElementId(aElementId), genericElementValue(aElementValue) |
|
469 { |
|
470 |
|
471 } |
|
472 |
|
473 NPN_GenericElement(const TDesC& aElementId, const TDesC& aElementValue) |
|
474 :genericElementId(aElementId), genericElementValue(aElementValue) |
|
475 { |
|
476 |
|
477 } |
|
478 const TDesC& genericElementId; |
|
479 NPN_GenericParam genericElementValue; |
|
480 } GenericEntry; |
|
481 #endif |
416 /* |
482 /* |
417 * The type of a NPWindow - it specifies the type of the data structure |
483 * The type of a NPWindow - it specifies the type of the data structure |
418 * returned in the window field. |
484 * returned in the window field. |
419 */ |
485 */ |
420 typedef enum { |
486 typedef enum { |