platform specialities

2017-07-23 Thread Enrico Weigelt, metux IT consult
Hi folks, I'm seeing lots of things like #ifdef XP_WIN etc. Pretty often for simple things like directory delimiters, some missing standard types or functions, etc. Shouldn't things belong into NSPR ? --mtx ___ dev-platform mailing list

Re: who uses idl stuff

2017-07-23 Thread Enrico Weigelt, metux IT consult
On 24.07.2017 02:18, Boris Zbarsky wrote: Hi, Brief summary. IDL: 1) Generates xptcall information for xpconnect to allow calling from JS and into JS (via synthetic vtables). 2) Generates headers that declare pure virtuals. 3) Is used for defining XPCOM interfaces. (you can do just #2

Re: who uses idl stuff

2017-07-23 Thread Boris Zbarsky
On 7/23/17 9:58 PM, Enrico Weigelt, metux IT consult wrote: what's the difference between idl and webidl ? Brief summary. IDL: 1) Generates xptcall information for xpconnect to allow calling from JS and into JS (via synthetic vtables). 2) Generates headers that declare pure virtuals. 3)

Re: Keyboard APZ has landed on Inbound

2017-07-23 Thread Ryan Hunt
We will not do keyboard APZ, even if the event listener is marked passive. Passive only restricts the use of preventDefault, and we also care about whether the event listener changes the focus or selection of a page. An example where this matters would be a page with a key listener that sets

Re: who uses idl stuff

2017-07-23 Thread Enrico Weigelt, metux IT consult
On 24.07.2017 00:11, Enrico Weigelt, metux IT consult wrote: what's the difference between idl and webidl ? I've noticed that webidl's seem to support preprocessor directives (eg. #ifdef), while the others dont. --mtx ___ dev-platform mailing list

Re: who uses idl stuff

2017-07-23 Thread Enrico Weigelt, metux IT consult
On 23.07.2017 18:15, Botond Ballo wrote: could anyone please give me some insight, where the the IDLs (and the code generated from them) are actually used ? Javascript bindings ? They are typically used as an interface between C++ and JS code. Ah, what I've already suspected. While trying

Re: who uses idl stuff

2017-07-23 Thread Botond Ballo
> could anyone please give me some insight, where the the IDLs > (and the code generated from them) are actually used ? > > Javascript bindings ? They are typically used as an interface between C++ and JS code. As an example, consider nsIDocShell.idl [1]. This defines an interface named

Re: Keyboard APZ has landed on Inbound

2017-07-23 Thread Ben Kelly
On Sat, Jul 22, 2017 at 2:05 AM, Ryan Hunt wrote: > Keyboard APZ can't be used in every case. Currently it's disabled in the > presense of key event listeners, as they can preventDefault scrolling and > that > is a non-negotiable part of the web. > Do we do keyboard APZ if the

Re: More Rust code

2017-07-23 Thread David Teller
Thanks for starting this conversation. I'd love to be able to use more Rust in Firefox. In SpiderMonkey, the main blocker I encounter is interaction with all the nice utility classes we have in C++, in particular templatized ones. Also, for the rest of Gecko, my main blocker was the lack of

Re: how exactly are the P*.h files generated ?

2017-07-23 Thread Kan-Ru Chen
Hi! On Sun, Jul 23, 2017, at 03:42 PM, Enrico Weigelt, metux IT consult wrote: > Hi folks, > > I've got some trouble w/ regenarating > ./obj-thunderbird/ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h > > > I had to change ./mozilla/dom/ipc/ContentParent.h to ifdef-out some > methods

how exactly are the P*.h files generated ?

2017-07-23 Thread Enrico Weigelt, metux IT consult
Hi folks, I've got some trouble w/ regenarating ./obj-thunderbird/ipc/ipdl/_ipdlheaders/mozilla/dom/PContentParent.h I had to change ./mozilla/dom/ipc/ContentParent.h to ifdef-out some methods (trying to build tbird w/o media stuff), but PContentParent.h still contains these functions (and no

who uses idl stuff

2017-07-23 Thread Enrico Weigelt, metux IT consult
Hi folks, could anyone please give me some insight, where the the IDLs (and the code generated from them) are actually used ? Javascript bindings ? --mtx ___ dev-platform mailing list dev-platform@lists.mozilla.org