< prev index next >
src/java.desktop/unix/native/libjawt/jawt.c
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -47,20 +47,26 @@
return JNI_FALSE;
}
if (awt->version != JAWT_VERSION_1_3
&& awt->version != JAWT_VERSION_1_4
- && awt->version != JAWT_VERSION_1_7) {
+ && awt->version != JAWT_VERSION_1_7
+ && awt->version != JAWT_VERSION_9) {
return JNI_FALSE;
}
awt->GetDrawingSurface = awt_GetDrawingSurface;
awt->FreeDrawingSurface = awt_FreeDrawingSurface;
if (awt->version >= JAWT_VERSION_1_4) {
awt->Lock = awt_Lock;
awt->Unlock = awt_Unlock;
awt->GetComponent = awt_GetComponent;
+ if (awt->version >= JAWT_VERSION_9) {
+ awt->CreateEmbeddedFrame = awt_CreateEmbeddedFrame;
+ awt->SetBounds = awt_SetBounds;
+ awt->SynthesizeWindowActivation = awt_SynthesizeWindowActivation;
+ }
}
return JNI_TRUE;
#endif
}
< prev index next >