Text inputs should have ATK_ROLE_ENTRY; not ATK_ROLE_AUTOCOMPLETE

Changing the role of text inputs from ATK_ROLE_AUTOCOMPLETE to
ATK_ENTRY with ATK_STATE_SUPPORTS_AUTOCOMPLETION brings us into
alignment with the HTML-AAM and Core-AAM specifications and makes
us consistent with what Gecko does.

Also use GetData().HasState(ax::mojom::State:kAutofillAvailable)
instead of IsFocusedInputWithSuggestions(), as was identified in
bug 865101.

Bug: 980278, 865101
Change-Id: Id2cbab4b97d833768253606da6826b7453005860
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1684256
Reviewed-by: Martin Robinson <mrobinson@igalia.com>
Commit-Queue: Joanmarie Diggs <jdiggs@igalia.com>
Cr-Commit-Position: refs/heads/master@{#674022}
3 files changed