Changeset 14397 in webkit for trunk/JavaScriptCore/bindings/npapi.h
- Timestamp:
- May 15, 2006, 5:04:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/npapi.h
r14246 r14397 91 91 #endif 92 92 93 #if defined(XP_MACOSX) && defined(__LP64__) 94 #define NP_NO_QUICKDRAW 95 #endif 93 96 94 97 /*----------------------------------------------------------------------*/ … … 333 336 /* Get the NPObject wrapper for the plugins DOM element. */ 334 337 NPNVPluginElementNPObject /* Not implemented in WebKit */ 338 339 #ifdef XP_MACOSX 340 , NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugin */ 341 342 #ifndef NP_NO_QUICKDRAW 343 , NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the QuickDraw drawing model */ 344 #endif 345 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the CoreGraphics drawing model */ 346 #endif /* XP_MACOSX */ 335 347 } NPNVariable; 336 348 … … 343 355 NPWindowTypeDrawable 344 356 } NPWindowType; 357 358 #ifdef XP_MACOSX 359 360 /* 361 * The drawing model for a Mac OS X plugin. These are the possible values for the NPNVpluginDrawingModel variable. 362 */ 363 364 typedef enum { 365 #ifndef NP_NO_QUICKDRAW 366 NPDrawingModelQuickDraw = 0, 367 #endif 368 NPDrawingModelCoreGraphics = 1 369 } NPDrawingModel; 370 371 #endif 345 372 346 373 typedef struct _NPWindow … … 400 427 #endif /* XP_MAC */ 401 428 402 #if defined(XP_MAC) || defined(XP_MACOSX)429 #if defined(XP_MAC) 403 430 typedef RgnHandle NPRegion; 431 #elif defined(XP_MACOSX) 432 /* 433 * NPRegion's type depends on the drawing model specified by the plugin (see NPNVpluginDrawingModel). 434 * NPQDRegion represents a QuickDraw RgnHandle, and NPCGRegion represents a CoreGraphics CGPathRef. 435 */ 436 typedef void *NPRegion; 437 #ifndef NP_NO_QUICKDRAW 438 typedef RgnHandle NPQDRegion; 439 #endif 440 typedef CGPathRef NPCGRegion; 404 441 #elif defined(XP_WIN) 405 442 typedef HRGN NPRegion; … … 410 447 #endif /* XP_MAC */ 411 448 449 #ifdef XP_MACOSX 450 451 /* 452 * NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelCoreGraphics 453 * as its drawing model. 454 */ 455 456 typedef struct NP_CGContext 457 { 458 CGContextRef context; 459 WindowRef window; 460 } NP_CGContext; 461 462 #endif /* XP_MACOSX */ 463 412 464 #if defined(XP_MAC) || defined(XP_MACOSX) 465 413 466 /* 414 467 * Mac-specific structures and definitions. 415 468 */ 416 469 470 #ifndef NP_NO_QUICKDRAW 471 472 /* 473 * NP_Port is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelQuickDraw as its 474 * drawing model, or the plugin does not specify a drawing model. 475 * 476 * It is not recommended that new plugins use NPDrawingModelQuickDraw or NP_Port, as QuickDraw has been 477 * deprecated in Mac OS X 10.5. CoreGraphics is the preferred drawing API. 478 * 479 * NP_Port is not available in 64-bit. 480 */ 481 417 482 typedef struct NP_Port 418 483 { … … 421 486 int32 porty; 422 487 } NP_Port; 488 489 #endif /* NP_NO_QUICKDRAW */ 423 490 424 491 /*
Note:
See TracChangeset
for help on using the changeset viewer.