return EINA_FALSE;
}
-#if defined(OS_TIZEN)
-void _cb_was_shown(void *data, Evas *obj, void *event_info)
-{
- handleEvasObjectShow(static_cast<Evas_Object*>(data));
-}
-
-void _cb_was_hidden(void *data, Evas *obj, void *event_info)
-{
- handleEvasObjectHide(static_cast<Evas_Object*>(data));
-}
-#endif
-
} // namespace
// attach webview as a member of smart data
sd->priv = new EwkViewImpl(view);
view->Initialize();
-
-#if defined(OS_TIZEN)
- // set callbacks to handle application presence/absence on screen
- evas_event_callback_add(canvas, EVAS_CALLBACK_CANVAS_FOCUS_IN, _cb_was_shown, wv_evas_object);
- evas_event_callback_add(canvas, EVAS_CALLBACK_CANVAS_FOCUS_OUT, _cb_was_hidden, wv_evas_object);
-#endif
-
return wv_evas_object;
}
disambiguation_popup_->Dismiss();
}
+ if (!strcmp(event->key, "XF86Phone")) {
+ host_->WasHidden();
+ }
+
+ if (!strcmp(event->key, "XF86PowerOff")) {
+ host_->WasHidden();
+ }
+
if (web_view_) {
#ifdef TIZEN_CONTENTS_DETECTION
if (!strcmp(event->key, "XF86Stop")) {