• Aaron Leventhal's avatar
    Omnibox suggestions that are friendly to non-Mac screen readers · c9de1bfb
    Aaron Leventhal authored
    Provide friendly-sounding suggestions that are more efficient for screen reader use.
    For example, read the title of a document before the URL. An example of a friendly
    suggestion would be "Gmail https://mail.google.com location from history".
    
    In order to get the friendly suggestions to be announce or shown on a Braille display,
    the textfield's accessible text value is replaced with the friendly text, rather than
    containing the URL only. If the user begins to edit the text or arrow through it, the
    accessible text/value is returned to the plain URL or search text.
    
    In addition, incoming and outgoing cursor/selection offsets are corrected so that
    assistive technologies can set the location of the cursor (for cursor routing),
    or retrieve the actual text at the current caret position. The caret/selection
    indices are offset by the amount of friendly text inserted before the actual
    text being shown in the text box.
    
    Bug: 785436
    Change-Id: I7fb9071c2df1a4ab188bc8e7b7001396578b1950
    Reviewed-on: https://chromium-review.googlesource.com/784591
    Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521769}
    c9de1bfb
omnibox_view_views.h 11.8 KB