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

Unified Diff: webkit/glue/plugins/plugin_host.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/nphostapi.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_host.cc
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc
index 8cc094f142e4c0cf349b2a24239460c5e0c23cb4..21240c139fcbb56591b2449f5e0ea273c529cde4 100644
--- a/webkit/glue/plugins/plugin_host.cc
+++ b/webkit/glue/plugins/plugin_host.cc
@@ -111,6 +111,8 @@ void PluginHost::InitializeHostFuncs() {
host_funcs_.getauthenticationinfo = NPN_GetAuthenticationInfo;
host_funcs_.scheduletimer = NPN_ScheduleTimer;
host_funcs_.unscheduletimer = NPN_UnscheduleTimer;
+ host_funcs_.popupcontextmenu = NPN_PopUpContextMenu;
+ host_funcs_.convertpoint = NPN_ConvertPoint;
}
void PluginHost::PatchNPNetscapeFuncs(NPNetscapeFuncs* overrides) {
@@ -1189,4 +1191,21 @@ void NPN_UnscheduleTimer(NPP id, uint32 timer_id) {
if (plugin)
plugin->UnscheduleTimer(timer_id);
}
+
+NPError NPN_PopUpContextMenu(NPP instance, NPMenu* menu) {
+ NOTIMPLEMENTED();
+ return NPERR_GENERIC_ERROR;
+}
+
+NPBool NPN_ConvertPoint(NPP instance, double sourceX, double sourceY,
+ NPCoordinateSpace sourceSpace,
+ double *destX, double *destY,
+ NPCoordinateSpace destSpace) {
+ NOTIMPLEMENTED();
+ if (destX)
+ *destX = sourceX;
+ if (destY)
+ *destY = sourceY;
+ return FALSE;
+}
} // extern "C"
« no previous file with comments | « webkit/glue/plugins/nphostapi.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698