From 5e408a28d81b822e3733c143df5553985f24b080 Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Wed, 23 May 2001 00:36:29 +0000 Subject: [PATCH] Updating OnData API. (fixing build bustage) --- plugin/oji/MRJ/plugin/Source/JSEvaluator.cpp | 2 +- plugin/oji/MRJ/plugin/Source/JSEvaluator.h | 2 +- plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp | 2 +- plugin/oji/MRJ/plugin/Source/MRJPlugin.h | 2 +- plugin/oji/MRJ/plugin/Source/nsLiveConnect.cpp | 2 +- plugin/oji/MRJ/plugin/Source/nsLiveConnect.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/oji/MRJ/plugin/Source/JSEvaluator.cpp b/plugin/oji/MRJ/plugin/Source/JSEvaluator.cpp index c0ff6499e3ec..1137262ccd98 100644 --- a/plugin/oji/MRJ/plugin/Source/JSEvaluator.cpp +++ b/plugin/oji/MRJ/plugin/Source/JSEvaluator.cpp @@ -93,7 +93,7 @@ const char* JSEvaluator::eval(const char* script) return mResult; } -NS_METHOD JSEvaluator::OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 length) +NS_METHOD JSEvaluator::OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 offset, PRUint32 length) { // hopefully all our data is available. mResult = new char[length + 1]; diff --git a/plugin/oji/MRJ/plugin/Source/JSEvaluator.h b/plugin/oji/MRJ/plugin/Source/JSEvaluator.h index cf345a520392..a309ed08ca78 100644 --- a/plugin/oji/MRJ/plugin/Source/JSEvaluator.h +++ b/plugin/oji/MRJ/plugin/Source/JSEvaluator.h @@ -75,7 +75,7 @@ public: * @return The return value is currently ignored. */ NS_IMETHOD - OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 length); + OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 offset, PRUint32 length); NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo* pluginInfo, const char* fileName) diff --git a/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp b/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp index 036de9d59bba..627ca27d0dd2 100644 --- a/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp +++ b/plugin/oji/MRJ/plugin/Source/MRJPlugin.cpp @@ -649,7 +649,7 @@ NS_METHOD MRJPluginInstance::Initialize(nsIPluginInstancePeer* peer) return NS_OK; } -NS_METHOD MRJPluginInstance::OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 length) +NS_METHOD MRJPluginInstance::OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 offset, PRUint32 length) { // hopefully all our data is available. char* documentBase = new char[length + 1]; diff --git a/plugin/oji/MRJ/plugin/Source/MRJPlugin.h b/plugin/oji/MRJ/plugin/Source/MRJPlugin.h index b21d03bb6852..bddb24464328 100644 --- a/plugin/oji/MRJ/plugin/Source/MRJPlugin.h +++ b/plugin/oji/MRJ/plugin/Source/MRJPlugin.h @@ -408,7 +408,7 @@ public: * @return The return value is currently ignored. */ NS_IMETHOD - OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 length); + OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 offset, PRUint32 length); NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo* pluginInfo, const char* fileName) diff --git a/plugin/oji/MRJ/plugin/Source/nsLiveConnect.cpp b/plugin/oji/MRJ/plugin/Source/nsLiveConnect.cpp index db899448355b..77afbe91dea3 100644 --- a/plugin/oji/MRJ/plugin/Source/nsLiveConnect.cpp +++ b/plugin/oji/MRJ/plugin/Source/nsLiveConnect.cpp @@ -113,7 +113,7 @@ nsLiveconnect::Eval(JNIEnv *env, jsobject obj, const jchar *script, jsize length return NS_OK; } -NS_METHOD nsLiveconnect::OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 length) +NS_METHOD nsLiveconnect::OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 offset, PRUint32 length) { // hopefully all our data is available. mResult = new char[length + 1]; diff --git a/plugin/oji/MRJ/plugin/Source/nsLiveConnect.h b/plugin/oji/MRJ/plugin/Source/nsLiveConnect.h index ad4511040abe..41781184d63b 100644 --- a/plugin/oji/MRJ/plugin/Source/nsLiveConnect.h +++ b/plugin/oji/MRJ/plugin/Source/nsLiveConnect.h @@ -212,7 +212,7 @@ public: * @return The return value is currently ignored. */ NS_IMETHOD - OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 length); + OnDataAvailable(nsIPluginStreamInfo* pluginInfo, nsIInputStream* input, PRUint32 offset, PRUint32 length); NS_IMETHOD OnFileAvailable(nsIPluginStreamInfo* pluginInfo, const char* fileName)