• David Black's avatar
    Fix hover state when using ProactiveSuggestionsRichView. · 9c4c2fb3
    David Black authored
    The proactive suggestions entry point times out after a fixed interval.
    When the entry point is hovered over, timeout is paused.
    
    ProactiveSuggestionsRichView is not currently pausing timeout on hover
    because the embedded web contents consume the events causing mouse
    enter/exit to not be received by the embedding view.
    
    To fix this, we'll use an EventMonitor on our views native window to
    make sure we get the events we need to detect hover state.
    
    Bug: b:145056104
    Change-Id: I2588fe119addfe9577963d4c29baf566e9168336
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1938448Reviewed-by: default avatarTao Wu <wutao@chromium.org>
    Commit-Queue: David Black <dmblack@google.com>
    Cr-Commit-Position: refs/heads/master@{#721083}
    9c4c2fb3
proactive_suggestions_rich_view.cc 7.36 KB