Thanks Thomas. It's strange that signature On 7 October 2015 at 11:40, Thomas Broyer <[email protected]> wrote:
> JSNI: the first "()" is part of the method signature (formal parameters), > the second one is for calling the method (actual argument values). > > > On Wednesday, October 7, 2015 at 5:58:50 PM UTC+2, Juan Pablo Gardella > wrote: >> >> Do you know why "supportsKeysInFullScreenMode()()" requires double '()'? >> >> On 7 October 2015 at 09:49, Vassilis Virvilis <[email protected]> wrote: >> >>> Obviously you will need to substitute >>> @com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()() >>> with true if you want the keyboard to work in chrome in fullscreen mode >>> >>> Vassilis >>> >>> On Wed, Oct 7, 2015 at 5:46 PM, Vassilis Virvilis <[email protected]> >>> wrote: >>> >>>> Discaimer: This will make one element to go fullscreen - if you want >>>> the full page to go full screen you will need to specify body. This is >>>> equivalent of the HTML video player on youtube going fullscreen, >>>> >>>> Known problems with this: >>>> >>>> - Safari: Keyboard on fullscreen mode is not working for security >>>> reasons >>>> - IOS Safari: Fullscreen is not working. You have to accept it is a >>>> fact of mac life. >>>> >>>> >>>> I am using this: >>>> >>>> public static native void toggleFullScreen(Element element) /*-{ >>>> var fullScreenElement = ($doc.fullScreenElement >>>> || $doc.mozFullScreenElement || >>>> $doc.webkitFullscreenElement || $doc.msFullscreenElement); >>>> >>>> // >>>> if (fullScreenElement == null) { >>>> if (element.requestFullscreen) { >>>> element.requestFullscreen(); >>>> } else if (element.mozRequestFullScreen) { >>>> element.mozRequestFullScreen(); >>>> } else if (element.webkitRequestFullScreen) { >>>> if >>>> (@com.biovista.lib.gwt.client.Autoconf::supportsKeysInFullScreenMode()()) >>>> element >>>> >>>> .webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT); >>>> else >>>> element.webkitRequestFullScreen(); >>>> } else if (element.msRequestFullscreen) { >>>> element.msRequestFullscreen(); >>>> } >>>> } else if (fullScreenElement == element) { >>>> if (element.requestFullscreen) { >>>> $doc.cancelFullscreen(); >>>> } else if (element.mozRequestFullScreen) { >>>> $doc.mozCancelFullScreen(); >>>> } else if (element.webkitRequestFullScreen) { >>>> $doc.webkitCancelFullScreen(); >>>> } else if (element.msRequestFullscreen) { >>>> $doc.msExitFullscreen(); >>>> } >>>> } >>>> }-*/; >>>> >>>> >>>> On Wed, Oct 7, 2015 at 5:35 PM, NewbieGwtUser <[email protected]> >>>> wrote: >>>> >>>>> if it works with JSNI API, could you please give me an example how to >>>>> integrate it into my appli (wether in my host html page or within the java >>>>> code of the uibinder). >>>>> >>>>> >>>>> >>>>> Le mercredi 7 octobre 2015 16:26:10 UTC+2, Thomas Broyer a écrit : >>>>>> >>>>>> If you mean "going fullscreen", there's an API for that < >>>>>> https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API> >>>>>> (see also browser support and known issues at >>>>>> http://caniuse.com/#feat=fullscreen ) >>>>>> With GWT, you'll have to use JSNI to call those functions. >>>>>> >>>>>> On Wednesday, October 7, 2015 at 4:18:08 PM UTC+2, NewbieGwtUser >>>>>> wrote: >>>>>>> >>>>>>> Hello everybody, >>>>>>> >>>>>>> Actually I'm newbie in developing with gwt, and I have to add a >>>>>>> "full screen mode" button to my gwt app >>>>>>> and am looking for a way to fire the F11 Event. >>>>>>> >>>>>>> So I created a button to which I associated a UiHandler: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> private final int F11_KEY = 122; >>>>>>> >>>>>>> @UiHandler("Button") >>>>>>> public void onKeyButtonClick(ClickEvent event){ >>>>>>> Document.get().createKeyPressEvent(false, false, false, false, >>>>>>> F11_KEY); >>>>>>> } >>>>>>> >>>>>>> but that didn't work for me, >>>>>>> >>>>>>> if someone could help me find the solution, I'll be very grateful. >>>>>>> >>>>>>> >>>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "GWT Users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to >>>>> [email protected]. >>>>> Visit this group at http://groups.google.com/group/google-web-toolkit. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Vassilis Virvilis >>>> >>> >>> >>> >>> -- >>> Vassilis Virvilis >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "GWT Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected] >>> . >>> Visit this group at http://groups.google.com/group/google-web-toolkit. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "GWT Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
