title: How do you extend the JavaScript API with custom methods that have access to native code in Chromium
body: <p>I am making a custom build of Chromium to get access to speech to text functionality in a custom way and am not sure how to expose access to a new native method through JavaScript.</p>
  
  <p>In other versions of WebKit there are methods like addToJavaScriptWindowObject (that is in Qt) but I am not sure how to do the same thing in Chromium.</p>