Closed
Bug 856373
Opened 12 years ago
Closed 12 years ago
WebIDL-ify Gamepad events
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: ted, Assigned: dzbarsky)
References
Details
Attachments
(4 files)
|
19.63 KB,
patch
|
smaug
:
review-
|
Details | Diff | Splinter Review |
|
1.51 KB,
text/plain
|
Details | |
|
2.50 KB,
text/plain
|
Details | |
|
2.92 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
This is harder than just changing the Gamepad interface to WebIDL because it relies on WebIDL for generated events, bug 847611.
| Reporter | ||
Comment 1•12 years ago
|
||
bug 847611 added .webidl versions of the event interfaces, but the xpidl ones still exist for the time being.
| Assignee | ||
Comment 2•12 years ago
|
||
We're still generating some unnecessary boilerplate for derived events, but it's probably not worth complicating the code to avoid.
Comment 3•12 years ago
|
||
Could you upload also the generated files.
They are in <objdir>/dom/bindings/<YourEvent>.[h|cpp]
| Assignee | ||
Comment 4•12 years ago
|
||
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Updated•12 years ago
|
Attachment #803174 -
Attachment mime type: text/x-chdr → text/plain
| Reporter | ||
Comment 6•12 years ago
|
||
I believe the events were the only things keeping nsIDOMGamepad.idl alive as well, since the API was converted to WebIDL.
Comment 7•12 years ago
|
||
Comment on attachment 803167 [details] [diff] [review]
gamepadevents
I guess just including config.getDescriptor(parent, False).headerFile should work, and nsDOMEvent.h can be dropped.
Attachment #803167 -
Flags: review?(bugs) → review+
Comment 8•12 years ago
|
||
Comment on attachment 803167 [details] [diff] [review]
gamepadevents
Er, wait
Attachment #803167 -
Flags: review+ → review-
Comment 9•12 years ago
|
||
The patch doesn't initialize members in the parent.
| Assignee | ||
Comment 10•12 years ago
|
||
Attachment #803197 -
Flags: review?(bugs)
Comment 11•12 years ago
|
||
Comment on attachment 803197 [details] [diff] [review]
Init parent members
Yeah, this should do it. Tiny bit duplication in the generated code, but ok.
Make sure to check the generated code, also that nsDOMEvent is included when needed (though the code just shouldn't compile if it is missing)
Attachment #803197 -
Flags: review?(bugs) → review+
| Assignee | ||
Comment 12•12 years ago
|
||
Comment 13•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•