const char* const kServiceWorkerConfigKey = "service-worker-url";
+const char* const kEnableSwipeToRefreshConfigKey = "enable-swipe-to-refresh";
+
// Looking for added privilege by Application developer in config.xml.
bool FindPrivilegeFromConfig(common::ApplicationData* app_data,
const std::string& privilege) {
OnDidRegisterServiceWorkerCb, this);
}
+ if (app_data_->meta_data_info().get() &&
+ app_data_->meta_data_info()->HasKey(kEnableSwipeToRefreshConfigKey)) {
+ Ewk_Settings* settings = ewk_view_settings_get(view->evas_object());
+ ewk_settings_swipe_to_refresh_enabled_set(settings, EINA_TRUE);
+ }
+
STEP_PROFILE_END("OnCreate -> URL Set");
STEP_PROFILE_START("URL Set -> Rendered");