m_tizenCompatibilitySettings.m_minor = 0;
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();
+ }
+
return true;
}
view->LoadUrl(res->uri(), res->mime());
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());
+ }
+
// ewk_view_bg_color_set is not working at webview initialization.
if (common::getProfile() == common::kPROFILE_WEARABLE &&
app_data_->app_type() == common::ApplicationData::WATCH) {
SetupWebViewCompatibilitySettings(new_view);
view_stack_.push_front(new_view);
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());
+ }
}
void WebApplication::RemoveWebViewFromStack(WebView* view) {
} else if (current != view_stack_.front()) {
view_stack_.front()->SetVisibility(true);
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());
+ }
}
// 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) {
+ // When Web voice touch is in result conflict state, function of back key change to
+ // canceling the conflict state
+ vc_webview_->vc_remove_tooltip();
+ LOGGER(DEBUG) << "[DEBUG] Cancel conflict state of web voice touch";
+
+ return;
+ }
+
if (!common::utils::StartsWith(view->GetUrl(), kFileScheme)) {
if (kKeyNameBack == keyname) {
LOGGER(DEBUG) << "Back to previous page for remote URL";
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.