Boris Zbarsky
c0df2e35a0
Bug 816160. Don't require 'castable':False for prefable bindings with hasXPConnectImpls, and don't require hasXPConnectImpls bindings to be prefable. r=peterv
2012-12-03 11:46:03 -05:00
Ms2ger
418bdd93ec
Merge m-c to m-i.
2012-12-02 11:32:57 +01:00
Ms2ger
9cbcd4aa7a
Bug 802163 - Fix pyflakes warnings in bindings python; r=peterv
2012-12-02 09:59:08 +01:00
Masatoshi Kimura
d427634999
Bug 816487 - Allow all ASCII characters for WebIDL enum. r=bz
2012-12-01 21:23:26 -05:00
Benoit Jacob
d41eaaa3a0
Bug 816187 - make WebIDL accept nullable dictionary retvals; let getContextAttributes's retval be nullable - r=bz
2012-11-30 18:30:05 -05:00
Boris Zbarsky
d9cf3678cc
Bug 812783. Add support for flagging callbacks as worker-only. r=khuey
2012-11-29 11:14:40 -05:00
Eric Faust
4cde2d46f9
Bug 747289 - Part 1/2 - Update Paris bindings to expose DOM constants. r=bz
2012-11-28 16:28:36 -05:00
Boris Zbarsky
5de145e416
Fix up indentation of the generated code for event handler return values. No bug.
2012-11-28 02:33:50 -05:00
Boris Zbarsky
e0facaae90
Bug 767933 part 4. Make 'float' and 'double' types throw on non-finite values. r=khuey,ehsan,bas
2012-11-27 15:32:05 -05:00
Boris Zbarsky
9902632717
Bug 767933 part 2. Implement codegen for 'unrestricted float' and 'unrestricted double', as aliases for float and double for now. r=khuey
2012-11-27 15:32:05 -05:00
Boris Zbarsky
e2971e3210
Bug 812742. Fix sequence codegen to not do AppendElement multiple times by accident. r=peterv
2012-11-27 15:20:40 -05:00
Boris Zbarsky
8fef42994e
Bug 810641. Implement support for variadic callback arguments in WebIDL. r=peterv
2012-11-26 21:14:45 -05:00
Boris Zbarsky
6c53836aa3
Bug 813623. Fix Xrays to actually work correctly for static methods and properties. r=peterv
2012-11-26 21:14:45 -05:00
Peter Van der Beken
3fb06020ff
Fix for bug 814022 (Make instanceof for new DOM bindings work across scopes). r=bz.
2012-11-19 11:59:13 +01:00
Daniel Holbert
41aacf08c9
Bug 811057: Make DeferredFinalizeFunction take a uint32 instead of an int32 as its "slice" parameter. r=peterv
2012-11-21 10:20:32 -08:00
Bobby Holley
a75f5ca4d9
Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
...
If callers want to throw, it's now their responsibility.
2012-11-14 09:56:26 -08:00
Boris Zbarsky
93edcc7097
Bug 810520. Correctly handle static methods and attributes in the NativeProperties structs that Xrays use. r=peterv
...
Note that at this point we actaully do Xrays for all of our various
property types, except in worker code. The real substantive change
here is the change to what usedForXrays returns. The rest is minor
cleanup.
2012-11-13 00:26:55 -08:00
Ryan VanderMeulen
6dd149a122
Backed out de9fff3a523, c567df2244f5, 8e3d976d5dc5, and c7499faaec23 (bug 800915) for bustage.
...
--HG--
extra : rebase_source : c823063bfa31d59d32b3402bd4b458b84b703cd5
2012-11-12 21:43:39 -05:00
Bobby Holley
a575c96c5e
Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
...
If callers want to throw, it's now their responsibility.
2012-11-12 17:35:32 -08:00
Andrew McCreight
30c7820d71
Bug 792090 - Ignore unused result in CGProxy...PresenceChecker. r=bz
2012-11-12 14:21:46 -08:00
Boris Zbarsky
722d581206
Bug 809260. Example codegen should include ErrorResult.h in the header. r=mccr8
2012-11-09 08:24:32 -08:00
Boris Zbarsky
03231584a7
Bug 808698. Set up example codegen for proxy bindings to work correctly. r=jst
2012-11-09 08:24:32 -08:00
Boris Zbarsky
3f363542b4
Bug 796983 followup to address peterv's comments. r=presumably-peterv
2012-11-09 08:24:32 -08:00
Boris Zbarsky
5621c744b0
Bug 807224 followup to address review comments. r=presumably-peterv
2012-11-09 08:24:31 -08:00
Boris Zbarsky
76d46dee13
Bug 807226 part 8. Remove the exceptions for EventHandler in WebIDL codegen. r=smaug
2012-11-09 08:00:25 -08:00
Boris Zbarsky
1dfb1af14b
Bug 807224. Implement native-to-JS conversion for WebIDL unions. r=peterv
2012-11-09 07:59:33 -08:00
Boris Zbarsky
f01c979296
Bug 779048 followup. Add a comment that explains why the assert about exceptionCode being default when invalidEnumValueFatal is false is an ok thing to assert. r=peterv, DONTBUILD
2012-11-09 07:58:33 -08:00
Boris Zbarsky
6d7bbe9aed
Bug 779048 part 10. Start using the new callback codegen in argument and return value conversion. r=peterv,smaug
2012-11-09 07:43:58 -08:00
Boris Zbarsky
abdb1e731e
Bug 779048 part 9. Give JS-to-native conversion an object pointer to work with so it can convert callback objects. r=peterv
2012-11-09 07:43:58 -08:00
Boris Zbarsky
d745a9276e
Bug 779048 part 8. Handling of arguments for callbacks. r=peterv
...
Note that we're now using the array object as the "obj" when wrapping
sequence members, because we don't have an 'obj' around in our
code... and every single existing sequence-of-interfaces consumer
relied on there being an 'obj' floating about.
Also note that I needed to rearrange the various wrapping helpers so
that we can wrap things that are hanging out in const smartpointers or
in const OwningNonNull or in plain object references.
2012-11-09 07:43:58 -08:00
Boris Zbarsky
dcaa56d321
Bug 779048 part 7. Make native-to-JS conversion support doing something other than "return false" on JS exceptions. r=peterv
2012-11-09 07:43:58 -08:00
Boris Zbarsky
7e2dca188e
Bug 779048 part 6. Handling of return values for callbacks. r=peterv
2012-11-09 07:43:58 -08:00
Boris Zbarsky
f7b9a5bdea
Bug 779048 part 5. Make js-to-native conversion support doing something other than "return false" on JS exceptions. r=peterv
2012-11-09 07:43:58 -08:00
Boris Zbarsky
01c98be853
Bug 779048 part 4. Implement basic codegen for callbacks, without handling of arguments or return values yet. r=peterv
2012-11-09 07:43:57 -08:00
Boris Zbarsky
cba09556db
Bug 779048 part 3. Refactor the code we use for generating example declarations a bit so we can reuse it for callbacks. r=peterv
2012-11-09 07:43:57 -08:00
Boris Zbarsky
7bd6f6912f
Bug 779048 part 2. Rearrange how we do our includes and forward-declares to actually work with callbacks and dictionaries sanely. r=peterv
2012-11-09 07:43:57 -08:00
Boris Zbarsky
75b79a780d
Bug 808991. Named getters should get called for indexed properties on objects that don't support indexed properties. r=peterv
2012-11-08 23:48:42 -08:00
Robert O'Callahan
cecf3ae790
Bug 792675. Part 1: Make the URL interface use WebIDL. r=bz
...
--HG--
extra : rebase_source : dbb7a3158b71446930400ad523a2896b6306de40
2012-09-25 15:24:43 +12:00
Robert O'Callahan
9caa3eeb38
Bug 792675. Part 0.6: Handle empty dictionary types in WebIDL bindings. r=bz
...
--HG--
extra : rebase_source : a38a2405d32b76bdef9095398c759346cfc28282
2012-11-07 17:56:55 -05:00
Robert O'Callahan
720f71a0d7
Bug 792765. Part 0.5: Fix WebIDL codegen to avoid emitting QueryInterface when there is no interface prototype object. r=bz
...
--HG--
extra : rebase_source : 7e1df198548d8a4f1b2f2a045f637412a5fe8450
2012-09-25 15:24:43 +12:00
Boris Zbarsky
8b9e634fac
Bug 804738 part 2. Fix codegen for indexed operations to be consistent about the naming of the index argument. r=peterv
2012-11-06 08:01:49 -08:00
Boris Zbarsky
dd4d31b923
Bug 804738 part 1. Fix codegen for named operations to be consistent about the naming of the string argument. r=peterv
2012-11-06 08:00:57 -08:00
Boris Zbarsky
5617a17824
Bug 804635. Make codegen deal with Document not being an external interface but not available in workers even though XMLHttpRequest (which can return or accept Document) is available there. r=peterv
2012-11-05 11:58:04 -05:00
Boris Zbarsky
3138ceecd8
Bug 803519. Require indexed/named getters if we have creators/deleters/setters. r=peterv
2012-11-05 11:58:03 -05:00
Boris Zbarsky
892b323c34
Bug 772869. Make getOwnPropertyNames work correctly for WebIDL proxy bindings. r=peterv,ms2ger
2012-11-05 11:58:03 -05:00
Boris Zbarsky
cee04c4622
Bug 803306. Calling a named creator should not define an expando. r=peterv
2012-11-05 11:58:03 -05:00
Boris Zbarsky
dbf8898dc9
Bug 788225. Implement WebIDL deleters. r=peterv
2012-11-05 11:58:02 -05:00
Boris Zbarsky
1e35c82ae5
Bug 749866 part 4. Generate slightly better code when we know we're null or undefined. r=khuey
2012-11-05 11:58:02 -05:00
Boris Zbarsky
c31dc49516
Bug 749866 part 3. Rejigger overload resolution a bit more so we can tell argument conversion that we know the argument is null or undefined. r=khuey
2012-11-05 11:58:02 -05:00
Boris Zbarsky
72eecce718
Bug 749866 part 2. Simplify the code generated by overload resolution a bit when we have sequences or dates at our distinguishing index. r=khuey
2012-11-05 11:58:02 -05:00