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

Issue 2415453004: [Mac] Don't show tooltip when zoom decoration is hidden. (Closed)

Created:
4 years, 2 months ago by shrike
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Don't show tooltip when zoom decoration is hidden. In Material Design the zoom decoration is hidden when the zoom factor is 100%. When the zoom decoration's tooltip should only be visible when the decoration is visible. R=avi@chromium.org, dbeam@chromium.org BUG=635480 Committed: https://crrev.com/c12fa88b187817e55ad6ccfc0416aec46cfd8314 Cr-Commit-Position: refs/heads/master@{#425389}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review feedback. #

Patch Set 3 : Address test issue. #

Patch Set 4 : Fix tests. #

Total comments: 1

Patch Set 5 : More fixes. #

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

Messages

Total messages: 28 (11 generated)
shrike
PTAL
4 years, 2 months ago (2016-10-12 19:29:56 UTC) #1
Avi (use Gerrit)
LGTM with fix. https://codereview.chromium.org/2415453004/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/2415453004/diff/1/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm#newcode107 chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm:107: tooltip_.reset(vector_icon_id_ == gfx::VectorIconId::VECTOR_ICON_NONE It's equivalent, but ...
4 years, 2 months ago (2016-10-12 19:40:10 UTC) #2
shrike
https://codereview.chromium.org/2415453004/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/2415453004/diff/1/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm#newcode107 chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm:107: tooltip_.reset(vector_icon_id_ == gfx::VectorIconId::VECTOR_ICON_NONE On 2016/10/12 19:40:10, Avi wrote: > ...
4 years, 2 months ago (2016-10-12 20:43:36 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415453004/20001
4 years, 2 months ago (2016-10-12 20:44:12 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/313428)
4 years, 2 months ago (2016-10-12 22:02:33 UTC) #8
shrike
UpdateIfNecessary() only calls ShowAndUpdateUI() if necessary, and part of how it figures this out is ...
4 years, 2 months ago (2016-10-12 23:47:19 UTC) #9
Avi (use Gerrit)
lgtm
4 years, 2 months ago (2016-10-13 01:20:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415453004/40001
4 years, 2 months ago (2016-10-13 17:07:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/314081)
4 years, 2 months ago (2016-10-13 18:16:27 UTC) #14
shrike
avi@ - please take one more look at my changes to get the test to ...
4 years, 2 months ago (2016-10-13 21:30:50 UTC) #17
Dan Beam
lgtm w/suggestion https://codereview.chromium.org/2415453004/diff/60001/chrome/browser/ui/cocoa/location_bar/zoom_decoration_unittest.mm File chrome/browser/ui/cocoa/location_bar/zoom_decoration_unittest.mm (right): https://codereview.chromium.org/2415453004/diff/60001/chrome/browser/ui/cocoa/location_bar/zoom_decoration_unittest.mm#newcode38 chrome/browser/ui/cocoa/location_bar/zoom_decoration_unittest.mm:38: bool IsAtDefaultZoom() const override { return zoom_percent_ ...
4 years, 2 months ago (2016-10-13 21:34:02 UTC) #18
shrike
avi@ - hold off on reviewing anything. I need to make more changes.
4 years, 2 months ago (2016-10-13 21:47:48 UTC) #19
shrike
OK, PTAL
4 years, 2 months ago (2016-10-13 22:22:34 UTC) #20
Avi (use Gerrit)
lgtm
4 years, 2 months ago (2016-10-13 22:26:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415453004/80001
4 years, 2 months ago (2016-10-14 17:20:11 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-14 18:22:24 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 18:25:34 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c12fa88b187817e55ad6ccfc0416aec46cfd8314
Cr-Commit-Position: refs/heads/master@{#425389}

Powered by Google App Engine
This is Rietveld 408576698