We don't have a guide to explain how to add a feature to Chromium that is exposed through JavaScript and the DOM. I'm willing to bet that others have written such things, though.
In short, you'll need to add code into the web bindings for the API you want, and then plumb those bindings through C++ into the library that you want to expose. This likely means you'll need to add a few files to some existing targets (for the bindings), register those, and then have those targets call into your library.
That's about the level of detail I have the time to offer at this point, I'm afraid. Maybe others can take it from here, or point at tutorials for this sort of thing.
I hope I've been able to help at least some,
-- Dirk