DescriptionNo need to suppress ZoomBubble if !window_->IsActive().
In Browser::OnZoomChanged() we currently filter on both (1) the event
having been generated by the active webcontents, and (2) the browser
window being active.
However, the window can receive <ctrl>-<scrollwheel> events even when
it is not active, and these will result in zoom changing without a zoom
bubble being shown.
This CL removes the check for window_->IsActive() so that the zoom
bubble always shows if the zoom changes for the active web contents by
a means other than the wrench menu.
TEST= Open chrome, make window inactive, hover over window and zoom
with the mouse scroll-wheel; the zoom bubble should appear.
BUG=459322
Committed: https://crrev.com/ff3d0f6b28841ec02c2d3555ce0d819fc18fa585
Cr-Commit-Position: refs/heads/master@{#318089}
Patch Set 1 #Patch Set 2 : Only show zoom bubble for zoom event initiator. #Patch Set 3 : Fix test expectations. #Patch Set 4 : Disable zoom notification bubbles in test. #
Total comments: 2
Patch Set 5 : Re-apply initiator changes. #Patch Set 6 : Re-apply fix test expectations. #
Total comments: 4
Patch Set 7 : Re-remove stale comment. #
Messages
Total messages: 30 (7 generated)
|