[webkit-gtk] WebKit2 FullScreen API
philn at igalia.com
Tue Jan 10 01:02:37 PST 2012
I've been recently working on WebKit2Gtk FullScreen support.
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
Any thoughts about this proposal?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part
More information about the webkit-gtk