Bug 1865896 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

There are several places in media that need a function to convert an enum item to string, e.g.,
- [dom/media/webcodecs/DecoderAgent](https://searchfox.org/mozilla-central/rev/5134f3f1c7794fcff1bde59dc7b4ae65cc460919/dom/media/webcodecs/DecoderAgent.cpp#455)
- [dom/media/autoplay/GVAutoplayRequestUtils](https://searchfox.org/mozilla-central/rev/381c3f18a1896792e23a9503c1904aedac19aa06/dom/media/autoplay/GVAutoplayPermissionRequest.cpp#31)
- [dom/media/AudioConfig](https://searchfox.org/mozilla-central/rev/5134f3f1c7794fcff1bde59dc7b4ae65cc460919/dom/media/AudioConfig.cpp#296)

I believe there are lots of these functions in gecko. It's better to automatically generate them instead of adding them every time.
There are many places in media that need a function to convert an enum item to string, e.g.,
- [dom/media/webcodecs/DecoderAgent](https://searchfox.org/mozilla-central/rev/5134f3f1c7794fcff1bde59dc7b4ae65cc460919/dom/media/webcodecs/DecoderAgent.cpp#455)
- [dom/media/autoplay/GVAutoplayRequestUtils](https://searchfox.org/mozilla-central/rev/381c3f18a1896792e23a9503c1904aedac19aa06/dom/media/autoplay/GVAutoplayPermissionRequest.cpp#31)
- [dom/media/AudioConfig](https://searchfox.org/mozilla-central/rev/5134f3f1c7794fcff1bde59dc7b4ae65cc460919/dom/media/AudioConfig.cpp#296)

I believe there are lots of these functions in gecko. It's better to automatically generate them instead of adding them every time.
There are many places in media that need a function to convert an enum item to string, e.g.,
- [dom/media/webcodecs/DecoderAgent](https://searchfox.org/mozilla-central/rev/5134f3f1c7794fcff1bde59dc7b4ae65cc460919/dom/media/webcodecs/DecoderAgent.cpp#455)
- [dom/media/autoplay/GVAutoplayRequestUtils](https://searchfox.org/mozilla-central/rev/381c3f18a1896792e23a9503c1904aedac19aa06/dom/media/autoplay/GVAutoplayPermissionRequest.cpp#31)
- [dom/media/AudioConfig](https://searchfox.org/mozilla-central/rev/5134f3f1c7794fcff1bde59dc7b4ae65cc460919/dom/media/AudioConfig.cpp#296)

I believe there are lots of these functions in gecko. It's better to automatically generate them instead of adding them every time we need.

Back to Bug 1865896 Comment 0