m_parent = parent;
}
+#if PROFILE_MOBILE
void MoreMenuUI::updateBookmarkButton()
{
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
elm_gengrid_item_update(m_map_menu_views[ADD_TO_BOOKMARK]);
}
+#endif
void MoreMenuUI::showUI()
{
//AbstractUIComponent interface methods
void init(Evas_Object* parent);
Evas_Object* getContent();
- void updateBookmarkButton();
void showUI();
void hideUI();
void createToastPopup(const char* text);
void setFocus(Eina_Bool focusable);
#if PROFILE_MOBILE
+ void updateBookmarkButton();
void blockThumbnails(bool blockThumbnails);
void shouldShowFindOnPage(bool show);
void resetContent();
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
m_webEngine->minimizeBrowser.connect(boost::bind(&SimpleUI::minimizeBrowser, this));
- m_webEngine->uriChanged.connect(boost::bind(&SimpleUI::webEngineURLChanged, this, _1));
m_webEngine->uriChanged.connect(boost::bind(&URIEntry::changeUri, &m_webPageUI->getURIEntry(), _1));
m_webEngine->downloadStarted.connect(boost::bind(&SimpleUI::downloadStarted, this, _1));
m_webEngine->backwardEnableChanged.connect(boost::bind(&WebPageUI::setBackButtonEnabled, m_webPageUI.get(), _1));
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));
#if PROFILE_MOBILE
+ m_webEngine->uriChanged.connect(boost::bind(&SimpleUI::webEngineURLChanged, this, _1));
m_webEngine->confirmationRequest.connect(boost::bind(&SimpleUI::handleConfirmationRequest, this, _1));
m_webEngine->getRotation.connect(boost::bind(&SimpleUI::getRotation, this));
m_webEngine->openFindOnPage.connect(boost::bind(&SimpleUI::showFindOnPageUI, this, _1));
}
#endif
+void SimpleUI::scrollView(const int& dx, const int& dy)
+{
+ m_webEngine->scrollView(dx, dy);
+}
+
+#if PROFILE_MOBILE
void SimpleUI::webEngineURLChanged(const std::string url)
{
BROWSER_LOGD("webEngineURLChanged:%s", url.c_str());
m_moreMenuUI->updateBookmarkButton();
}
-void SimpleUI::scrollView(const int& dx, const int& dy)
-{
- m_webEngine->scrollView(dx, dy);
-}
-
-#if PROFILE_MOBILE
void SimpleUI::showFindOnPageUI(const std::string& str)
{
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
#else
void openNewTab(const std::string &uri, const std::string& title =
std::string(), const boost::optional<int> adaptorId = boost::none,
- bool desktopMode = true, bool incognitoMode = false);
+ bool desktopMode = true, bool incognitoMode = false,
+ basic_webengine::TabOrigin origin = basic_webengine::TabOrigin::UNKNOWN);
#endif
void switchToTab(const tizen_browser::basic_webengine::TabId& tabId);
#if PROFILE_MOBILE
void onMenuButtonPressed();
void handleConfirmationRequest(basic_webengine::WebConfirmationPtr webConfirmation);
+
+ /**
+ * \brief check if url comming back from WebEngine should be passed to URI.
+ *
+ * For filtered addresses we need to hide real URI so the user would be confused.
+ * and this is a back function that checks if address emited from browser should be changed.
+ */
+ void webEngineURLChanged(const std::string url);
#else
void onRedKeyPressed();
void onYellowKeyPressed();
// on uri entry widget "changed" signal
void onURLEntryEdited();
- /**
- * \brief check if url comming back from WebEngine should be passed to URI.
- *
- * For filtered addresses we need to hide real URI so the user would be confused.
- * and this is a back function that checks if address emited from browser should be changed.
- */
- void webEngineURLChanged(const std::string url);
void onmostHistoryvisitedClicked();
void onBookmarkvisitedClicked();
} else
elm_entry_entry_set(m_entry, elm_entry_utf8_to_markup(""));
}
+#if PROFILE_MOBILE
updateSecureIcon();
+#endif
}
void URIEntry::setFavIcon(std::shared_ptr< tizen_browser::tools::BrowserImage > favicon)
BROWSER_LOGD("[%s:%d] ", __PRETTY_FUNCTION__, __LINE__);
m_leftButtonBar->setActionForButton("refresh_stop_button", m_reload);
hideProgressBar();
+#if PROFILE_MOBILE
m_URIEntry->updateSecureIcon();
+#endif
}
void WebPageUI::toIncognito(bool incognito)