Browsing the implementation (gtk, since I am on Debian) and it just occurred to me that perhaps it would not be too crazy to extend the public API of wxWebView to make it easier for an application to add autocomplete capabilities. Is this a good idea/direction?
My first thought was adding three new API methods to wxWebView that would:
- Get a list with all the <input> elements present in the currently loaded page.
For an element we should be able to get its attributes. At a minimum, we would want "id", and "type", and possibly "name" and "autocomplete".
Perhaps an optional "type" argument could be given to return only elements of the given type(s). - Be able to get the current value of any such element given its id. Since the value depends on type, it would return wxVariant or something like it.
- Be able to set a new value for any such element given its id, with the same issue about polymorphism.
Thank you,