[M108 Migration][API] Re-implement ewk_view_visibility_set 08/287208/13
authorBakka Uday Kiran <b.kiran@samsung.com>
Mon, 23 Jan 2023 18:34:12 +0000 (00:04 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 1 Feb 2023 09:04:26 +0000 (09:04 +0000)
commit08c11ef5ab26f9aeb7d6ec407235dd9ddd46e786
tree9a17746244da79085f410e772ff379ae1ba48fb8
parentff90bd6779c76f52863182c8851769ac281e6061
[M108 Migration][API] Re-implement ewk_view_visibility_set

1. In w3c spec as [1]"The Page Visibility" specification defines a means
for site developers to programmatically determine the current
visibility of a document and be notified of visibility changes.

Also, it does not mean directly showing or hiding the current webview.

Previous codes have an unnecessary behavior. This patch will just set
visibility to |WasShown| or |WasHidden| without evas_object_show
(or hide) in webview.

And ewk_view_page_visibility_state_set() was already changed by [2]
like current patch.

2. This patch implements ewk_view_page_visibility_state_set.
It just supports 'visible' and 'hidden' for now.

3. In aura, calling WebContents::{WasShown|WasHidden} eventually invokes
RWHVA's ShowWithVisibility() / Hide() functions which has additional
functionality related to page visibility, compared to tizen branch.
Hence make the changes suitable to new architecture.
Also show / hide content image evas object in sync with RWHVA's visibility.

References:
[1] https://www.w3.org/TR/page-visibility/
[2] https://review.tizen.org/gerrit/c/77637
https://review.tizen.org/gerrit/c/277832
https://review.tizen.org/gerrit/c/279282
https://review.tizen.org/gerrit/c/282642

Change-Id: I0e9df5734b3a2e14a3ad82c75e8eaf50b33e368f
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
content/browser/renderer_host/render_widget_host_view_aura.cc
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/eweb_view.h
tizen_src/ewk/efl_integration/public/ewk_view.cc