Kaydet (Commit) 04934f11 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS macosxquicktime01 (1.29.8); FILE MERGED

2007/10/26 09:16:56 pl 1.29.8.1: #i82621# changed SystemEnvData and SystemParentData for QUARTZ
üst c1034f87
......@@ -4,9 +4,9 @@
*
* $RCSfile: sjapplet_impl.cxx,v $
*
* $Revision: 1.30 $
* $Revision: 1.31 $
*
* last change: $Author: hr $ $Date: 2007-11-02 12:21:02 $
* last change: $Author: vg $ $Date: 2007-12-07 11:46:48 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -48,6 +48,12 @@
#include <svtools/ownlist.hxx>
#ifdef QUARTZ
#include "premac.h"
#include <Cocoa/Cocoa.h>
#include "postmac.h"
#endif
#include <vcl/svapp.hxx>
#include <vcl/window.hxx>
#include <vcl/wrkwin.hxx>
......@@ -217,14 +223,16 @@ EmbeddedWindow::EmbeddedWindow(JNIEnv * pEnv, SystemEnvData const * pEnvData) th
/* The WNT code (above) that this code derives from, may be using quite old
ways of interacting with native windows. More modern approaches seems to
point towards JAWT_* and com.apple.eawt */
#if 0
// FIXME: this is not going to work on cocoa
jclass jcFrame = pEnv->FindClass("apple/awt/CEmbeddedFrame"); testJavaException(pEnv);
jmethodID jmFrame_rinit = pEnv->GetMethodID(jcFrame, "<init>", "(I)V"); testJavaException(pEnv);
jobject joFrame = pEnv->AllocObject(jcFrame); testJavaException(pEnv);
pEnv->CallVoidMethod(joFrame, jmFrame_rinit, (jint)pEnvData->rWindow); testJavaException(pEnv);
pEnv->CallVoidMethod(joFrame, jmFrame_rinit, (jint)pEnvData->pView); testJavaException(pEnv);
_joWindow = pEnv->NewGlobalRef(joFrame);
#endif
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment