aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Song2017-06-12 18:08:33 -0500
committerElliott Hughes2017-06-16 17:33:02 -0500
commite2bd876043c3f26ad4712c2aad62b320368ad815 (patch)
tree7290ac89542e3b13e182836b28c694fee1e58a81 /screen_ui.h
parentffd8505f4ddc4e94416f36cd0b425040c8e566b8 (diff)
downloadplatform-bootable-recovery-e2bd876043c3f26ad4712c2aad62b320368ad815.tar.gz
platform-bootable-recovery-e2bd876043c3f26ad4712c2aad62b320368ad815.tar.xz
platform-bootable-recovery-e2bd876043c3f26ad4712c2aad62b320368ad815.zip
Introduce VR recovery ui
A version of screen ui with specific adjustments for vr device compatibility. (cherrypick of a44dba7f4e7296077f65fd571232e8a61aed9418 to AOSP) Bug: 37779982 Test: "adb reboot recovery" to view Change-Id: If6b0f26c1b587f8d0176060685b5efb6c67593b1
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index a2322c36..bd99254f 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -107,6 +107,7 @@ class ScreenRecoveryUI : public RecoveryUI {
107 // Log text overlay, displayed when a magic key is pressed. 107 // Log text overlay, displayed when a magic key is pressed.
108 char** text_; 108 char** text_;
109 size_t text_col_, text_row_, text_top_; 109 size_t text_col_, text_row_, text_top_;
110 int log_bottom_offset_;
110 111
111 bool show_text; 112 bool show_text;
112 bool show_text_ever; // has show_text ever been true? 113 bool show_text_ever; // has show_text ever been true?
@@ -165,8 +166,9 @@ class ScreenRecoveryUI : public RecoveryUI {
165 virtual int GetProgressBaseline(); 166 virtual int GetProgressBaseline();
166 virtual int GetTextBaseline(); 167 virtual int GetTextBaseline();
167 168
168 void DrawHorizontalRule(int* y); 169 virtual void DrawHorizontalRule(int* y);
169 void DrawTextLine(int x, int* y, const char* line, bool bold) const; 170 virtual void DrawHighlightBar(int x, int y, int width, int height) const;
171 virtual void DrawTextLine(int x, int* y, const char* line, bool bold) const;
170 void DrawTextLines(int x, int* y, const char* const* lines) const; 172 void DrawTextLines(int x, int* y, const char* const* lines) const;
171}; 173};
172 174