1331 } |
1331 } |
1332 |
1332 |
1333 /* |
1333 /* |
1334 * Class: sun_lwawt_macosx_CPlatformWindow |
1334 * Class: sun_lwawt_macosx_CPlatformWindow |
1335 * Method: nativeSynthesizeMouseEnteredExitedEvents |
1335 * Method: nativeSynthesizeMouseEnteredExitedEvents |
1336 * Signature: (J)V |
1336 * Signature: ()V |
1337 */ |
1337 */ |
1338 JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeSynthesizeMouseEnteredExitedEvents |
1338 JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeSynthesizeMouseEnteredExitedEvents__ |
1339 (JNIEnv *env, jclass clazz) |
1339 (JNIEnv *env, jclass clazz) |
1340 { |
1340 { |
1341 JNF_COCOA_ENTER(env); |
1341 JNF_COCOA_ENTER(env); |
1342 |
1342 |
1343 [ThreadUtilities performOnMainThreadWaiting:NO block:^(){ |
1343 [ThreadUtilities performOnMainThreadWaiting:NO block:^(){ |
1344 [AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows]; |
1344 [AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows]; |
1345 }]; |
1345 }]; |
1346 |
1346 |
1347 JNF_COCOA_EXIT(env); |
1347 JNF_COCOA_EXIT(env); |
|
1348 } |
|
1349 |
|
1350 /* |
|
1351 * Class: sun_lwawt_macosx_CPlatformWindow |
|
1352 * Method: nativeSynthesizeMouseEnteredExitedEvents |
|
1353 * Signature: (JI)V |
|
1354 */ |
|
1355 JNIEXPORT void JNICALL Java_sun_lwawt_macosx_CPlatformWindow_nativeSynthesizeMouseEnteredExitedEvents__JI |
|
1356 (JNIEnv *env, jclass clazz, jlong windowPtr, jint eventType) |
|
1357 { |
|
1358 JNF_COCOA_ENTER(env); |
|
1359 |
|
1360 if (eventType == NSMouseEntered || eventType == NSMouseExited) { |
|
1361 NSWindow *nsWindow = OBJC(windowPtr); |
|
1362 |
|
1363 [ThreadUtilities performOnMainThreadWaiting:NO block:^(){ |
|
1364 [AWTWindow synthesizeMouseEnteredExitedEvents:nsWindow withType:eventType]; |
|
1365 }]; |
|
1366 } else { |
|
1367 [JNFException raise:env as:kIllegalArgumentException reason:"unknown event type"]; |
|
1368 } |
|
1369 |
|
1370 JNF_COCOA_EXIT(env); |
1348 } |
1371 } |
1349 |
1372 |
1350 /* |
1373 /* |
1351 * Class: sun_lwawt_macosx_CPlatformWindow |
1374 * Class: sun_lwawt_macosx_CPlatformWindow |
1352 * Method: _toggleFullScreenMode |
1375 * Method: _toggleFullScreenMode |