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

Diff of /gcjwebplugin/src/GCJPluginInstance.cc

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

revision 1.6 by mkoch, Sun Jul 13 13:01:33 2003 UTC revision 1.7 by mkoch, Sun Jul 13 14:10:56 2003 UTC
# Line 281  GCJPluginInstance::Destroy () Line 281  GCJPluginInstance::Destroy ()
281        jclass applet_cl = m_jniEnv->GetObjectClass (m_applet);        jclass applet_cl = m_jniEnv->GetObjectClass (m_applet);
282        assert (applet_cl != NULL);        assert (applet_cl != NULL);
283    
284        jmethodID applet_destroy = m_jniEnv->GetMethodID (applet_cl, "destroy", "()V");        jmethodID applet_destroy = m_jniEnv->GetMethodID (applet_cl,
285                                                            "destroy", "()V");
286        assert (applet_destroy);        assert (applet_destroy);
287    
288        m_jniEnv->CallVoidMethod (m_applet, applet_destroy);        m_jniEnv->CallVoidMethod (m_applet, applet_destroy);
# Line 296  GCJPluginInstance::SetWindow (nsPluginWi Line 297  GCJPluginInstance::SetWindow (nsPluginWi
297  {  {
298    DEBUG ("GCJPluginInstance::SetWindow\n");    DEBUG ("GCJPluginInstance::SetWindow\n");
299    
300    const char* ldpath = getenv ("LD_LIBRARY_PATH");    if (m_applet != NULL)
301    DEBUG (ldpath);      {
302    DEBUG ("\n");        jclass embeddedWindow_cl = m_jniEnv->FindClass (
303                                       "gnu/java/awt/EmbeddedWindow");
304    jclass class_EmbeddedWindow = m_jniEnv->FindClass ("gnu/java/awt/EmbeddedWindow");        assert (embeddedWindow_cl);
305    assert (class_EmbeddedWindow);  
306          jmethodID embeddedWindow_create = m_jniEnv->GetMethodID (
307    jmethodID method_class_EmbeddedWindow_init = m_jniEnv->GetMethodID (class_EmbeddedWindow, "<init>", "(III)V");                                            embeddedWindow_cl, "create", "(III)V");
308    assert (method_class_EmbeddedWindow_init);        assert (embeddedWindow_create);
309    
310    m_embeddedWindow = m_jniEnv->NewObject (class_EmbeddedWindow, method_class_EmbeddedWindow_init,        m_embeddedWindow = m_jniEnv->CallStaticObjectMethod (
311                                            (jint) window->window, (jint) window->width, (jint) window->height);                             embeddedWindow_cl, embeddedWindow_create,
312    assert (m_embeddedWindow != NULL);                             (jint) window->window, (jint) window->width,
313    CHECK_EXCEPTIONS;                             (jint) window->height);
314          assert (m_embeddedWindow != NULL);
315          CHECK_EXCEPTIONS;
316        }
317    
318    return NS_OK;    return NS_OK;
319  }  }
# Line 319  GCJPluginInstance::NewStream (nsIPluginS Line 323  GCJPluginInstance::NewStream (nsIPluginS
323  {  {
324    DEBUG ("GCJPluginInstance::NewStream\n");    DEBUG ("GCJPluginInstance::NewStream\n");
325        
326    return NS_OK;    return NS_ERROR_NOT_IMPLEMENTED;
327  }  }
328    
329  NS_IMETHODIMP  NS_IMETHODIMP
# Line 327  GCJPluginInstance::Print (nsPluginPrint* Line 331  GCJPluginInstance::Print (nsPluginPrint*
331  {  {
332    DEBUG ("GCJPluginInstance::Print\n");    DEBUG ("GCJPluginInstance::Print\n");
333        
334    return NS_OK;    return NS_ERROR_NOT_IMPLEMENTED;
335  }  }
336    
337  NS_IMETHODIMP  NS_IMETHODIMP

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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