diff options
author | Will Haldean Brown <haldean@google.com> | 2014-03-04 21:22:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-04 21:22:30 +0000 |
commit | bd79652a9afeee1e81f0f51d11e5869091f58af9 (patch) | |
tree | b7da1841a7bc220977a6f513c43d9b0d8bdc6315 /core/java/android/view | |
parent | 3b86923854069fa1b3bcabc8643a5e2db40d7b10 (diff) | |
parent | ca6234e084a71e0c968cff404620298bcd971fcc (diff) | |
download | frameworks_base-bd79652a9afeee1e81f0f51d11e5869091f58af9.zip frameworks_base-bd79652a9afeee1e81f0f51d11e5869091f58af9.tar.gz frameworks_base-bd79652a9afeee1e81f0f51d11e5869091f58af9.tar.bz2 |
Merge "Add swipe-to-dismiss support to PhoneWindow." into klp-modular-dev
Diffstat (limited to 'core/java/android/view')
-rw-r--r-- | core/java/android/view/Window.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index b3a0699..c450f3c 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -91,10 +91,15 @@ public abstract class Window { public static final int FEATURE_ACTION_MODE_OVERLAY = 10; /** + * Flag for requesting a decoration-free window that is dismissed by swiping from the left. + */ + public static final int FEATURE_SWIPE_TO_DISMISS = 11; + + /** * Max value used as a feature ID * @hide */ - public static final int FEATURE_MAX = FEATURE_ACTION_MODE_OVERLAY; + public static final int FEATURE_MAX = FEATURE_SWIPE_TO_DISMISS; /** Flag for setting the progress bar's visibility to VISIBLE */ public static final int PROGRESS_VISIBILITY_ON = -1; @@ -385,6 +390,12 @@ public abstract class Window { * @param mode The mode that was just finished. */ public void onActionModeFinished(ActionMode mode); + + /** + * Called when a window is dismissed. This informs the callback that the + * window is gone, and it should finish itself. + */ + public void onWindowDismissed(); } public Window(Context context) { |