BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return nullptr;
}
return m_currentWebView->getLayout();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return nullptr;
}
return m_currentWebView->getWidget();
});
webView->changeUIColor.connect(
[this](const int& r, const int& g, const int& b, const int& a){
- this->changeUIColor(r,g,b,a);
+ this->changeUIColor(r, g, b, a);
});
webView->installPWA.connect(
[this](const std::string& str, const std::string& id, const std::string& sn) { return *installPWA(str, id, sn); });
void WebEngineService::onTabIdCreated(int tabId)
{
- m_tabIdCreated= tabId;
+ m_tabIdCreated = tabId;
}
void WebEngineService::setURI(const std::string & uri)
BROWSER_LOGD("[%s:%d] uri=%s", __PRETTY_FUNCTION__, __LINE__, uri.c_str());
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_stopped = false;
return m_currentWebView->getURI();
else
return m_currentWebView->getTitle();
- } else
+ } else {
return std::string("");
+ }
}
TabOrigin WebEngineService::getOrigin() const
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return std::string();
}
return m_currentWebView->getUserAgent();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->setUserAgent(ua);
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
disconnectSignals(m_currentWebView);
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
if (!m_signalsConnected)
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->isSuspended();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_stopped = true;
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_stopped = false;
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_stopped = false;
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_stopped = false;
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->isBackEnabled();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->isForwardEnabled();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->isLoading();
p->setURI(uri);
}
- p->getRotation.connect([this] { return _getRotation(); } );
- p->rotatePrepared.connect([this] { rotatePrepared(); } );
+ p->getRotation.connect([this] { return _getRotation(); });
+ p->rotatePrepared.connect([this] { rotatePrepared(); });
AbstractWebEngine::tabCreated();
disconnectSignals(m_currentWebView);
m_currentWebView.reset();
}
- }
- else if (closingTabId == m_stateStruct->currentTabId && m_stateStruct->mostRecentTab.size()){
+ } else if (closingTabId == m_stateStruct->currentTabId && m_stateStruct->mostRecentTab.size()) {
res = switchToTab(m_stateStruct->mostRecentTab.back());
}
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->setFocus();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->clearFocus();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->hasFocus();
return std::make_shared<tizen_browser::tools::BrowserImage>();
else
return m_currentWebView->getFavicon();
- } else
+ } else {
return std::make_shared<tizen_browser::tools::BrowserImage>();
+ }
}
void WebEngineService::setWebViewSettings(std::shared_ptr<WebView> webView) {
void WebEngineService::clearCache()
{
- for(const auto& it: m_stateStruct->tabs) {
+ for (const auto& it: m_stateStruct->tabs) {
it.second->clearCache();
}
}
void WebEngineService::clearCookies()
{
- for(const auto& it: m_stateStruct->tabs) {
+ for (const auto& it: m_stateStruct->tabs) {
it.second->clearCookies();
}
}
void WebEngineService::clearPrivateData()
{
- for(const auto& it: m_stateStruct->tabs) {
+ for (const auto& it: m_stateStruct->tabs) {
it.second->clearPrivateData();
}
}
void WebEngineService::clearPasswordData()
{
- for(const auto& it: m_stateStruct->tabs) {
+ for (const auto& it: m_stateStruct->tabs) {
it.second->clearPasswordData();
}
}
}
}
ewk_context_form_candidate_data_delete_all(m_defaultContext);
- for(const auto& it: m_stateStruct->tabs)
+ for (const auto& it: m_stateStruct->tabs)
it.second->clearFormData();
}
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->searchOnWebsite(searchString, flags);
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->switchToDesktopMode();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->switchToMobileMode();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->isDesktopMode();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return false;
}
return m_currentWebView->isFullScreen();
void WebEngineService::setSettingsParam(WebEngineSettings param, bool value) {
m_settings[param] = value;
- for(auto it = m_stateStruct->tabs.cbegin(); it != m_stateStruct->tabs.cend(); ++it) {
+ for (auto it = m_stateStruct->tabs.cbegin(); it != m_stateStruct->tabs.cend(); ++it) {
switch (param) {
case WebEngineSettings::PAGE_OVERVIEW:
it->second->ewkSettingsAutoFittingSet(value);
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
M_ASSERT(m_currentWebView);
if (!m_currentWebView) {
- BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__,"m_currentWebView is null");
+ BROWSER_LOGD("[%s:%d:%s] ", __PRETTY_FUNCTION__, __LINE__, "m_currentWebView is null");
return;
}
m_currentWebView->setBarsShown(value);