Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Issue 849693006: Allow new zoom bubble to override current one. (Closed)

Created:
5 years, 11 months ago by wjmaclean
Modified:
5 years, 10 months ago
CC:
chromium-reviews, fsamuel, raymes
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow new zoom bubble to override current one. 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 Committed: https://crrev.com/a95ea7031e472fd5d0968955989c963381dfaf5f Cr-Commit-Position: refs/heads/master@{#313564}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Re-use existing bubble if possible. #

Patch Set 3 : Close existing bubble_ completely before proceeding. #

Patch Set 4 : Erik's suggestion. #

Patch Set 5 : Use kAnimateNone, make 10.6 friendly. #

Total comments: 2

Patch Set 6 : Remove space. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm View 1 2 3 4 4 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (4 generated)
wjmaclean
sky@ - I thought I'd start the review process with you given your knowledge of ...
5 years, 11 months ago (2015-01-22 18:45:41 UTC) #2
sky
https://codereview.chromium.org/849693006/diff/1/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm File chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm (right): https://codereview.chromium.org/849693006/diff/1/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm#newcode65 chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm:65: bubble_ = [[ZoomBubbleController alloc] initWithParentWindow:[field window] This seems like ...
5 years, 11 months ago (2015-01-22 20:40:56 UTC) #3
wjmaclean
I've uploaded a new patch that re-uses the current bubble if it exists.
5 years, 11 months ago (2015-01-22 22:03:31 UTC) #4
sky
I don't know enough about the cocoa side to know if the code works ok ...
5 years, 11 months ago (2015-01-23 00:38:39 UTC) #6
rohitrao (ping after 24h)
What happens if you call [bubble_ onZoomChanged] when bubble_ already exists? Does that provide the ...
5 years, 11 months ago (2015-01-23 14:11:01 UTC) #7
wjmaclean
On 2015/01/23 14:11:01, rohitrao wrote: > What happens if you call [bubble_ onZoomChanged] when bubble_ ...
5 years, 11 months ago (2015-01-23 14:19:38 UTC) #8
wjmaclean
Please ignore #c8 ... I hit send before I had a chance to type a ...
5 years, 11 months ago (2015-01-23 14:20:45 UTC) #9
wjmaclean
Ok, here goes ... > What happens if you call [bubble_ onZoomChanged] when bubble_ already ...
5 years, 11 months ago (2015-01-23 14:42:59 UTC) #10
wjmaclean
On 2015/01/23 14:42:59, wjmaclean wrote: > Ok, here goes ... > > > What happens ...
5 years, 11 months ago (2015-01-23 14:50:12 UTC) #11
rohitrao (ping after 24h)
Some notes from our IM discussion: When you click on the pdf zoom button for ...
5 years, 11 months ago (2015-01-23 20:52:13 UTC) #13
wjmaclean
On 2015/01/23 20:52:13, rohitrao wrote: > Some notes from our IM discussion: > > When ...
5 years, 11 months ago (2015-01-23 21:46:07 UTC) #14
erikchen
tl dr: The implementation of ShowBubble() should nuke the old bubble, and then show a ...
5 years, 11 months ago (2015-01-23 22:30:42 UTC) #15
wjmaclean
PTAL I think this is what you described, but I've never done a property in ...
5 years, 11 months ago (2015-01-27 01:16:05 UTC) #16
erikchen
You did the property right. lgtm. Over to rohit@ for an OWNER review.
5 years, 11 months ago (2015-01-27 01:23:10 UTC) #17
wjmaclean
On 2015/01/27 01:23:10, erikchen wrote: > You did the property right. lgtm. > > Over ...
5 years, 11 months ago (2015-01-27 18:15:22 UTC) #18
erikchen
On 2015/01/27 18:15:22, wjmaclean wrote: > On 2015/01/27 01:23:10, erikchen wrote: > > You did ...
5 years, 11 months ago (2015-01-27 19:00:27 UTC) #19
wjmaclean
On 2015/01/27 19:00:27, erikchen wrote: > On 2015/01/27 18:15:22, wjmaclean wrote: > > On 2015/01/27 ...
5 years, 11 months ago (2015-01-27 19:25:35 UTC) #20
wjmaclean
On 2015/01/27 19:25:35, wjmaclean wrote: > Does the order of setting the allowAnimation property and ...
5 years, 11 months ago (2015-01-27 19:38:39 UTC) #21
erikchen
On 2015/01/27 19:38:39, wjmaclean wrote: > On 2015/01/27 19:25:35, wjmaclean wrote: > > Does the ...
5 years, 11 months ago (2015-01-27 19:43:24 UTC) #22
wjmaclean
On 2015/01/27 19:43:24, erikchen wrote: > On 2015/01/27 19:38:39, wjmaclean wrote: > > On 2015/01/27 ...
5 years, 10 months ago (2015-01-28 17:11:14 UTC) #23
rohitrao (ping after 24h)
LGTM What happens if you open a zoom bubble and then press either the + ...
5 years, 10 months ago (2015-01-28 17:57:37 UTC) #24
wjmaclean
Yes, we do create a new bubble that animates in. I think it looks ok, ...
5 years, 10 months ago (2015-01-28 18:51:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/849693006/100001
5 years, 10 months ago (2015-01-28 18:52:56 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-01-28 19:44:58 UTC) #28
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/a95ea7031e472fd5d0968955989c963381dfaf5f Cr-Commit-Position: refs/heads/master@{#313564}
5 years, 10 months ago (2015-01-28 19:45:53 UTC) #29
wjmaclean
5 years, 10 months ago (2015-01-29 20:55:05 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/867183006/ by wjmaclean@chromium.org.

The reason for reverting is: The changes in this CL are causing a crash:
crbug.com/453564.

Powered by Google App Engine
This is Rietveld 408576698