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

Issue 940673002: No need to suppress ZoomBubble if !window_->IsActive(). (Closed)

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

Description

No 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -13 lines) Patch
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M components/ui/zoom/zoom_controller.cc View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
wjmaclean
*tiny* CL - PTAL?
5 years, 10 months ago (2015-02-18 19:42:29 UTC) #1
wjmaclean
*tiny* CL - PTAL? (re-sent since I didn't have you added as reviewer the first ...
5 years, 10 months ago (2015-02-18 19:50:32 UTC) #3
Lei Zhang
lgtm - I changed "we contents" to "webcontents" in the CL description. - It would ...
5 years, 10 months ago (2015-02-18 20:35:02 UTC) #4
wjmaclean
On 2015/02/18 20:35:02, Lei Zhang (Soon to be OOO) wrote: > lgtm > > - ...
5 years, 10 months ago (2015-02-18 21:54:45 UTC) #5
wjmaclean
+ rihitrao@ and erikchen@ This rather simple looking CL seems to be causing ZoomDecorationTest.BubbleAtDefaultZoom to ...
5 years, 10 months ago (2015-02-18 22:02:43 UTC) #6
erikchen
On 2015/02/18 22:02:43, wjmaclean wrote: > + rihitrao@ and erikchen@ > > This rather simple ...
5 years, 10 months ago (2015-02-18 22:10:58 UTC) #7
hcarmona
I wanted to comment on this because I looked at this issue yesterday and wanted ...
5 years, 10 months ago (2015-02-20 00:45:34 UTC) #9
wjmaclean
On 2015/02/20 00:45:34, Hector Carmona wrote: > I wanted to comment on this because I ...
5 years, 10 months ago (2015-02-20 15:47:08 UTC) #10
wjmaclean
On 2015/02/20 15:47:08, wjmaclean wrote: > On 2015/02/20 00:45:34, Hector Carmona wrote: > > > ...
5 years, 10 months ago (2015-02-20 15:53:03 UTC) #11
wjmaclean
@hcarmona - btw, thanks for pointing out the two window behaviour, I hadn't noticed it ...
5 years, 10 months ago (2015-02-20 15:58:46 UTC) #13
wjmaclean
@erikchen - You're likely right that the SetVisible(false) shouldn't be gated on IsDefaultZoom(), though that ...
5 years, 10 months ago (2015-02-20 16:01:41 UTC) #14
wjmaclean
On further investigation, I realize that this test *was relying on the bubble not being ...
5 years, 10 months ago (2015-02-20 22:16:23 UTC) #15
wjmaclean
erikchecn@ and rohitrao@ - PTAL ...
5 years, 10 months ago (2015-02-24 21:10:21 UTC) #17
erikchen
https://codereview.chromium.org/940673002/diff/60001/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm File chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm (right): https://codereview.chromium.org/940673002/diff/60001/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm#newcode90 chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm:90: GetLocationBar()->GetWebContents())->SetShowsNotificationBubble(false); Should this be moved to SetUpOnMainThread? It seems ...
5 years, 10 months ago (2015-02-24 22:41:04 UTC) #18
wjmaclean
https://codereview.chromium.org/940673002/diff/60001/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm File chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm (right): https://codereview.chromium.org/940673002/diff/60001/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm#newcode90 chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm:90: GetLocationBar()->GetWebContents())->SetShowsNotificationBubble(false); On 2015/02/24 22:41:04, erikchen wrote: > Should this ...
5 years, 10 months ago (2015-02-25 15:08:24 UTC) #19
erikchen
lgtm
5 years, 10 months ago (2015-02-25 18:09:11 UTC) #20
wjmaclean
fsamuel@ - can you please do a non-owner's review on zoom_controller.cc (tiny CL)
5 years, 10 months ago (2015-02-25 18:16:24 UTC) #22
rohitrao (ping after 24h)
ui/cocoa LGTM https://codereview.chromium.org/940673002/diff/100001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/940673002/diff/100001/chrome/browser/ui/browser.cc#newcode1941 chrome/browser/ui/browser.cc:1941: // Only show the zoom bubble for ...
5 years, 10 months ago (2015-02-25 18:28:01 UTC) #23
Fady Samuel
lgtm
5 years, 10 months ago (2015-02-25 18:30:01 UTC) #24
wjmaclean
https://codereview.chromium.org/940673002/diff/100001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/940673002/diff/100001/chrome/browser/ui/browser.cc#newcode1941 chrome/browser/ui/browser.cc:1941: // Only show the zoom bubble for zoom changes ...
5 years, 10 months ago (2015-02-25 18:40:12 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/940673002/120001
5 years, 10 months ago (2015-02-25 18:41:53 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-25 19:38:54 UTC) #29
commit-bot: I haz the power
5 years, 10 months ago (2015-02-25 19:39:52 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ff3d0f6b28841ec02c2d3555ce0d819fc18fa585
Cr-Commit-Position: refs/heads/master@{#318089}

Powered by Google App Engine
This is Rietveld 408576698