[webkit-gtk] WebKit2 FullScreen API

Philippe Normand philn at igalia.com
Tue Jan 10 01:02:37 PST 2012


Hi!

I've been recently working on WebKit2Gtk FullScreen support[1].

I'd like to propose two signals for the WebView in order to cover these
aspects of the spec:

- Fullscreen should be cancelled if "There is a previously-established
user preference, security risk, or platform limitation."
- Optionally, display a message indicating how the user can exit
displaying the context object fullscreen.

The first signal, "entering-fullscreen", would be emitted by the
WebKitGTK FullScreenController just before triggering the fullscreen
action on the WebView's window. If for some reason the UA wants to block
this action it could connect to this signal and return FALSE from the
handler. This signal can also be used by the UA to hide any widget from
its window and prepare a Dialog window to notify the user of the
fullscreen switch and how he can exit.

The second signal, "leaving-fullscreen", would be emitted by the
WebKitGTK FullScreenController just before "un-fullscreening" the
WebView's window. A signal handler could be used in this case to show
any widget that was previously hidden in a "entering-fullscreen" signal
handler.

Any thoughts about this proposal?

Philippe

[1] http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20120110/51690f61/attachment.bin>


More information about the webkit-gtk mailing list