diff options
| author | Feng Qian <fqian@google.com> | 2009-06-22 15:51:02 -0700 |
|---|---|---|
| committer | Feng Qian <fqian@google.com> | 2009-06-22 15:51:02 -0700 |
| commit | 616ad0c2b4a8561fcf943605dd2b64725bc41145 (patch) | |
| tree | 65baac4c52509f5fc51630691d335be43dff5e2d /V8Binding/npapi | |
| parent | 9964d8875dca4f6db8bc668043fbcb9a966b8627 (diff) | |
| download | external_webkit-616ad0c2b4a8561fcf943605dd2b64725bc41145.zip external_webkit-616ad0c2b4a8561fcf943605dd2b64725bc41145.tar.gz external_webkit-616ad0c2b4a8561fcf943605dd2b64725bc41145.tar.bz2 | |
Fix V8 build.
Diffstat (limited to 'V8Binding/npapi')
| -rw-r--r-- | V8Binding/npapi/npapi.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/V8Binding/npapi/npapi.h b/V8Binding/npapi/npapi.h index 43b701b..3022984 100644 --- a/V8Binding/npapi/npapi.h +++ b/V8Binding/npapi/npapi.h @@ -494,6 +494,8 @@ typedef struct _NPCocoaEvent { uint16 keyCode; } key; struct { + CGContextRef context; + double x; double y; double width; @@ -557,6 +559,19 @@ typedef NPNSMenu NPMenu; typedef void * NPMenu; #endif +typedef enum { + NPCoordinateSpacePlugin = 1, + NPCoordinateSpaceWindow, + NPCoordinateSpaceFlippedWindow, + NPCoordinateSpaceScreen, + NPCoordinateSpaceFlippedScreen + +#ifdef ANDROID + , NPCoordinateSpaceToForce32Bits = 0x7FFFFFFF +#endif + +} NPCoordinateSpace; + #if defined(XP_MAC) || defined(XP_MACOSX) #ifndef NP_NO_CARBON @@ -842,10 +857,14 @@ void NPN_ForceRedraw(NPP instance); void NPN_PushPopupsEnabledState(NPP instance, NPBool enabled); void NPN_PopPopupsEnabledState(NPP instance); void NPN_PluginThreadAsyncCall(NPP instance, void (*func) (void *), void *userData); +NPError NPN_GetValueForURL(NPP instance, NPNURLVariable variable, const char* url, char** value, uint32* len); +NPError NPN_SetValueForURL(NPP instance, NPNURLVariable variable, const char* url, const char* value, uint32 len); +NPError NPN_GetAuthenticationInfo(NPP instance, const char* protocol, const char* host, int32 port, const char* scheme, const char *realm, char** username, uint32* ulen, char** password, uint32* plen); uint32 NPN_ScheduleTimer(NPP instance, uint32 interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32 timerID)); void NPN_UnscheduleTimer(NPP instance, uint32 timerID); NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu); - +NPBool NPN_ConvertPoint(NPP instance, double sourceX, double sourceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSpace); + #ifdef __cplusplus } /* end extern "C" */ #endif |
