Currently, all the native clients such as ChromeClientJava, ContextMenuClientJava, EditorClientJava, DragClientJava, and FrameLoaderClientJava have a JNI reference to their com.sun.webpane.platform.WebPage "parent". This spreads JNI references across the entire code base. Instead, the clients could be modified to refer to the native WebPage, which would have a single JNI reference to com.sun.webpane.platform.WebPage.
This scheme could be further improved by implementing all JNI method calls to com.sun.webpane.platform.WebPage as methods on the native WebPage object. That would hide all JNI stuff behind the native WebPage interface and free the clients from having to deal with JNI.
This scheme could be further improved by implementing all JNI method calls to com.sun.webpane.platform.WebPage as methods on the native WebPage object. That would hide all JNI stuff behind the native WebPage interface and free the clients from having to deal with JNI.
- blocks
-
JDK-8092368 Move preferences from Settings.h to WebPage.h
-
- Open
-