diff --git a/modules/plugin/test/testplugin/nptest_os2.cpp b/modules/plugin/test/testplugin/nptest_os2.cpp index b8280d9a06e9..83333b124958 100644 --- a/modules/plugin/test/testplugin/nptest_os2.cpp +++ b/modules/plugin/test/testplugin/nptest_os2.cpp @@ -56,6 +56,12 @@ pluginInstanceShutdown(InstanceData* instanceData) { } +void +pluginDoSetWindow(InstanceData* instanceData, NPWindow* newWindow) +{ + instanceData->window = *newWindow; +} + void pluginWidgetInit(InstanceData* instanceData, void* oldWindow) { @@ -66,3 +72,22 @@ pluginHandleEvent(InstanceData* instanceData, void* event) { return 0; } + +int32_t pluginGetEdge(InstanceData* instanceData, RectEdge edge) +{ + // XXX nothing here yet since we don't support windowed plugins + return NPTEST_INT32_ERROR; +} + +int32_t pluginGetClipRegionRectCount(InstanceData* instanceData) +{ + // XXX nothing here yet since we don't support windowed plugins + return NPTEST_INT32_ERROR; +} + +int32_t pluginGetClipRegionRectEdge(InstanceData* instanceData, + int32_t rectIndex, RectEdge edge) +{ + // XXX nothing here yet since we don't support windowed plugins + return NPTEST_INT32_ERROR; +} diff --git a/modules/plugin/test/testplugin/nptest_qt.cpp b/modules/plugin/test/testplugin/nptest_qt.cpp index b8280d9a06e9..83333b124958 100644 --- a/modules/plugin/test/testplugin/nptest_qt.cpp +++ b/modules/plugin/test/testplugin/nptest_qt.cpp @@ -56,6 +56,12 @@ pluginInstanceShutdown(InstanceData* instanceData) { } +void +pluginDoSetWindow(InstanceData* instanceData, NPWindow* newWindow) +{ + instanceData->window = *newWindow; +} + void pluginWidgetInit(InstanceData* instanceData, void* oldWindow) { @@ -66,3 +72,22 @@ pluginHandleEvent(InstanceData* instanceData, void* event) { return 0; } + +int32_t pluginGetEdge(InstanceData* instanceData, RectEdge edge) +{ + // XXX nothing here yet since we don't support windowed plugins + return NPTEST_INT32_ERROR; +} + +int32_t pluginGetClipRegionRectCount(InstanceData* instanceData) +{ + // XXX nothing here yet since we don't support windowed plugins + return NPTEST_INT32_ERROR; +} + +int32_t pluginGetClipRegionRectEdge(InstanceData* instanceData, + int32_t rectIndex, RectEdge edge) +{ + // XXX nothing here yet since we don't support windowed plugins + return NPTEST_INT32_ERROR; +}