669 }
670
671 // Call through to native methods
672 public static void doAWTRunLoop(long mediator, boolean awtMode) { doAWTRunLoop(mediator, awtMode, true); }
673 public static void doAWTRunLoop(long mediator) { doAWTRunLoop(mediator, true); }
674
675 private static Boolean sunAwtDisableCALayers = null;
676
677 /**
678 * Returns the value of "sun.awt.disableCALayers" property. Default
679 * value is {@code false}.
680 */
681 public synchronized static boolean getSunAwtDisableCALayers() {
682 if (sunAwtDisableCALayers == null) {
683 sunAwtDisableCALayers =
684 getBooleanSystemProperty("sun.awt.disableCALayers");
685 }
686 return sunAwtDisableCALayers.booleanValue();
687 }
688
689 @Override
690 public native boolean isApplicationActive();
691
692 /************************
693 * Native methods section
694 ************************/
695
696 // These are public because they are accessed from WebKitPluginObject in JavaDeploy
697 // Basic usage:
698 // createAWTRunLoopMediator. Start client code on another thread. doAWTRunLoop. When client code is finished, stopAWTRunLoop.
699 public static native long createAWTRunLoopMediator();
700 public static native void doAWTRunLoop(long mediator, boolean awtMode, boolean detectDeadlocks);
701 public static native void stopAWTRunLoop(long mediator);
702
703 private native boolean nativeSyncQueue(long timeout);
704
705 @Override
706 public Clipboard createPlatformClipboard() {
707 return new CClipboard("System");
708 }
709
|
669 }
670
671 // Call through to native methods
672 public static void doAWTRunLoop(long mediator, boolean awtMode) { doAWTRunLoop(mediator, awtMode, true); }
673 public static void doAWTRunLoop(long mediator) { doAWTRunLoop(mediator, true); }
674
675 private static Boolean sunAwtDisableCALayers = null;
676
677 /**
678 * Returns the value of "sun.awt.disableCALayers" property. Default
679 * value is {@code false}.
680 */
681 public synchronized static boolean getSunAwtDisableCALayers() {
682 if (sunAwtDisableCALayers == null) {
683 sunAwtDisableCALayers =
684 getBooleanSystemProperty("sun.awt.disableCALayers");
685 }
686 return sunAwtDisableCALayers.booleanValue();
687 }
688
689
690 /*
691 * Returns true if the application (one of its windows) owns keyboard focus.
692 */
693 public native boolean isApplicationActive();
694
695 /************************
696 * Native methods section
697 ************************/
698
699 // These are public because they are accessed from WebKitPluginObject in JavaDeploy
700 // Basic usage:
701 // createAWTRunLoopMediator. Start client code on another thread. doAWTRunLoop. When client code is finished, stopAWTRunLoop.
702 public static native long createAWTRunLoopMediator();
703 public static native void doAWTRunLoop(long mediator, boolean awtMode, boolean detectDeadlocks);
704 public static native void stopAWTRunLoop(long mediator);
705
706 private native boolean nativeSyncQueue(long timeout);
707
708 @Override
709 public Clipboard createPlatformClipboard() {
710 return new CClipboard("System");
711 }
712
|