I am looking for ways to extend Javascript APIs with native objects in the Chrome/Blink architecture.
What I have found so far includes:
1. Extend WebCore bindings by adding new IDLs and cpp implementations to WebCore;
2. Bind new JS APIs through NPAPI plugin;
3. Use NaCL for Chrome?
Is there any other approaches?
Would the v8::Extension work if I only plan to touch the browser code but not the Blink code?
The WebKit has an injected bundle concept that I can write JS extensions from browser side based on JSC APIs but I am not sure if I can do similar things in Blink architecture.