const char kUIApplicationLandscapeEffectImageKey[] = "@landscape-effectimage";
const char kUIApplicationEffectImageTypeKey[] = "@effectimage-type";
const char kUIApplicationHwAccelerationKey[] = "@hw-acceleration";
+const char kUIApplicationSplashScreenDisplayKey[] = "@splash-screen-display";
const char kUIApplicationKey[] = "manifest.ui-application";
const char kTrue[] = "true";
if (app_dict.GetString(kUIApplicationHwAccelerationKey, &hwacceleration))
uiapplicationinfo->app_info.set_hwacceleration(hwacceleration);
+ std::string splash_screen_display;
+ if (app_dict.GetString(kUIApplicationSplashScreenDisplayKey,
+ &splash_screen_display)) {
+ if (!IsBooleanString(splash_screen_display)) {
+ *error = "splash-screen-display must be 'true' or 'false'";
+ return false;
+ }
+ uiapplicationinfo->app_info.set_splash_screen_display(
+ splash_screen_display);
+ }
+
return InitializeParsing(app_dict, uiapplicationinfo, error);
}
submode_("false"),
indicator_display_("true"),
effectimage_type_("image"),
- hwacceleration_("default") {
+ hwacceleration_("default"),
+ splash_screen_display_("true") {
}
bool UIApplicationHandler::Parse(
void set_hwacceleration(const std::string& hwacceleration) {
hwacceleration_ = hwacceleration;
}
+ void set_splash_screen_display(const std::string& splash_screen_display) {
+ splash_screen_display_ = splash_screen_display;
+ }
const std::string& type() const {
return type_;
return hwacceleration_;
}
+ const std::string& splash_screen_display() const {
+ return splash_screen_display_;
+ }
+
private:
std::string type_;
std::string process_pool_;
std::string landscape_image_;
std::string effectimage_type_;
std::string hwacceleration_;
+ std::string splash_screen_display_;
};
struct UIApplicationSingleEntry :