8274381: missing CAccessibility definitions in JNI code

Reviewed-by: pbansal, ant, kizune
This commit is contained in:
Artem Semenov 2021-09-28 16:08:30 +00:00 committed by Anton Tarasov
parent 79865cd797
commit be40373745
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ static jclass sjc_CAccessibility = NULL;
NSSize getAxComponentSize(JNIEnv *env, jobject axComponent, jobject component)
{
GET_CACCESSIBILITY_CLASS_RETURN(NSZeroSize);
DECLARE_CLASS_RETURN(jc_Dimension, "java/awt/Dimension", NSZeroSize);
DECLARE_FIELD_RETURN(jf_width, jc_Dimension, "width", "I", NSZeroSize);
DECLARE_FIELD_RETURN(jf_height, jc_Dimension, "height", "I", NSZeroSize);

View File

@ -1081,6 +1081,7 @@ static jobject sAccessibilityClass = NULL;
{
JNIEnv* env = [ThreadUtilities getJNIEnv];
GET_CACCESSIBILITY_CLASS_RETURN(nil);
DECLARE_CLASS_RETURN(jc_Container, "java/awt/Container", nil);
DECLARE_STATIC_METHOD_RETURN(jm_accessibilityHitTest, sjc_CAccessibility, "accessibilityHitTest",
"(Ljava/awt/Container;FF)Ljavax/accessibility/Accessible;", nil);