| OLD | NEW |
| 1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
| 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 * | 3 * |
| 4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
| 5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
| 6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
| 7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
| 8 * | 8 * |
| 9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
| 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 NPPVpluginPrivateModeBool = 19, | 344 NPPVpluginPrivateModeBool = 19, |
| 345 | 345 |
| 346 /* Checks to see if the plug-in would like the browser to load the "src" att
ribute. */ | 346 /* Checks to see if the plug-in would like the browser to load the "src" att
ribute. */ |
| 347 NPPVpluginCancelSrcStream = 20, | 347 NPPVpluginCancelSrcStream = 20, |
| 348 | 348 |
| 349 #ifdef XP_MACOSX | 349 #ifdef XP_MACOSX |
| 350 /* Used for negotiating drawing models */ | 350 /* Used for negotiating drawing models */ |
| 351 NPPVpluginDrawingModel = 1000, | 351 NPPVpluginDrawingModel = 1000, |
| 352 /* Used for negotiating event models */ | 352 /* Used for negotiating event models */ |
| 353 NPPVpluginEventModel = 1001, | 353 NPPVpluginEventModel = 1001, |
| 354 /* The plug-in text input vtable */ | |
| 355 NPPVpluginTextInputFuncs = 1002, | |
| 356 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the pl
ug-in for a Core Animation layer. */ | 354 /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the pl
ug-in for a Core Animation layer. */ |
| 357 NPPVpluginCoreAnimationLayer = 1003 | 355 NPPVpluginCoreAnimationLayer = 1003 |
| 358 #endif | 356 #endif |
| 359 } NPPVariable; | 357 } NPPVariable; |
| 360 | 358 |
| 361 /* | 359 /* |
| 362 * List of variable names for which NPN_GetValue is implemented by Mozilla | 360 * List of variable names for which NPN_GetValue is implemented by Mozilla |
| 363 */ | 361 */ |
| 364 typedef enum { | 362 typedef enum { |
| 365 NPNVxDisplay = 1, | 363 NPNVxDisplay = 1, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 394 #endif | 392 #endif |
| 395 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the Co
reGraphics drawing model */ | 393 , NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the Co
reGraphics drawing model */ |
| 396 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL d
rawing model (CGL on Mac) */ | 394 , NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL d
rawing model (CGL on Mac) */ |
| 397 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the C
oreAnimation drawing model */ | 395 , NPNVsupportsCoreAnimationBool = 2003 /* TRUE if the browser supports the C
oreAnimation drawing model */ |
| 398 | 396 |
| 399 #ifndef NP_NO_CARBON | 397 #ifndef NP_NO_CARBON |
| 400 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon e
vent model */ | 398 , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon e
vent model */ |
| 401 #endif | 399 #endif |
| 402 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa eve
nt model */ | 400 , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa eve
nt model */ |
| 403 | 401 |
| 404 , NPNVbrowserTextInputFuncs = 1002 /* The browser text input vtable */ | |
| 405 #endif /* XP_MACOSX */ | 402 #endif /* XP_MACOSX */ |
| 406 } NPNVariable; | 403 } NPNVariable; |
| 407 | 404 |
| 408 typedef enum { | 405 typedef enum { |
| 409 NPNURLVCookie = 501, | 406 NPNURLVCookie = 501, |
| 410 NPNURLVProxy | 407 NPNURLVProxy |
| 411 } NPNURLVariable; | 408 } NPNURLVariable; |
| 412 | 409 |
| 413 /* | 410 /* |
| 414 * The type of a NPWindow - it specifies the type of the data structure | 411 * The type of a NPWindow - it specifies the type of the data structure |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 NPCocoaEventMouseMoved, | 449 NPCocoaEventMouseMoved, |
| 453 NPCocoaEventMouseEntered, | 450 NPCocoaEventMouseEntered, |
| 454 NPCocoaEventMouseExited, | 451 NPCocoaEventMouseExited, |
| 455 NPCocoaEventMouseDragged, | 452 NPCocoaEventMouseDragged, |
| 456 NPCocoaEventKeyDown, | 453 NPCocoaEventKeyDown, |
| 457 NPCocoaEventKeyUp, | 454 NPCocoaEventKeyUp, |
| 458 NPCocoaEventFlagsChanged, | 455 NPCocoaEventFlagsChanged, |
| 459 NPCocoaEventFocusChanged, | 456 NPCocoaEventFocusChanged, |
| 460 NPCocoaEventWindowFocusChanged, | 457 NPCocoaEventWindowFocusChanged, |
| 461 NPCocoaEventScrollWheel, | 458 NPCocoaEventScrollWheel, |
| 459 NPCocoaEventTextInput |
| 462 } NPCocoaEventType; | 460 } NPCocoaEventType; |
| 463 | 461 |
| 464 typedef struct _NPNSString NPNSString; | 462 typedef struct _NPNSString NPNSString; |
| 465 typedef struct _NPNSWindow NPNSWindow; | 463 typedef struct _NPNSWindow NPNSWindow; |
| 466 typedef struct _NPNSMenu NPNSMenu; | 464 typedef struct _NPNSMenu NPNSMenu; |
| 467 | 465 |
| 468 typedef struct _NPCocoaEvent { | 466 typedef struct _NPCocoaEvent { |
| 469 NPCocoaEventType type; | 467 NPCocoaEventType type; |
| 470 uint32 version; | 468 uint32 version; |
| 471 | 469 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 488 uint16 keyCode; | 486 uint16 keyCode; |
| 489 } key; | 487 } key; |
| 490 struct { | 488 struct { |
| 491 double x; | 489 double x; |
| 492 double y; | 490 double y; |
| 493 double width; | 491 double width; |
| 494 double height; | 492 double height; |
| 495 } draw; | 493 } draw; |
| 496 struct { | 494 struct { |
| 497 NPBool hasFocus; | 495 NPBool hasFocus; |
| 498 } focus; | 496 } focus; |
| 497 struct { |
| 498 NPNSString *text; |
| 499 } text; |
| 499 } data; | 500 } data; |
| 500 } NPCocoaEvent; | 501 } NPCocoaEvent; |
| 501 | 502 |
| 502 #endif | 503 #endif |
| 503 | 504 |
| 504 typedef struct _NPWindow | 505 typedef struct _NPWindow |
| 505 { | 506 { |
| 506 void* window; /* Platform specific window handle */ | 507 void* window; /* Platform specific window handle */ |
| 507 int32 x; /* Position of top left corner relative */ | 508 int32 x; /* Position of top left corner relative */ |
| 508 int32 y; /* to a netscape page. */ | 509 int32 y; /* to a netscape page. */ |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void
*userData); | 836 void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void
*userData); |
| 836 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void
(*timerFunc)(NPP npp, uint32 timerID)); | 837 uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void
(*timerFunc)(NPP npp, uint32 timerID)); |
| 837 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); | 838 void NPN_UnscheduleTimer(NPP instance, uint32 timerID); |
| 838 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); | 839 NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); |
| 839 | 840 |
| 840 #ifdef __cplusplus | 841 #ifdef __cplusplus |
| 841 } /* end extern "C" */ | 842 } /* end extern "C" */ |
| 842 #endif | 843 #endif |
| 843 | 844 |
| 844 #endif /* _NPAPI_H_ */ | 845 #endif /* _NPAPI_H_ */ |
| OLD | NEW |