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

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


  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.util.logging.PlatformLogger;
  37 
  38 import sun.misc.Unsafe;
  39 
  40 /**
  41  * XDropTargetProtocol implementation for XDnD protocol.
  42  *
  43  * @since 1.5
  44  */
  45 class XDnDDropTargetProtocol extends XDropTargetProtocol {
  46     private static final PlatformLogger logger =
  47         PlatformLogger.getLogger("sun.awt.X11.xembed.xdnd.XDnDDropTargetProtocol");
  48 
  49     private static final Unsafe unsafe = XlibWrapper.unsafe;
  50 
  51     private long sourceWindow = 0;
  52     private long sourceWindowMask = 0;
  53     private int sourceProtocolVersion = 0;
  54     private int sourceActions = DnDConstants.ACTION_NONE;
  55     private long[] sourceFormats = null;
  56     private boolean trackSourceActions = false;
  57     private int userAction = DnDConstants.ACTION_NONE;
  58     private int sourceX = 0;




  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.util.logging.PlatformLogger;
  37 
  38 import jdk.internal.misc.Unsafe;
  39 
  40 /**
  41  * XDropTargetProtocol implementation for XDnD protocol.
  42  *
  43  * @since 1.5
  44  */
  45 class XDnDDropTargetProtocol extends XDropTargetProtocol {
  46     private static final PlatformLogger logger =
  47         PlatformLogger.getLogger("sun.awt.X11.xembed.xdnd.XDnDDropTargetProtocol");
  48 
  49     private static final Unsafe unsafe = XlibWrapper.unsafe;
  50 
  51     private long sourceWindow = 0;
  52     private long sourceWindowMask = 0;
  53     private int sourceProtocolVersion = 0;
  54     private int sourceActions = DnDConstants.ACTION_NONE;
  55     private long[] sourceFormats = null;
  56     private boolean trackSourceActions = false;
  57     private int userAction = DnDConstants.ACTION_NONE;
  58     private int sourceX = 0;