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_;
}
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>(
#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>
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;
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_;
#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;
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();
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),
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;
}
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;
}
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_);
#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 {
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_;
std::string csp_rule_;
std::string csp_report_rule_;
bool lang_changed_mode_;
-
};
} // namespace runtime