boost::signals2::signal<void(bool)> fullscreenModeSet;
#if PWA
- boost::signals2::signal<void (std::string)> resultDataManifest;
-
boost::signals2::signal<void (std::string)> iconDownload;
#endif
m_webEngine->setCertificatePem.connect(boost::bind(&services::CertificateContents::saveCertificateInfo, m_certificateContents, _1, _2));
m_webEngine->setWrongCertificatePem.connect(boost::bind(&services::CertificateContents::saveWrongCertificateInfo, m_certificateContents, _1, _2));
m_webEngine->fullscreenModeSet.connect(boost::bind(&WebPageUI::fullscreenModeSet, m_webPageUI.get(), _1));
-#if PWA
- m_webEngine->resultDataManifest.connect(boost::bind(&SimpleUI::resultDataManifest, this, _1));
-#endif
#if PROFILE_MOBILE
m_webEngine->confirmationRequest.connect(boost::bind(&SimpleUI::handleConfirmationRequest, this, _1));
m_webEngine->getRotation.connect(boost::bind(&SimpleUI::getRotation, this));
return m_webEngine->getURI();
}
-#if PWA
-void SimpleUI::resultDataManifest(std::string pwaData)
-{
- BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
- m_webPageUI->resultDataManifest(pwaData);
-}
-#endif
-
void SimpleUI::selectSettingsOtherPageChange()
{
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
void onSaveContentToClicked();
std::string requestSettingsCurrentPage();
void selectSettingsOtherPageChange();
-#if PWA
- void resultDataManifest(std::string pwaData);
-#endif
void onEditOtherPagePopupClicked(const std::string& newName);
void showBookmarkFlowUI();
webView->setWrongCertificatePem.connect(boost::bind(&WebEngineService::_setWrongCertificatePem, this, _1, _2));
webView->fullscreenModeSet.connect([this](auto state){fullscreenModeSet(state);});
#if PWA
- webView->resultDataManifest.connect(boost::bind(&WebEngineService::_resultDataManifest, this, _1));
webView->iconDownload.connect(boost::bind(&WebEngineService::_iconDownload, this, _1));
#endif
#if PROFILE_MOBILE
webView->redirectedWebPage.disconnect(boost::bind(&WebEngineService::_redirectedWebPage, this, _1, _2));
webView->fullscreenModeSet.disconnect_all_slots();
#if PWA
- webView->resultDataManifest.disconnect(boost::bind(&WebEngineService::_resultDataManifest, this));
webView->iconDownload.disconnect(boost::bind(&WebEngineService::_iconDownload, this));
#endif
#if PROFILE_MOBILE
m_currentWebView->requestManifest();
}
-void WebEngineService::_resultDataManifest(std::string pwaData)
-{
- BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
- resultDataManifest(pwaData);
-}
-
void WebEngineService::_iconDownload(std::string download_uri)
{
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
void _setCertificatePem(const std::string& uri, const std::string& pem);
void _setWrongCertificatePem(const std::string& uri, const std::string& pem);
#if PWA
- void _resultDataManifest(std::string pwaData);
void _iconDownload(std::string download_uri);
#endif
#if PROFILE_MOBILE
ewk_view_request_manifest(m_ewkView, dataSetManifest, this);
}
-void WebView::dataSetManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* data)
+void WebView::dataSetManifest(Evas_Object* view, Ewk_View_Request_Manifest* manifest, void* /*data*/)
{
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
- WebView * self = reinterpret_cast<WebView *>(data);
-
if (view) {
const char* short_name(ewk_manifest_short_name_get(manifest));
const char* name(ewk_manifest_name_get(manifest));
BROWSER_LOGE("[%s:%d] Fail to add to homescreen", __PRETTY_FUNCTION__, __LINE__);
} else {
BROWSER_LOGE("[%s:%d] Success to add to homescreen", __PRETTY_FUNCTION__, __LINE__);
- self->resultDataManifest(m_pwaData);
}
BROWSER_LOGD("[%s:%d] dataSetManifest callback function end!", __PRETTY_FUNCTION__, __LINE__);
}
boost::signals2::signal<void()> unsecureConnection;
boost::signals2::signal<void(bool)> fullscreenModeSet;
#if PWA
- boost::signals2::signal<void (std::string)> resultDataManifest;
boost::signals2::signal<void (std::string)> iconDownload;
#endif
_cm_dismissed(nullptr, webPageUI->m_ctxpopup, nullptr);
// send request API.
- pwaRequestManifest();
+ webPageUI->pwaRequestManifest();
}
else {
BROWSER_LOGW("[%s] data = nullptr", __PRETTY_FUNCTION__);