Add APIs for hit test in web engine.