/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sun.glass.ui.gtk;

import com.sun.glass.ui.Clipboard;
import com.sun.glass.ui.SystemClipboard;
import java.util.HashMap;

/**
 *
 * @author martin
 */
public class GtkDnDClipboard extends SystemClipboard{


    public GtkDnDClipboard() {
        super(Clipboard.DND);
    }
    
    protected void pushToSystem(HashMap<String, Object> cacheData,
                                int supportedActions) {
        final int performedAction = pushToSystemImpl(cacheData,
                                                     supportedActions);
        actionPerformed(performedAction);
    }

    @Override
    protected native boolean isOwner();

    protected native int pushToSystemImpl(HashMap<String, Object> cacheData, int supportedActions);

    @Override
    protected native void pushTargetActionToSystem(int actionDone);

    @Override
    protected native Object popFromSystem(String mimeType);

    @Override
    protected native int supportedSourceActionsFromSystem();

    @Override
    protected native String[] mimesFromSystem();
    
}
