[webkit-gtk] WebKit2 FullScreen API

Martin Robinson martin.james.robinson at gmail.com
Tue Jan 10 08:11:22 PST 2012

On Tue, Jan 10, 2012 at 1:02 AM, Philippe Normand <philn at igalia.com> wrote:

> 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.

I think there are a couple important use cases to consider for this API:

1. In WebKit2 we have been trying to make the API friendly by doing a
lot of work for the client in the default signal handlers. For
examples in WebKit1, the client needed to implement the web inspector
itself, but now the default signal handler takes care of it.
2. The client should be able to block fullscreen requests and perhaps
even ask the user and go fullscreen asynchronously.
3. The client should be able to augment entering and leaving
fullscreen with custom code.

>From what I can tell your proposal fulfills all three points (though
perhaps the second part of number 2 easily). Thus, I think your API is
a good fit.


More information about the webkit-gtk mailing list