Apply renaming of SplashScreenHandler 18/99618/3 accepted/tizen/3.0/common/20161124.182143 accepted/tizen/3.0/ivi/20161124.082833 accepted/tizen/3.0/mobile/20161124.082741 accepted/tizen/3.0/tv/20161124.082757 accepted/tizen/3.0/wearable/20161124.082818 submit/tizen_3.0/20161124.025838 submit/tizen_3.0/20161129.052440
authorjaekuk, lee <juku1999@samsung.com>
Wed, 23 Nov 2016 11:09:37 +0000 (20:09 +0900)
committerjaekuk lee <juku1999@samsung.com>
Wed, 23 Nov 2016 11:23:22 +0000 (03:23 -0800)
Author: JongHeonChoi <j-h.choi@samsung.com>
https://github.com/crosswalk-project/crosswalk-tizen/pull/138

Change-Id: Ie8dbcf0bdbdfd430deacdc7b94cfa7abfce443d7
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
common/application_data.cc [changed mode: 0644->0755]
common/application_data.h [changed mode: 0644->0755]
runtime/browser/splash_screen.cc [changed mode: 0644->0755]
runtime/browser/splash_screen.h [changed mode: 0644->0755]
runtime/browser/web_application.h

old mode 100644 (file)
new mode 100755 (executable)
index 091b7e5..0559c10
@@ -89,7 +89,7 @@ std::shared_ptr<const wgt::parse::SettingInfo>
   return setting_info_;
 }
 
-std::shared_ptr<const wgt::parse::SplashScreenInfo>
+std::shared_ptr<const wgt::parse::LaunchScreenInfo>
     ApplicationData::splash_screen_info() const {
   return splash_screen_info_;
 }
@@ -215,9 +215,9 @@ bool ApplicationData::LoadManifestData() {
         wgt::parse::SettingInfo::Key()));
 
   splash_screen_info_ =
