const char kSplashScreenOrientationKey[] = "@orientation";
const char kSplashScreenIndicatorDisplayKey[] = "@indicator-display";
const char kSplashScreenAppControlOperationKey[] = "@app-control-operation";
+const char kSplashScreenColorDepthKey[] = "@color-depth";
} // namespace tpk_app_keys
extern const char kSplashScreenIndicatorDisplayKey[];
extern const char kSplashScreenOperationKey[];
extern const char kSplashScreenAppControlOperationKey[];
+extern const char kSplashScreenColorDepthKey[];
} // namespace tpk_app_keys
std::string operation;
item_splashscreen->GetString(
tpk_app_keys::kSplashScreenAppControlOperationKey, &operation);
+ std::string colordepth;
+ item_splashscreen->GetString(
+ tpk_app_keys::kSplashScreenColorDepthKey, &colordepth);
info->app_splashscreens.AddSplashScreen(ApplicationSplashScreen(src, type,
- dpi, orientation, indicatordisplay, operation));
+ dpi, orientation, indicatordisplay, operation, colordepth));
}
return true;
const std::string& dpi,
const std::string& orientation,
const std::string& indicatordisplay,
- const std::string& operation)
+ const std::string& operation,
+ const std::string& colordepth)
: src_(src),
type_(type),
dpi_(dpi),
orientation_(orientation),
indicatordisplay_(indicatordisplay),
- operation_(operation) {
+ operation_(operation),
+ colordepth_(colordepth) {
}
const std::string& src() const {
const std::string& operation() const {
return operation_;
}
+ const std::string& colordepth() const {
+ return colordepth_;
+ }
private:
std::string src_;
std::string orientation_;
std::string indicatordisplay_;
std::string operation_;
+ std::string colordepth_;
};
class ApplicationSplashScreenInfo : public parser::ManifestData {