< prev index next >
src/java.desktop/macosx/native/libosxui/AquaNativeResources.m
Print this page
rev 54096 : 8259651: [macOS] Replace JNF_COCOA_ENTER/EXIT macros
rev 54098 : 8260616: Removing remaining JNF dependencies in the java.desktop module
8259729: Missed JNFInstanceOf -> IsInstanceOf conversion
*** 24,34 ****
*/
#import "com_apple_laf_AquaNativeResources.h"
#import <Cocoa/Cocoa.h>
- #import <JavaNativeFoundation/JavaNativeFoundation.h>
/*
* Class: com_apple_laf_AquaNativeResources
* Method: getWindowBackgroundColor
* Signature: ()J
--- 24,33 ----
*** 37,50 ****
(JNIEnv *env, jclass clz)
{
// TODO(cpc): this code is currently disabled at the Java level
#if 0
NSColor* color = nil;
! JNF_COCOA_ENTER(env);
color = [NSColor lightGrayColor];//[AWTColor getMagicBackgroundColor];
if (color) CFRetain(color); // GC
! JNF_COCOA_EXIT(env);
return ptr_to_jlong(color);
#else
return 0L;
#endif
}
--- 36,49 ----
(JNIEnv *env, jclass clz)
{
// TODO(cpc): this code is currently disabled at the Java level
#if 0
NSColor* color = nil;
! JNI_COCOA_ENTER(env);
color = [NSColor lightGrayColor];//[AWTColor getMagicBackgroundColor];
if (color) CFRetain(color); // GC
! JNI_COCOA_EXIT(env);
return ptr_to_jlong(color);
#else
return 0L;
#endif
}
< prev index next >