Bug 487126: fix OS/2 and Qt test plugins build break, r=joshmoz
authorWalter Meinl <wuno@lsvw.de>
Tue, 07 Apr 2009 23:41:49 +0300
changeset 27049 9d83ce1fb4b3d06bd10afef5125e8c098d84ab1d
parent 27048 10bf357feece19de25b861383c2a99a798bbcf71
child 27050 64fda97c4965ecda6248d2141b755a98612c4c1c
push idunknown
push userunknown
push dateunknown
reviewersjoshmoz
bugs487126
milestone1.9.2a1pre
Bug 487126: fix OS/2 and Qt test plugins build break, r=joshmoz
modules/plugin/test/testplugin/nptest_os2.cpp
modules/plugin/test/testplugin/nptest_qt.cpp
--- a/modules/plugin/test/testplugin/nptest_os2.cpp
+++ b/modules/plugin/test/testplugin/nptest_os2.cpp
@@ -52,17 +52,42 @@ pluginInstanceInit(InstanceData* instanc
 }
 
 void
 pluginInstanceShutdown(InstanceData* instanceData)
 {
 }
 
 void
+pluginDoSetWindow(InstanceData* instanceData, NPWindow* newWindow)
+{
+  instanceData->window = *newWindow;
+}
+
+void
 pluginWidgetInit(InstanceData* instanceData, void* oldWindow)
 {
 }
 
 int16_t
 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;
+}
--- a/modules/plugin/test/testplugin/nptest_qt.cpp
+++ b/modules/plugin/test/testplugin/nptest_qt.cpp
@@ -52,17 +52,42 @@ pluginInstanceInit(InstanceData* instanc
 }
 
 void
 pluginInstanceShutdown(InstanceData* instanceData)
 {
 }
 
 void
+pluginDoSetWindow(InstanceData* instanceData, NPWindow* newWindow)
+{
+  instanceData->window = *newWindow;
+}
+
+void
 pluginWidgetInit(InstanceData* instanceData, void* oldWindow)
 {
 }
 
 int16_t
 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;
+}