My theory is that one's Java code could override the JavaScript callbacks 
(defined at https://fullscreen.spec.whatwg.org, such as 
"element.requestFullscreen()" and "document.exitFullscreen()") and make the 
Stage go full screen and possibly do JavaScript on the element to style it with 
"width=100%;height=100%;".

So, if WebKit took the requestFullscreen() call, then Java could override it 
with application explicit customized support, and then WebView would have 
"implemented" full screen mode (by allowing Java applications to get the 
necessary notification hooks).

Boyd

-----Original Message-----
From: openjfx-dev [mailto:openjfx-dev-boun...@openjdk.java.net] On Behalf Of 
Dr. Michael Paus
Sent: January 5, 2016 7:35 AM
To: openjfx-dev@openjdk.java.net
Subject: Re: Full Screen Mode in JavaFX WebView

If I navigate with my WebView to a page with an embedded video player, 
like for example youtube,
and I then hit the full-screen button of this player how would my 
application know that the web page
would now like to be shown in full-screen mode, so that I can handle 
that in the way you explained?

Am 05.01.16 um 16:21 schrieb Kevin Rushforth:
> Thank you for filing the RFE. Since WebView is an embedded component 
> in a JavaFX scene graph, I'm not sure how easily we can (or whether we 
> want to) implement browser full screen, but we can take a look at it 
> and see whether it makes sense as a future enhancement.
>
> Note that a JavaFX application Stage can become full-screen via 
> Stage.setFullScreen(true). If you set up your scene graph with a 
> StackPane as the root and a WebView node is the only child of the 
> root, then you should be able to accomplish the same thing.
>
> -- Kevin
>
>
> BoydEdmondson-NebulaSoftware wrote:
>> http://bugs.java.com, ID's of JI-9028282 and JI-9028283.
>>
>> Boyd
>>
>> -----Original Message-----
>> From: BoydEdmondson-NebulaSoftware Sent: January 5, 2016 5:31 AM
>> To: 'Guru Hb'
>> Cc: 'openjfx-dev@openjdk.java.net'
>> Subject: RE: Full Screen Mode in JavaFX WebView
>>
>> setPrefWidth/Height() do not help.
>>
>> I submitted a request for enhancement to support 
>> https://fullscreen.spec.whatwg.org.
>> I submitted a bug for WebView hanging on 
>> http://browserbench.org/JetStream compliance test.
>>
>> Boyd
>>
>> -----Original Message-----
>> From: BoydEdmondson-NebulaSoftware Sent: January 4, 2016 8:36 AM
>> To: 'Guru Hb'
>> Cc: openjfx-dev@openjdk.java.net
>> Subject: RE: Full Screen Mode in JavaFX WebView
>>
>> I'll give that a try, thanks.
>>
>> The application works fine in all other browsers I've tested. It just 
>> fails in WebView.  I'll log defects as you suggest.
>>
>> Boyd
>>
>> -----Original Message-----
>> From: Guru Hb [mailto:guru...@oracle.com] Sent: January 4, 2016 8:33 AM
>> To: BoydEdmondson-NebulaSoftware
>> Cc: openjfx-dev@openjdk.java.net
>> Subject: RE: Full Screen Mode in JavaFX WebView
>>
>> Please see comments embedded
>> -----Original Message-----
>> From: BoydEdmondson-NebulaSoftware 
>> [mailto:boydedmond...@nebulasoftware.com] Sent: Monday, January 04, 
>> 2016 7:01 PM
>> To: openjfx-dev@openjdk.java.net
>> Subject: Full Screen Mode in JavaFX WebView
>>
>> I have a custom Java application that uses JavaFX WebView to create a 
>> web browser (which uses WebKit).  I am trying to get the browser full 
>> screen mode to work (https://fullscreen.spec.whatwg.org/).
>>
>>
>>
>> How can I get full screen mode to work in WebKit?
>> [WebView is an Embedded component and current it doesn't have full 
>> screen context menu (Like what we see in browser). WebView exposes 
>> two api setPrefWidth  & setPrefHeight, you can try setting it to max 
>> allowable view port size based on screen resolution. In addition (But 
>> I don't suggest), set the stage or group border to 0. But do NOTE 
>> that there won't be scroll bars visible, But you can drag the webpage]
>>
>>
>> I'm also trying to get WebKit's Web Inspector to work in my browser 
>> to help me debug this issue.  How can I activate Web Inspector in 
>> JavaFX WebView?
>> [Sorry, Web Inspector is not enabled in this port (Webkit port of 
>> JavaFX), alternatively you could  debug the application on Chrome or 
>> Safari. If you find a difference in the Rendering, JavaScript or 
>> other defect, feel free to log a defect ref 
>> https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report]
>> Thanks for any information.

Reply via email to