diff options
author | Doug Zongker <dougz@android.com> | 2011-10-31 17:34:15 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-10-31 23:51:07 +0100 |
commit | daefc1d442fb421606680feb9aeb59c133f4c427 (patch) | |
tree | 71b64ebdd66540aca7a523c73a47626ca519d039 /ui.h | |
parent | temporarily remove verifier_test binary (diff) | |
download | android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.tar android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.tar.gz android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.tar.bz2 android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.tar.lz android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.tar.xz android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.tar.zst android_bootable_recovery-daefc1d442fb421606680feb9aeb59c133f4c427.zip |
Diffstat (limited to '')
-rw-r--r-- | ui.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -64,6 +64,13 @@ class RecoveryUI { // Erase any queued-up keys. virtual void FlushKeys() = 0; + // Called on each keypress, even while operations are in progress. + // Return value indicates whether an immediate operation should be + // triggered (toggling the display, rebooting the device), or if + // the key should be enqueued for use by the main thread. + enum KeyAction { ENQUEUE, TOGGLE, REBOOT }; + virtual KeyAction CheckKey(int key) = 0; + // --- menu display --- // Display some header text followed by a menu of items, which appears |