summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DragSource.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2013-11-25 17:01:34 +0000
committerMathew Inwood <mathewi@google.com>2013-11-28 10:17:07 +0000
commit1eeb3fc9d874d98dfb43883d17efb4202d83d88a (patch)
tree86e1bc78a3fb98957bc3a3a61b4b60f2b020cf99 /src/com/android/launcher3/DragSource.java
parent0a23daaca14ab7fd107ee3e4043b5793760e02c1 (diff)
downloadandroid_packages_apps_Trebuchet-1eeb3fc9d874d98dfb43883d17efb4202d83d88a.tar.gz
android_packages_apps_Trebuchet-1eeb3fc9d874d98dfb43883d17efb4202d83d88a.tar.bz2
android_packages_apps_Trebuchet-1eeb3fc9d874d98dfb43883d17efb4202d83d88a.zip
Generalize support for 'App Info', 'Uninstall' and 'Delete'
This allows other DragSource's to allow this behaviour, instead of it being tied to specific source types. Change-Id: I06b7c39b1b34a0ae141245bcc13b6a0873a4c0fd
Diffstat (limited to 'src/com/android/launcher3/DragSource.java')
-rw-r--r--src/com/android/launcher3/DragSource.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/DragSource.java b/src/com/android/launcher3/DragSource.java
index cca9ab1a4..7369eeac2 100644
--- a/src/com/android/launcher3/DragSource.java
+++ b/src/com/android/launcher3/DragSource.java
@@ -30,6 +30,17 @@ public interface DragSource {
*/
boolean supportsFlingToDelete();
+ /**
+ * @return whether items dragged from this source supports 'App Info'
+ */
+ boolean supportsAppInfoDropTarget();
+
+ /**
+ * @return whether items dragged from this source supports 'Delete' drop target (e.g. to remove
+ * a shortcut.
+ */
+ boolean supportsDeleteDropTarget();
+
/*
* @return the scale of the icons over the workspace icon size
*/