1 /*
2 * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
29
30 #ifdef HEADLESS
31 #error This file should not be included in headless library
32 #endif
33
34 #include <X11/Xlib.h>
35 #include <X11/Xutil.h>
36 #include <X11/Xos.h>
37 #include <X11/Xatom.h>
38 #include <ctype.h>
39
40 #include <jvm.h>
41 #include <jni.h>
42 #include <jlong.h>
43 #include <jni_util.h>
44
45 #include "sun_awt_X11_XWindow.h"
46
47 #include "awt_p.h"
48 #include "awt_GraphicsEnv.h"
49 #include "awt_AWTEvent.h"
50
51 #define XK_KATAKANA
52 #include <X11/keysym.h> /* standard X keysyms */
53 #include <X11/DECkeysym.h> /* DEC vendor-specific */
54 #include <X11/Sunkeysym.h> /* Sun vendor-specific */
55 #include <X11/ap_keysym.h> /* Apollo (HP) vendor-specific */
56 /*
57 * HPKeysym.h is used not only for the hp keysyms, but also to
58 * give us the osf keysyms that are also defined in HPkeysym.h.
59 * However, HPkeysym.h is missing a couple of osf keysyms,
60 * so I have #defined them below.
61 */
62 #include <X11/HPkeysym.h> /* HP vendor-specific */
63
64 #include "java_awt_event_KeyEvent.h"
65 #include "java_awt_event_InputEvent.h"
66 #include "java_awt_event_MouseEvent.h"
67 #include "java_awt_event_MouseWheelEvent.h"
68 #include "java_awt_AWTEvent.h"
69
|
1 /*
2 * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
29
30 #ifdef HEADLESS
31 #error This file should not be included in headless library
32 #endif
33
34 #include <X11/Xlib.h>
35 #include <X11/Xutil.h>
36 #include <X11/Xos.h>
37 #include <X11/Xatom.h>
38 #include <ctype.h>
39
40 #include <jvm.h>
41 #include <jni.h>
42 #include <jlong.h>
43 #include <jni_util.h>
44
45 #include "sun_awt_X11_XWindow.h"
46
47 #include "awt_p.h"
48 #include "awt_GraphicsEnv.h"
49
50 #define XK_KATAKANA
51 #include <X11/keysym.h> /* standard X keysyms */
52 #include <X11/DECkeysym.h> /* DEC vendor-specific */
53 #include <X11/Sunkeysym.h> /* Sun vendor-specific */
54 #include <X11/ap_keysym.h> /* Apollo (HP) vendor-specific */
55 /*
56 * HPKeysym.h is used not only for the hp keysyms, but also to
57 * give us the osf keysyms that are also defined in HPkeysym.h.
58 * However, HPkeysym.h is missing a couple of osf keysyms,
59 * so I have #defined them below.
60 */
61 #include <X11/HPkeysym.h> /* HP vendor-specific */
62
63 #include "java_awt_event_KeyEvent.h"
64 #include "java_awt_event_InputEvent.h"
65 #include "java_awt_event_MouseEvent.h"
66 #include "java_awt_event_MouseWheelEvent.h"
67 #include "java_awt_AWTEvent.h"
68
|