}
void WebContents::DidStartLoading() {
+#if defined(OS_TIZEN)
+ if (!owner_window()->IsVisible()) {
+ std::string scheme = web_contents()->GetURL().scheme();
+ if (std::string::npos != scheme.find("http")) {
+ owner_window()->Show();
+ }
+ }
+#endif
Emit("did-start-loading");
}
#if defined(OS_TIZEN_TV_PRODUCT)
CreateMouseCursor(box);
#endif
-
+ visibilityStatus_ = false;
}
NativeWindowEfl::~NativeWindowEfl() {
eext_object_event_callback_del(web_view_, EEXT_CALLBACK_MORE,
&HWBackKeyCallback);
#endif
+ visibilityStatus_ = false;
}
#if defined(OS_TIZEN_TV_PRODUCT)
evas_object_del(window_);
window_ = nullptr;
+ visibilityStatus_ = false;
CloseContents(web_contents());
}
if(window_)
evas_object_del(window_);
window_ = nullptr;
+
+ visibilityStatus_ = false;
NotifyWindowClosed();
}
LOG(ERROR) << "There's no available window or webview.";
evas_object_show(window_);
evas_object_show(web_view_);
+ visibilityStatus_ = true;
}
void NativeWindowEfl::ShowInactive() {
void NativeWindowEfl::Hide() {
evas_object_hide(web_view_);
evas_object_hide(window_);
+ visibilityStatus_ = false;
}
bool NativeWindowEfl::IsVisible() {
- NOTIMPLEMENTED();
- return true;
+ return visibilityStatus_;
}
bool NativeWindowEfl::IsEnabled() {