Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
No edit summary |
No edit summary |
||
| Line 37: | Line 37: | ||
A plugin may call NPN_GetValue() with the following NPNVariables to query the browser for its supported drawing models: | A plugin may call NPN_GetValue() with the following NPNVariables to query the browser for its supported drawing models: | ||
#ifndef NP_NO_QUICKDRAW | #ifndef NP_NO_QUICKDRAW | ||
/* TRUE if the browser supports the QuickDraw drawing model */ | |||
#endif | NPNVsupportsQuickDrawBool = 2000 | ||
#endif | |||
/* TRUE if the browser supports the CoreGraphics drawing model */ | |||
NPNVsupportsCoreGraphicsBool = 2001 | |||
Once the plugin finds a supported drawing model, it calls NPN_SetValue() to tell the browser which drawing model it will use. We're adding a new NPNVariable for this: | Once the plugin finds a supported drawing model, it calls NPN_SetValue() to tell the browser which drawing model it will use. We're adding a new NPNVariable for this: | ||