• mohsen's avatar
    Fix long press touch selection on empty text fields · 41355a89
    mohsen authored
    Desired behavior when long press happens on an empty text field is to
    activate touch selection and show the quick menu if there is anything
    available to show in the quick menu. Otherwise, the regular context menu
    should be shown. This was regressed due to changes in context menu
    source type that added LONG_PRESS and LONG_TAP types. In addition to
    fixing this regression, this CL fixes the regression on the new tab page
    that shows an incorrectly placed quick menu instead of the context menu.
    
    BUG=594101
    
    Review-Url: https://codereview.chromium.org/2124913002
    Cr-Commit-Position: refs/heads/master@{#407059}
    41355a89
touch_selection.html 1.06 KB