On Mon, 25 Apr 2022 17:20:39 GMT, Alisen Chung <ach...@openjdk.org> wrote:
>> Are you sure that CEmbeddedFrame is used in the embedding functionality? We >> have another one on macOS CViewEmbeddedFrame. One of them was used for >> applets another one was used by the JAWT and SWT. Please double-check that >> the correct one is used for this test, and another one probably can be >> removed. > > I see that windows and linux have a long value that identifies the window > that gets pass into the constructor of the EmbeddedFrame class object. Is > there an equivalent in macOS? I see that CViewEmbeddedFrame has the nsViewPtr > that is equivalent, but I don't see any way to find that value from > LWComponentPeer. It seems LWCToolkit creates a CViewPlatformEmbeddedFrame for VIEW_EMBEDDED_FRAME type so probably you can call CViewPlatformEmbeddedFrame.getNSViewPtr to get the long value and then call CViewEmbeddedFrame with the nsviewPtr value ------------- PR: https://git.openjdk.java.net/jdk/pull/8348