O Mér, 01-07-2015 ás 18:48 +0000, youenn fablet escribiu:
> One way may be to make 'size' an attribute, cachable and returning a 
> JSFunction wrapping a C++ function returning 1. Not sure this will 
> pass signature tests though.

I was thinking of trying this, yes.

> IIUC, 'size' is somehow similar to a C++ static class method. A third
> approach could be to add a 'static' IDL keyword to the binding 
> generator to enable calling static methods of the DOM class. No 
> custom code in that case.

I thought of this too. I will probably go to the first case and then
using that as a use case to extend the bindings with a
"[StaticNonObjectMethod]" idl attribute.

Br.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to