diff options
author | Doug Zongker <dougz@android.com> | 2011-10-31 17:34:15 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2011-10-31 21:50:32 +0100 |
commit | 7d0542f28045640dfab6a259ae7bd796e653d66f (patch) | |
tree | 801e5acd7cb5a101182f325e1d4f343581b35801 /ui.h | |
parent | refactor ui functions into a class (diff) | |
download | android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.gz android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.bz2 android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.lz android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.xz android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.zst android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.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 |