Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: webkit/glue/plugins/nphostapi.h

Issue 465078: Add stubs for NPN_PopUpContextMenu and NPN_ConvertPoint (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webkit/glue/plugins/plugin_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO: Did not implement JRIGlobalRef function yet. Not sure if this is used ? 5 // TODO: Did not implement JRIGlobalRef function yet. Not sure if this is used ?
6 6
7 #ifndef WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ 7 #ifndef WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__
8 #define WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ 8 #define WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__
9 9
10 #include "base/port.h" 10 #include "base/port.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 char **username, 206 char **username,
207 uint32_t *ulen, 207 uint32_t *ulen,
208 char **password, 208 char **password,
209 uint32_t *plen); 209 uint32_t *plen);
210 typedef uint32 (*NPN_ScheduleTimerPtr)(NPP npp, 210 typedef uint32 (*NPN_ScheduleTimerPtr)(NPP npp,
211 uint32 interval, 211 uint32 interval,
212 NPBool repeat, 212 NPBool repeat,
213 void (*timerFunc)(NPP npp, uint32 timerID)); 213 void (*timerFunc)(NPP npp, uint32 timerID));
214 typedef void (*NPN_UnscheduleTimerPtr)(NPP npp, 214 typedef void (*NPN_UnscheduleTimerPtr)(NPP npp,
215 uint32 timerID); 215 uint32 timerID);
216 typedef NPError (*NPN_PopUpContextMenuPtr)(NPP npp,
217 NPMenu* menu);
218 typedef NPBool (*NPN_ConvertPointPtr)(NPP npp,
219 double sourceX,
220 double sourceY,
221 NPCoordinateSpace sourceSpace,
222 double *destX,
223 double *destY,
224 NPCoordinateSpace destSpace);
216 225
217 // 226 //
218 // NPAPI Function table of NPP functions (functions provided by plugin to host) 227 // NPAPI Function table of NPP functions (functions provided by plugin to host)
219 // 228 //
220 typedef struct _NPPluginFuncs { 229 typedef struct _NPPluginFuncs {
221 unsigned short size; 230 unsigned short size;
222 unsigned short version; 231 unsigned short version;
223 NPP_NewProcPtr newp; 232 NPP_NewProcPtr newp;
224 NPP_DestroyProcPtr destroy; 233 NPP_DestroyProcPtr destroy;
225 NPP_SetWindowProcPtr setwindow; 234 NPP_SetWindowProcPtr setwindow;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 NPN_PushPopupsEnabledStateProcPtr pushpopupsenabledstate; 295 NPN_PushPopupsEnabledStateProcPtr pushpopupsenabledstate;
287 NPN_PopPopupsEnabledStateProcPtr poppopupsenabledstate; 296 NPN_PopPopupsEnabledStateProcPtr poppopupsenabledstate;
288 NPN_EnumerateProcPtr enumerate; 297 NPN_EnumerateProcPtr enumerate;
289 NPN_PluginThreadAsyncCallProcPtr pluginthreadasynccall; 298 NPN_PluginThreadAsyncCallProcPtr pluginthreadasynccall;
290 NPN_ConstructProcPtr construct; 299 NPN_ConstructProcPtr construct;
291 NPN_GetValueForURLPtr getvalueforurl; 300 NPN_GetValueForURLPtr getvalueforurl;
292 NPN_SetValueForURLPtr setvalueforurl; 301 NPN_SetValueForURLPtr setvalueforurl;
293 NPN_GetAuthenticationInfoPtr getauthenticationinfo; 302 NPN_GetAuthenticationInfoPtr getauthenticationinfo;
294 NPN_ScheduleTimerPtr scheduletimer; 303 NPN_ScheduleTimerPtr scheduletimer;
295 NPN_UnscheduleTimerPtr unscheduletimer; 304 NPN_UnscheduleTimerPtr unscheduletimer;
305 NPN_PopUpContextMenuPtr popupcontextmenu;
306 NPN_ConvertPointPtr convertpoint;
296 } NPNetscapeFuncs; 307 } NPNetscapeFuncs;
297 308
298 // 309 //
299 // NPAPI library entry points 310 // NPAPI library entry points
300 // 311 //
301 #if defined(OS_LINUX) || defined(OS_FREEBSD) 312 #if defined(OS_LINUX) || defined(OS_FREEBSD)
302 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pNFuncs, 313 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pNFuncs,
303 NPPluginFuncs* pPFuncs); 314 NPPluginFuncs* pPFuncs);
304 #else 315 #else
305 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pFuncs); 316 typedef NPError (API_CALL * NP_InitializeFunc)(NPNetscapeFuncs* pFuncs);
306 typedef NPError (API_CALL * NP_GetEntryPointsFunc)(NPPluginFuncs* pFuncs); 317 typedef NPError (API_CALL * NP_GetEntryPointsFunc)(NPPluginFuncs* pFuncs);
307 #endif 318 #endif
308 typedef NPError (API_CALL * NP_ShutdownFunc)(void); 319 typedef NPError (API_CALL * NP_ShutdownFunc)(void);
309 320
310 #ifdef __cplusplus 321 #ifdef __cplusplus
311 } // extern "C" 322 } // extern "C"
312 #endif 323 #endif
313 324
314 #endif // WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__ 325 #endif // WEBKIT_GLUE_PLUGIN_NPHOSTAPI_H__
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/plugins/plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698