[OSX] Allow one zoom bubble to override another.
commit84567ceada9f89c8e962d18ab494b1d1bb5a3830
authorwjmaclean <wjmaclean@chromium.org>
Mon, 2 Feb 2015 15:16:10 +0000 (2 07:16 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Feb 2015 15:17:00 +0000 (2 15:17 +0000)
tree04342316bc2984fc4fdbda8fbc996c40fdee7bee
parentfd6e39a034b99a18e68def019c83b7c1a5c6565e
[OSX] Allow one zoom bubble to override another.

At present, if a user changes zoom on OSX while the zoom bubble is
already being shown, the new zoom bubble (with the most up to date
information) is not shown. This CL changes this behaviour by allowing
a new zoom bubble to be created, and replace the existing one.

Example: load a PDF and repeatedly click the zoom +/- controls in the
lower-right corner of the viewer.

BUG=444995

Review URL: https://codereview.chromium.org/886883002

Cr-Commit-Position: refs/heads/master@{#314147}
chrome/browser/ui/cocoa/browser/zoom_bubble_controller.h
chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm
chrome/browser/ui/cocoa/location_bar/zoom_decoration.h
chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm