From 8de52078a42882873322b19becb42612f7708b54 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 8 Apr 2015 20:06:50 -0700 Subject: Move file paging into ScreenRecoveryUI. This fixes the N9 performance problem. Change-Id: I00c10d4162ff266a6243285e5a5e768217f6f799 --- ui.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index a0580b703..3b217745f 100644 --- a/ui.h +++ b/ui.h @@ -31,10 +31,10 @@ class RecoveryUI { // Initialize the object; called before anything else. virtual void Init(); // Show a stage indicator. Call immediately after Init(). - virtual void SetStage(int current, int max) { } + virtual void SetStage(int current, int max) = 0; // After calling Init(), you can tell the UI what locale it is operating in. - virtual void SetLocale(const char* locale) { } + virtual void SetLocale(const char* locale) = 0; // Set the overall recovery state ("background image"). enum Icon { NONE, INSTALLING_UPDATE, ERASING, NO_COMMAND, ERROR }; @@ -65,6 +65,8 @@ class RecoveryUI { // toggled on the text display). virtual void Print(const char* fmt, ...) __printflike(2, 3) = 0; + virtual void ShowFile(const char* filename) = 0; + // --- key handling --- // Wait for keypress and return it. May return -1 after timeout. -- cgit v1.2.3