NPAPI:CoreGraphicsDrawing: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 50: Line 50:
The value for the NPNVpluginDrawingModel is an NPDrawingModel, a new enumeration we're adding:
The value for the NPNVpluginDrawingModel is an NPDrawingModel, a new enumeration we're adding:


#ifdef XP_MACOSX
#ifdef XP_MACOSX


/*
/* The drawing model for a Mac OS X plugin. These are the possible values
* The drawing model for a Mac OS X plugin. These are the possible values for the NPNVpluginDrawingModel variable.
  * for the NPNVpluginDrawingModel variable.
*/
  */


typedef enum {
typedef enum {
#ifndef NP_NO_QUICKDRAW
#ifndef NP_NO_QUICKDRAW
    NPDrawingModelQuickDraw = 0,
  NPDrawingModelQuickDraw = 0,
#endif
#endif
    NPDrawingModelCoreGraphics = 1
  NPDrawingModelCoreGraphics = 1
} NPDrawingModel;
} NPDrawingModel;


#endif
#endif


If the browser does not support any of the plugin's drawing models, then the plugin should return an error from NPP_New() so that it is not started.
If the browser does not support any of the plugin's drawing models, then the plugin should return an error from NPP_New() so that it is not started.
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits