Closed Bug 1814249 Opened 1 year ago Closed 1 year ago

Reduce boilerplate code needed to define getters methods for settings or events in WebIDL bindings for the WebExtensions API

Categories

(WebExtensions :: General, task, P2)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

Details

(Whiteboard: [addons-jira])

Attachments

(4 files)

As a followup to Bug 1748293 we are considering to introduce a couple small C++ macros to reduce the boilerplate code needed to define each of getters methods for settings and events.

Attachment #9315241 - Attachment description: Bug 1814249 - Introduce a new NS_IMPL_EXTENSION_API_EVENTMGR C++ macro to reduce boilerplate needed for the event manager getter methods. r?willdurand! → Bug 1814249 - Introduce a new NS_IMPL_WEBEXT_EVENTMGR C++ macro to reduce boilerplate needed for the event manager getter methods. r?willdurand!
Attachment #9315242 - Attachment description: Bug 1814249 - Use NS_IMPL_EXTENSION_API_EVENTMGR C++ macro in ExtensionProxy.cpp r?willdurand! → Bug 1814249 - Use NS_IMPL_WEBEXT_EVENTMGR C++ macro in ExtensionProxy.cpp r?willdurand!
Attachment #9315243 - Attachment description: Bug 1814249 - Use NS_IMPL_EXTENSION_API_EVENTMGR C++ macro in ExtensionSetting.cpp r?willdurand! → Bug 1814249 - Use NS_IMPL_WEBEXT_EVENTMGR C++ macro in ExtensionSetting.cpp r?willdurand!
Attachment #9315244 - Attachment description: Bug 1814249 - Introduce a new NS_IMPL_EXTENSION_API_SETTING C++ macro to reduce boilerplate on definiting settings getters. r?willdurand! → Bug 1814249 - Introduce a new NS_IMPL_WEBEXT_SETTING C++ macro to reduce boilerplate on definiting settings getters. r?willdurand!
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/1bc0f11d942c
Introduce a new NS_IMPL_WEBEXT_EVENTMGR C++ macro to reduce boilerplate needed for the event manager getter methods. r=willdurand
https://hg.mozilla.org/integration/autoland/rev/1b5a4589d515
Use NS_IMPL_WEBEXT_EVENTMGR C++ macro in ExtensionProxy.cpp r=willdurand
https://hg.mozilla.org/integration/autoland/rev/8b47bccc2514
Use NS_IMPL_WEBEXT_EVENTMGR C++ macro in ExtensionSetting.cpp r=willdurand
https://hg.mozilla.org/integration/autoland/rev/c94ff53f14a5
Introduce a new NS_IMPL_WEBEXT_SETTING C++ macro to reduce boilerplate on definiting settings getters. r=willdurand
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: