m_tizenCompatibilitySettings.m_release = 0;
// Get Web voice touch agent
- bool is_supported_web_vt = false;
- vc_webview_ = NULL;
- if (0 == VCWebView::vc_is_supported_web_vt(&is_supported_web_vt) && is_supported_web_vt) {
- LOGGER(DEBUG) << "[DEBUG] Web voice touch is enabled";
- vc_webview_ = VCWebView::getInstance();
- }
+ LOGGER(DEBUG) << "[DEBUG] Web voice touch is enabled";
+ vc_webview_ = VCWebView::getInstance();
return true;
}
view_stack_.push_front(view);
// Set web view into Web voice touch agent
- if (NULL != vc_webview_) {
- vc_webview_->vc_webview_set_view(view->evas_object());
- }
+ vc_webview_->vc_webview_set_view(view->evas_object());
// ewk_view_bg_color_set is not working at webview initialization.
if (common::getProfile() == common::kPROFILE_WEARABLE &&
window_->SetContent(new_view->evas_object());
// Set web view into Web voice touch agent
- if (NULL != vc_webview_) {
- vc_webview_->vc_webview_set_view(new_view->evas_object());
- }
+ vc_webview_->vc_webview_set_view(new_view->evas_object());
}
void WebApplication::RemoveWebViewFromStack(WebView* view) {
window_->SetContent(view_stack_.front()->evas_object());
// Set web view into Web voice touch agent
- if (NULL != vc_webview_) {
- vc_webview_->vc_webview_set_view(view_stack_.front()->evas_object());
- }
+ vc_webview_->vc_webview_set_view(view_stack_.front()->evas_object());
}
// Delete after the callback context(for ewk view) was not used
? app_data_->setting_info()->hwkey_enabled()
: true;
- if (NULL != vc_webview_ && kKeyNameBack == keyname && vc_webview_->vc_get_conflict_status() == 1) {
+ if (kKeyNameBack == keyname && vc_webview_->vc_get_conflict_status() == 1) {
// When Web voice touch is in result conflict state, function of back key change to
// canceling the conflict state
vc_webview_->vc_remove_tooltip();
}
}
-void WebApplication::OnLoadFinished(WebView* /*view*/) {
+void WebApplication::OnLoadFinished(WebView* view) {
LOGGER(DEBUG) << "LoadFinished";
if (common::getProfile() == common::kPROFILE_MOBILE) {
if ((app_data_->setting_info() != NULL &&
}
}
splash_screen_->HideSplashScreen(SplashScreen::HideReason::LOADFINISHED);
+
+ // Set web view into Web voice touch agent
+ vc_webview_->vc_webview_set_view(view->evas_object());
}
void WebApplication::OnRendered(WebView* view) {
LOGGER(DEBUG) << "Rendered";
splash_screen_->HideSplashScreen(SplashScreen::HideReason::RENDERED);
- // Set web view into Web voice touch agent
- if (NULL != vc_webview_) {
- vc_webview_->vc_webview_set_view(view->evas_object());
- }
-
// Do not show(), active() for language change
if(lang_changed_mode_ == false){
// Show window after frame rendered.