-    std::static_pointer_cast<const wgt::parse::SplashScreenInfo>(
+    std::static_pointer_cast<const wgt::parse::LaunchScreenInfo>(
       widget_config_parser->GetManifestData(
-        wgt::parse::SplashScreenInfo::Key()));
+        wgt::parse::LaunchScreenInfo::Key()));
 
   tizen_application_info_ =
     std::static_pointer_cast<const wgt::parse::TizenApplicationInfo>(
old mode 100644 (file)
new mode 100755 (executable)
index 43d9c59..1a58ca9
 #include <wgt_manifest_handlers/content_handler.h>
 #include <wgt_manifest_handlers/csp_handler.h>
 #include <wgt_manifest_handlers/ime_handler.h>
+#include <wgt_manifest_handlers/launch_screen_handler.h>
 #include <wgt_manifest_handlers/metadata_handler.h>
 #include <wgt_manifest_handlers/navigation_handler.h>
 #include <wgt_manifest_handlers/permissions_handler.h>
 #include <wgt_manifest_handlers/service_handler.h>
 #include <wgt_manifest_handlers/setting_handler.h>
-#include <wgt_manifest_handlers/splash_screen_handler.h>
 #include <wgt_manifest_handlers/tizen_application_handler.h>
 #include <wgt_manifest_handlers/warp_handler.h>
 #include <wgt_manifest_handlers/widget_handler.h>
@@ -68,7 +68,7 @@ class ApplicationData {
     permissions_info() const;
   std::shared_ptr<const wgt::parse::SettingInfo>
     setting_info() const;
-  std::shared_ptr<const wgt::parse::SplashScreenInfo>
+  std::shared_ptr<const wgt::parse::LaunchScreenInfo>
     splash_screen_info() const;
   std::shared_ptr<const wgt::parse::TizenApplicationInfo>
     tizen_application_info() const;
@@ -101,7 +101,7 @@ class ApplicationData {
     permissions_info_;
   std::shared_ptr<const wgt::parse::SettingInfo>
     setting_info_;
-  std::shared_ptr<const wgt::parse::SplashScreenInfo>
+  std::shared_ptr<const wgt::parse::LaunchScreenInfo>
     splash_screen_info_;
   std::shared_ptr<const wgt::parse::TizenApplicationInfo>
     tizen_application_info_;
old mode 100644 (file)
new mode 100755 (executable)
index 9a4cd4f..89649c6
@@ -25,7 +25,7 @@
 
 #include "common/logger.h"
 #include "runtime/browser/native_window.h"
-#include "wgt_manifest_handlers/splash_screen_handler.h"
+#include "wgt_manifest_handlers/launch_screen_handler.h"
 
 using ScreenOrientation = runtime::NativeWindow::ScreenOrientation;
 
@@ -35,7 +35,7 @@ enum class BorderOption { REPEAT = 1, STRETCH, ROUND };
 
 wgt::parse::ScreenOrientation ChooseOrientation(
     const std::map<wgt::parse::ScreenOrientation,
-    wgt::parse::SplashScreenData>& splash_map,
+    wgt::parse::LaunchScreenData>& splash_map,
     ScreenOrientation screen_orientation) {
   auto orientation_pair = splash_map.end();
 
@@ -96,7 +96,7 @@ namespace runtime {
 
 SplashScreen::SplashScreen(
     runtime::NativeWindow* window,
-    std::shared_ptr<const wgt::parse::SplashScreenInfo> ss_info,
+    std::shared_ptr<const wgt::parse::LaunchScreenInfo> ss_info,
     const std::string& app_path)
     : ss_info_(ss_info),
       window_(window),
@@ -106,7 +106,7 @@ SplashScreen::SplashScreen(
       is_active_(false) {
   LOGGER(DEBUG) << "start of create splash screen";
   if (ss_info == nullptr) return;
-  auto splash_map = ss_info->splash_screen_data();
+  auto splash_map = ss_info->launch_screen_data();
   auto used_orientation =
       ChooseOrientation(splash_map, window->orientation());
   if (used_orientation == wgt::parse::ScreenOrientation::NONE) return;
@@ -153,7 +153,7 @@ std::pair<int, int> SplashScreen::GetDimensions() {
 }
 
 void SplashScreen::SetBackground(
-    const wgt::parse::SplashScreenData& splash_data, Evas_Object* parent,
+    const wgt::parse::LaunchScreenData& splash_data, Evas_Object* parent,
     const SplashScreenBound& bound, const std::string& app_path) {
   background_ = elm_bg_add(parent);
   if (!background_) return;
@@ -216,7 +216,7 @@ void SplashScreen::SetBackground(
 }
 
 void SplashScreen::SetImage(
-    const wgt::parse::SplashScreenData& splash_data, Evas_Object* parent,
+    const wgt::parse::LaunchScreenData& splash_data, Evas_Object* parent,
     const SplashScreenBound& bound, const std::string& app_path) {
   if (!background_) return;
   image_ = elm_image_add(background_);
old mode 100644 (file)
new mode 100755 (executable)
index 90fc979..11d49cd
@@ -26,7 +26,7 @@
 #include <Elementary.h>
 
 #include "runtime/browser/native_window.h"
-#include "wgt_manifest_handlers/splash_screen_handler.h"
+#include "wgt_manifest_handlers/launch_screen_handler.h"
 
 namespace runtime {
 
@@ -36,21 +36,21 @@ class SplashScreen {
   enum class HideReason { RENDERED, LOADFINISHED, CUSTOM };
 
   SplashScreen(NativeWindow* window,
-               std::shared_ptr<const wgt::parse::SplashScreenInfo> ss_info,
+               std::shared_ptr<const wgt::parse::LaunchScreenInfo> ss_info,
                const std::string& app_path);
   void HideSplashScreen(HideReason reason);
 
  private:
   std::pair<int, int> GetDimensions();
-  void SetBackground(const wgt::parse::SplashScreenData& splash_data,
+  void SetBackground(const wgt::parse::LaunchScreenData& splash_data,
                      Evas_Object* parent, const SplashScreenBound& bound,
                      const std::string& app_path);
 
-  void SetImage(const wgt::parse::SplashScreenData& splash_data,
+  void SetImage(const wgt::parse::LaunchScreenData& splash_data,
                 Evas_Object* parent, const SplashScreenBound& bound,
                 const std::string& app_path);
 
-  std::shared_ptr<const wgt::parse::SplashScreenInfo> ss_info_;
+  std::shared_ptr<const wgt::parse::LaunchScreenInfo> ss_info_;
   NativeWindow* window_;
   Evas_Object* image_;
   Evas_Object* background_;
index 9dcaa08..8e72b25 100755 (executable)
@@ -132,7 +132,6 @@ class WebApplication : public WebView::EventListener {
   std::string csp_rule_;
   std::string csp_report_rule_;
   bool lang_changed_mode_;
-
 };
 
 }  // namespace runtime