Abstract over JS->Java conversion for EventDispatcher
Categories
(GeckoView :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: nika, Assigned: nika)
Details
Attachments
(1 file)
This is a bug to refactor how we transform JS values to/from Java values in EventDispatcher.
Currently this is done through manual JSAPI calls building Java objects and vice-versa in the EventDispatcher.cpp file. This patch changes it to instead use a shared data type abstraction, "GeckoViewData". This acts as an interface which a JS producer can pipe data into, and then a Java consumer can read data from to build the corresponding Java objects without extra allocations or overhead.
The idea behind adding an abstraction like this is to also offer a CoreFoundation backend which can be used by the iOS EventDispatcher backend. In the future, if C++ components need to pass data to/from the embedder using EventDispatcher as well, this could also be used as part of a generic API to allow that to happen.
Assignee | ||
Comment 1•9 days ago
|
||
Description
•