src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke


  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 package sun.awt.X11;
  27 
  28 import java.awt.Point;
  29 
  30 import java.awt.dnd.DnDConstants;
  31 
  32 import java.awt.event.MouseEvent;
  33 
  34 import java.io.IOException;
  35 
  36 import sun.misc.Unsafe;
  37 
  38 /**
  39  * XDropTargetProtocol implementation for Motif DnD protocol.
  40  *
  41  * @since 1.5
  42  */
  43 class MotifDnDDropTargetProtocol extends XDropTargetProtocol {
  44     private static final Unsafe unsafe = XlibWrapper.unsafe;
  45 
  46     private long sourceWindow = 0;
  47     private long sourceWindowMask = 0;
  48     private int sourceProtocolVersion = 0;
  49     private int sourceActions = DnDConstants.ACTION_NONE;
  50     private long[] sourceFormats = null;
  51     private long sourceAtom = 0;
  52     private int userAction = DnDConstants.ACTION_NONE;
  53     private int sourceX = 0;
  54     private int sourceY = 0;
  55     private XWindow targetXWindow = null;
  56     private boolean topLevelLeavePostponed = false;




  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 package sun.awt.X11;
  27 
  28 import java.awt.Point;
  29 
  30 import java.awt.dnd.DnDConstants;
  31 
  32 import java.awt.event.MouseEvent;
  33 
  34 import java.io.IOException;
  35 
  36 import jdk.internal.misc.Unsafe;
  37 
  38 /**
  39  * XDropTargetProtocol implementation for Motif DnD protocol.
  40  *
  41  * @since 1.5
  42  */
  43 class MotifDnDDropTargetProtocol extends XDropTargetProtocol {
  44     private static final Unsafe unsafe = XlibWrapper.unsafe;
  45 
  46     private long sourceWindow = 0;
  47     private long sourceWindowMask = 0;
  48     private int sourceProtocolVersion = 0;
  49     private int sourceActions = DnDConstants.ACTION_NONE;
  50     private long[] sourceFormats = null;
  51     private long sourceAtom = 0;
  52     private int userAction = DnDConstants.ACTION_NONE;
  53     private int sourceX = 0;
  54     private int sourceY = 0;
  55     private XWindow targetXWindow = null;
  56     private boolean topLevelLeavePostponed = false;