• Aaron Leventhal's avatar
    Prepare for better autofill screen reading experience. · 6299e21a
    Aaron Leventhal authored
    Separate out the different concepts:
    - Suggestions are available or not (call ViewAccessibility::OnInputSuggestionsAvailable or
    OnInputSuggestionsUnavailable). This is now a static so no view is required in case the menu
    for the suggestions has not yet been created.
    - Menu is open -- the AX code now just uses the menustart/end event to track this
    - Menu item is selected -- the AX code now just uses the selection event on a menuitem when
    menus are open
    
    By separating out these concepts, a11y can expose the fake menu item focus only when a menu
    item is actually selected, and indicate when a textfield has suggestions available even
    if the menu popup is not visible.
    
    Bug: 848427
    Change-Id: I4a75c58402d1dd1e5da0368b59f6c9ba7fc8775c
    Reviewed-on: https://chromium-review.googlesource.com/1081022
    Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
    Reviewed-by: default avatarEvan Stade <estade@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Reviewed-by: default avatarFabio Tirelo <ftirelo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#565037}
    6299e21a
view_accessibility.cc 4.37 KB