/[gcjwebplugin]/gcjwebplugin/src/gcjwebplugin.cc
ViewVC logotype

Diff of /gcjwebplugin/src/gcjwebplugin.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mkoch, Tue Jul 29 04:11:59 2003 UTC revision 1.2 by mkoch, Wed Jul 30 05:40:36 2003 UTC
# Line 126  NPP_New (NPMIMEType pluginType, NPP inst Line 126  NPP_New (NPMIMEType pluginType, NPP inst
126    JNI_FindClass (data->jniEnv, "gnu/java/awt/EmbeddedWindow",    JNI_FindClass (data->jniEnv, "gnu/java/awt/EmbeddedWindow",
127                   data->embeddedWindow_class);                   data->embeddedWindow_class);
128    
129      jmethodID embeddedWindow_init;
130      JNI_GetMethodID (data->jniEnv, data->embeddedWindow_class, "<init>", "(I)V", embeddedWindow_init);
131    
132      int window_id = 0;
133      JNI_NewObject1 (data->jniEnv, data->embeddedWindow_class, embeddedWindow_init, window_id, data->embeddedWindow);
134      
135    instance->pdata = data;    instance->pdata = data;
136        
137    return NPERR_GENERIC_ERROR;    return NPERR_GENERIC_ERROR;
# Line 138  NPP_Destroy (NPP instance, NPSavedData** Line 144  NPP_Destroy (NPP instance, NPSavedData**
144    
145    // FIXME: Do we need to free the memory for NPP->pdata here ?    // FIXME: Do we need to free the memory for NPP->pdata here ?
146    
147    return NPERR_GENERIC_ERROR;    return NPERR_NO_ERROR;
148  }  }
149    
150  NPError  NPError
# Line 162  NPP_NewStream (NPP instance, NPMIMEType Line 168  NPP_NewStream (NPP instance, NPMIMEType
168  {  {
169    PLUGIN_DEBUG ("NPP_NewStream\n");    PLUGIN_DEBUG ("NPP_NewStream\n");
170    
171    return NPERR_GENERIC_ERROR;    // Tell the web browser to download the file and notify the plugin when ready.
172      *stype = NP_ASFILEONLY;
173      
174      return NPERR_NO_ERROR;
175    }
176    
177    void
178    NPP_StreamAsFile (NPP instance, NPStream* stream, const char* filename)
179    {
180      PLUGIN_DEBUG ("NPP_StreamAsFile\n");
181    
182      if (filename != NULL)
183        {
184          // FIXME: load Applet from filename
185        }
186  }  }
187    
188  NPError  NPError
# Line 170  NPP_DestroyStream (NPP instance, NPStrea Line 190  NPP_DestroyStream (NPP instance, NPStrea
190  {  {
191    PLUGIN_DEBUG ("NPP_DestroyStream\n");    PLUGIN_DEBUG ("NPP_DestroyStream\n");
192    
193    return NPERR_GENERIC_ERROR;    return NPERR_NO_ERROR;
194  }  }
195    
196  int32  int32
# Line 190  NPP_Write (NPP instance, NPStream* strea Line 210  NPP_Write (NPP instance, NPStream* strea
210  }  }
211    
212  void  void
 NPP_StreamAsFile (NPP instance, NPStream* stream, const char* filename)  
 {  
   PLUGIN_DEBUG ("NPP_StreamAsFile\n");  
 }  
   
 void  
213  NPP_Print (NPP instance, NPPrint* platformPrint)  NPP_Print (NPP instance, NPPrint* platformPrint)
214  {  {
215    PLUGIN_DEBUG ("NPP_Print\n");    PLUGIN_DEBUG ("NPP_Print\n");

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26