rwi_info_showed_(false),
#endif
is_initialized_(false) {
- if (evas_object_) {
- evas_object_smart_callback_add(evas_object_,
- kVisibleContentChangedSignalName,
- VisibleContentChangedCallback, this);
-
- evas_object_smart_callback_add(evas_object_, kCustomScrollBeginSignalName,
- OnCustomScrollBeginCallback, this);
- evas_object_smart_callback_add(evas_object_, kCustomScrollEndSignalName,
- OnCustomScrollEndCallback, this);
- evas_object_event_callback_add(evas_object_, EVAS_CALLBACK_FOCUS_IN,
- OnViewFocusIn, this);
- evas_object_event_callback_add(evas_object_, EVAS_CALLBACK_FOCUS_OUT,
+ LOG(INFO) << "EWebView: " << this;
+ if (evas_object_) {
+ evas_object_smart_callback_add(evas_object_,
+ kVisibleContentChangedSignalName,
+ VisibleContentChangedCallback, this);
+
+ evas_object_smart_callback_add(evas_object_, kCustomScrollBeginSignalName,
+ OnCustomScrollBeginCallback, this);
+ evas_object_smart_callback_add(evas_object_, kCustomScrollEndSignalName,
+ OnCustomScrollEndCallback, this);
+ evas_object_event_callback_add(evas_object_, EVAS_CALLBACK_FOCUS_IN,
+ OnViewFocusIn, this);
+ evas_object_event_callback_add(evas_object_, EVAS_CALLBACK_FOCUS_OUT,
OnViewFocusOut, this);
#if BUILDFLAG(IS_TIZEN)
- window_rotate_handler_ = ecore_event_handler_add(
- ECORE_WL2_EVENT_WINDOW_ROTATE, RotateWindowCb, this);
+ window_rotate_handler_ = ecore_event_handler_add(
+ ECORE_WL2_EVENT_WINDOW_ROTATE, RotateWindowCb, this);
#endif
}
}
}
EWebView::~EWebView() {
+ LOG(INFO) << "EWebView: " << this;
auto cbce = static_cast<ContentBrowserClientEfl*>(
content::GetContentClientExport()->browser());
#if !defined(EWK_BRINGUP) // FIXME: m94 bringup
}
void EWebView::Hide() {
+ LOG(INFO) << "EWebView: " << this;
evas_object_hide(native_view_);
+ if (!web_contents_)
+ return;
web_contents_->WasHidden();
}