Re: jsinterop with browser-specific api

2016-09-12 Thread Thomas Broyer
I suppose it'll eventually be in a jsinterop util class but for now you have to use JSNI: https://github.com/gwtproject/gwt/issues/9364 On Monday, September 12, 2016 at 11:03:31 PM UTC+2, Zufar Fakhurtdinov wrote: > > Thank you for answer! Writing it by hand is annoying, but maybe later it >

Re: jsinterop with browser-specific api

2016-09-12 Thread Zufar Fakhurtdinov
Thank you for answer! Writing it by hand is annoying, but maybe later it will be generated. Maybe you know.. How can I use 'in' operator? protected static native boolean pointerLockSupported() /*-{ return 'pointerLockElement' in $wnd.document || 'mozPointerLockElement' in $wnd.document

Re: jsinterop with browser-specific api

2016-09-10 Thread Thomas Broyer
e: >> >> Hi all. I'm trying to understand how can I effective work with jsinterop >> and browser-specific api. >> For example Fullscreen api is mostly work in latest browsers, but methods >> are prefixed. >> >> Before js

Re: jsinterop with browser-specific api

2016-09-09 Thread Thomas Broyer
On Friday, September 9, 2016 at 8:32:08 PM UTC+2, Zufar Fakhurtdinov wrote: > > Hi all. I'm trying to understand how can I effective work with jsinterop > and browser-specific api. > For example Fullscreen api is mostly work in latest browsers, but methods > are prefixed. > &g

jsinterop with browser-specific api

2016-09-09 Thread Kirill Prazdnikov
Doing the same -- 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 google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to

jsinterop with browser-specific api

2016-09-09 Thread Kirill Prazdnikov
But above sample doing the name. Or you can create a baseclss and 3 impl and instantiate the correct one. -- 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

jsinterop with browser-specific api

2016-09-09 Thread Zufar Fakhurtdinov
Hi all. I'm trying to understand how can I effective work with jsinterop and browser-specific api. For example Fullscreen api is mostly work in latest browsers, but methods are prefixed. Before jsinterop I was write something like this: public static native void leaveFullscreen