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 { |