This patch is migrated from m47 beta:
[1] https://review.tizen.org/gerrit/#/c/101956/
[2] https://review.tizen.org/gerrit/#/c/106742/
[3] https://review.tizen.org/gerrit/#/c/98056/
[4] https://review.tizen.org/gerrit/#/c/110060/
Implement the API to close the web page forcibly.
Change-Id: Ib54974d181a07ab67e54e8454fc839624aab560c
Signed-off-by: DongJun Kim <djmix.kim@samsung.com>
delayed_messages_.clear();
}
+
+void EWebView::ClosePage() {
+ web_contents_->ClosePage();
+}
+
void HandleTapGestureForSelection(bool is_content_editable);
void HandleZoomGesture(blink::WebGestureEvent& event);
+ void ClosePage();
private:
void InitializeContent();
Eina_Bool ewk_view_page_close(Evas_Object* o)
{
- LOG_EWK_API_MOCKUP();
- return false;
+ EWK_VIEW_IMPL_GET_OR_RETURN(o, impl, EINA_FALSE);
+
+ impl->ClosePage();
+ return EINA_TRUE;
}
void ewk_view_session_timeout_set(Evas_Object* o, unsigned long timeout)