简体   繁体   中英

Analogue of nsIClassInfo for objects created using WebIDL in Firefox (C++)?

I use Gecko SDK to build a C++ tool to inspect web pages (along with their internals) opened in Firefox. I use nsIClassInfo to get information on properties and methods (with their parameters) of inspected objects and it works great. Firefox is now moving to the usage of WebIDL and it removes class info for converted objects. Is there a similar way to get full information about the WebIDL interfaces at run-time using C++ code?

OwningNonNull fits the bill:

OwningNonNull is a struct declared in BindingUtils.h and exported to mozilla/dom/BindingUtils.h that is used to represent non-null C++ objects and holds a strong reference to them. It has a conversion operator that produces T&.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM