RFR: 7080150: [TEST_BUG][macosx] No mac os x EmbeddedFrame support in regression regtesthelpers [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Apr 26 05:34:50 UTC 2022


On Mon, 25 Apr 2022 17:20:39 GMT, Alisen Chung <achung at 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



More information about the client-libs-dev mailing list