jdk/src/solaris/native/sun/awt/awt_xembed.h
changeset 11303 5f48992867e6
parent 11302 a6305295d4d9
parent 11239 885050364691
child 11304 5d3d2bd1dfd1
equal deleted inserted replaced
11302:a6305295d4d9 11303:5f48992867e6
     1 /*
       
     2  * Copyright (c) 2003, 2004, 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
       
    23  * questions.
       
    24  */
       
    25 
       
    26 #ifndef _AWT_XEMBED_H_
       
    27 #define _AWT_XEMBED_H_
       
    28 
       
    29 #ifndef HEADLESS
       
    30 
       
    31 #include "awt_p.h"
       
    32 
       
    33 #define XEMBED_VERSION  0
       
    34 #define XEMBED_MAPPED  (1 << 0)
       
    35 /* XEMBED messages */
       
    36 #define XEMBED_EMBEDDED_NOTIFY              0
       
    37 #define XEMBED_WINDOW_ACTIVATE      1
       
    38 #define XEMBED_WINDOW_DEACTIVATE    2
       
    39 #define XEMBED_REQUEST_FOCUS         3
       
    40 #define XEMBED_FOCUS_IN             4
       
    41 #define XEMBED_FOCUS_OUT            5
       
    42 #define XEMBED_FOCUS_NEXT           6
       
    43 #define XEMBED_FOCUS_PREV           7
       
    44 /* 8-9 were used for XEMBED_GRAB_KEY/XEMBED_UNGRAB_KEY */
       
    45 #define XEMBED_MODALITY_ON          10
       
    46 #define XEMBED_MODALITY_OFF         11
       
    47 #define XEMBED_REGISTER_ACCELERATOR     12
       
    48 #define XEMBED_UNREGISTER_ACCELERATOR   13
       
    49 #define XEMBED_ACTIVATE_ACCELERATOR     14
       
    50 
       
    51 #define XEMBED_LAST_MSG XEMBED_ACTIVATE_ACCELERATOR
       
    52 
       
    53 #define  NON_STANDARD_XEMBED_GTK_GRAB_KEY  108
       
    54 #define NON_STANDARD_XEMBED_GTK_UNGRAB_KEY  109
       
    55 
       
    56 // Sun internal special message, to resolve start race condition
       
    57 #define _SUN_XEMBED_START  1119
       
    58 
       
    59 
       
    60 //     A detail code is required for XEMBED_FOCUS_IN. The following values are valid:
       
    61 /* Details for  XEMBED_FOCUS_IN: */
       
    62 #define XEMBED_FOCUS_CURRENT        0
       
    63 #define XEMBED_FOCUS_FIRST          1
       
    64 #define XEMBED_FOCUS_LAST           2
       
    65 
       
    66 
       
    67 extern void init_xembed();
       
    68 extern void xembed_eventHandler(XEvent *event);
       
    69 extern void requestXEmbedFocus(struct FrameData * wdata);
       
    70 extern void install_xembed(Widget client, struct FrameData* wdata);
       
    71 extern void deinstall_xembed(struct FrameData* wdata);
       
    72 extern Boolean isXEmbedActive(struct FrameData * wdata);
       
    73 extern Boolean isXEmbedActiveByWindow(Window client);
       
    74 extern Boolean isXEmbedApplicationActive(struct FrameData * wdata);
       
    75 extern void sendMessageHelper(Window window, int message, long detail,
       
    76                               long data1, long data2);
       
    77 extern void sendMessage(Window window, int message);
       
    78 extern void xembed_traverse_out(struct FrameData * wdata, jboolean);
       
    79 #endif
       
    80 #endif