Add color-depth attribute on splash screen 58/68658/1 accepted/tizen/common/20160511.141647 accepted/tizen/ivi/20160512.045923 accepted/tizen/mobile/20160512.045653 accepted/tizen/tv/20160512.045801 accepted/tizen/wearable/20160512.045740 submit/tizen/20160510.044059
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 9 May 2016 07:33:33 +0000 (16:33 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 9 May 2016 07:33:33 +0000 (16:33 +0900)
- Requires:
[pkgmgr-info] https://review.tizen.org/gerrit/#/c/68656/

Change-Id: I36901b117f77328422e8319a9f5363df1ddcdaa8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/tpk_manifest_handlers/common/application_handler.cc
src/tpk_manifest_handlers/common/application_handler.h
src/tpk_manifest_handlers/ui_and_service_application_infos.h

index fcbb5f98f7979855b03d11a6de41a6d7a8b7e3a2..2d7963bad2ee2ae8125672c79eeea5cf49049812 100644 (file)
@@ -59,6 +59,7 @@ const char kSplashScreenDpiKey[] = "@dpi";
 const char kSplashScreenOrientationKey[] = "@orientation";
 const char kSplashScreenIndicatorDisplayKey[] = "@indicator-display";
 const char kSplashScreenAppControlOperationKey[] = "@app-control-operation";
+const char kSplashScreenColorDepthKey[] = "@color-depth";
 
 }  // namespace tpk_app_keys
 
index 6f7a3f3dae5b6c68c27389c15f7f559b61a8f1de..eb0a21f6886fe8805b84d42056ccabf1114db8af 100644 (file)
@@ -72,6 +72,7 @@ extern const char kSplashScreenOrientationKey[];
 extern const char kSplashScreenIndicatorDisplayKey[];
 extern const char kSplashScreenOperationKey[];
 extern const char kSplashScreenAppControlOperationKey[];
+extern const char kSplashScreenColorDepthKey[];
 
 }  // namespace tpk_app_keys
 
@@ -285,8 +286,11 @@ bool ParseSplashScreen(const parser::DictionaryValue& dict,
     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;
index ff66ca2070d6044a19541e0e56e019bd901c95b1..d2ed29b5cbec2d4e2322662af41844d9d1fee8e8 100644 (file)
@@ -159,13 +159,15 @@ class ApplicationSplashScreen {
                                    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 {
@@ -186,6 +188,9 @@ class ApplicationSplashScreen {
   const std::string& operation() const {
     return operation_;
   }
+  const std::string& colordepth() const {
+    return colordepth_;
+  }
 
  private:
   std::string src_;
@@ -194,6 +199,7 @@ class ApplicationSplashScreen {
   std::string orientation_;
   std::string indicatordisplay_;
   std::string operation_;
+  std::string colordepth_;
 };
 
 class ApplicationSplashScreenInfo : public parser::ManifestData {