forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCefDragHandler.java
More file actions
39 lines (35 loc) · 1.53 KB
/
CefDragHandler.java
File metadata and controls
39 lines (35 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.handler;
import org.cef.browser.CefBrowser;
import org.cef.callback.CefDragData;
/**
* Implement this interface to handle events related to dragging. The methods of
* this class will be called on the UI thread.
*/
public interface CefDragHandler {
/**
*
*/
public static final class DragOperationMask {
public static final int DRAG_OPERATION_NONE = 0;
public static final int DRAG_OPERATION_COPY = 1;
public static final int DRAG_OPERATION_LINK = 2;
public static final int DRAG_OPERATION_GENERIC = 4;
public static final int DRAG_OPERATION_PRIVATE = 8;
public static final int DRAG_OPERATION_MOVE = 16;
public static final int DRAG_OPERATION_DELETE = 32;
public static final int DRAG_OPERATION_EVERY = Integer.MAX_VALUE;
}
/**
* Called when an external drag event enters the browser window.
*
* @param browser The browser generating the event.
* @param dragData Contains the drag event data. Instance only valid within the scope
* of this method.
* @param mask Represents the type of drag operation. See DragOperationMask for possible values.
* @return False for default drag handling behavior or true to cancel the drag event.
*/
public boolean onDragEnter(CefBrowser browser, CefDragData dragData, int mask);
}