aboutsummaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2013-07-31 11:28:24 -0700
committerDoug Zongker <dougz@android.com>2013-07-31 11:35:12 -0700
commitc0441d171914e59941ec4f815ae0aabf56d6504f (patch)
tree2382931433409feae532e7a7fb4ac05016336196 /screen_ui.h
parent3c3ee3bc33d35cf3939f57f6c649459280b57827 (diff)
downloadbootable_recovery-c0441d171914e59941ec4f815ae0aabf56d6504f.zip
bootable_recovery-c0441d171914e59941ec4f815ae0aabf56d6504f.tar.gz
bootable_recovery-c0441d171914e59941ec4f815ae0aabf56d6504f.tar.bz2
notify about pending long press
Recovery changes: - add a method to the UI class that is called when a key is held down long enough to be a "long press" (but before it is released). Device-specific subclasses can override this to indicate a long press. - do color selection for ScreenRecoveryUI's menu-and-log drawing function. Subclasses can override this to customize the colors they use for various elements. - Include the value of ro.build.display.id in the menu headers, so you can see on the screen what version of recovery you are running. Change-Id: I426a6daf892b9011638e2035aebfa2831d4f596d
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/screen_ui.h b/screen_ui.h
index fe0de46..0bd220f 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -53,6 +53,11 @@ class ScreenRecoveryUI : public RecoveryUI {
int SelectMenu(int sel);
void EndMenu();
+ void Redraw();
+
+ enum UIElement { HEADER, MENU, MENU_SEL_BG, MENU_SEL_FG, LOG, TEXT_FILL };
+ virtual void SetColor(UIElement e);
+
private:
Icon currentIcon;
int installingFrame;