src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java

Print this page

        

@@ -59,10 +59,12 @@
     private static native void nativeSetNSWindowAlpha(long nsWindowPtr, float alpha);
     private static native void nativeRevalidateNSWindowShadow(long nsWindowPtr);
     private static native void nativeSetNSWindowMinimizedIcon(long nsWindowPtr, long nsImage);
     private static native void nativeSetNSWindowRepresentedFilename(long nsWindowPtr, String representedFilename);
     private static native void nativeSetNSWindowSecurityWarningPositioning(long nsWindowPtr, double x, double y, float biasX, float biasY);
+    private static native void nativeModallyBlocked(long nsWindowPtr);
+    private static native void nativeModallyUnblocked(long nsWindowPtr);
 
     private static native int nativeGetScreenNSWindowIsOn_AppKitThread(long nsWindowPtr);
 
     // Loger to report issues happened during execution but that do not affect functionality
     private static final PlatformLogger logger = PlatformLogger.getLogger("sun.lwawt.macosx.CPlatformWindow");

@@ -793,10 +795,20 @@
 
         // NOTE: the SWP.windowState field gets updated to the newWindowState
         //       value when the native notification comes to us
     }
 
+    @Override
+    public void modallyBlocked() {
+        nativeModallyBlocked(getNSWindowPtr());
+    }
+
+    @Override
+    public void modallyUnblocked() {
+        nativeModallyUnblocked(getNSWindowPtr());
+    }
+
     // ----------------------------------------------------------------------
     //                          UTILITY METHODS
     // ----------------------------------------------------------------------
 
     /*