summaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-09 20:05:44 +0200
committerTao Bao <tbao@google.com>2018-05-11 05:46:46 +0200
commite5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45 (patch)
treecf03b5a184d097fc8a2169c3c6cd2e7b5db5ab56 /device.h
parentMerge "Document the clang-format usage." (diff)
downloadandroid_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.gz
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.bz2
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.lz
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.xz
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.tar.zst
android_bootable_recovery-e5d2c25ecf8aeaa1f1dee9215cb70b82a9f74d45.zip
Diffstat (limited to 'device.h')
-rw-r--r--device.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/device.h b/device.h
index bf148f576..9c433715b 100644
--- a/device.h
+++ b/device.h
@@ -49,7 +49,7 @@ class Device {
RUN_LOCALE_TEST = 12,
};
- explicit Device(RecoveryUI* ui) : ui_(ui) {}
+ explicit Device(RecoveryUI* ui);
virtual ~Device() {}
// Returns a raw pointer to the RecoveryUI object.
@@ -96,6 +96,10 @@ class Device {
// here and return NO_ACTION.
virtual BuiltinAction InvokeMenuItem(size_t menu_position);
+ // Removes the menu item for the given action. This allows tailoring the menu based on the
+ // runtime info, such as the availability of /cache or /sdcard.
+ virtual void RemoveMenuItemForAction(Device::BuiltinAction action);
+
// Called before and after we do a wipe data/factory reset operation, either via a reboot from the
// main system with the --wipe_data flag, or when the user boots into recovery image manually and
// selects the option from the menu, to perform whatever device-specific wiping actions as needed.