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

Issue 1965193002: [Mac][Material Design] Fix ghosting of cast and other extension icons. (Closed)

Created:
4 years, 7 months ago by shrike
Modified:
4 years, 7 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac][Material Design] Fix ghosting of cast and other extension icons. Chrome Mac uses the ToolbarButton class to add extension buttons to the toolbar, and calls setImage: to set the button's default image. However under Material Design the ToolbarButton class sets images for several states (e.g. hover, pressed) - the result is double-drawing of the default icon. This cl changes ToolbarButton to store the setImage: icon in an ivar, which prevents the double-drawing but also makes the icon accessible for later use. This cl also fixes a problem where the default icon could be drawn in a different location for the default state than in the other states, causing the icon to appear to shift as you mouse over the button. R=avi@chromium.org BUG=593796 Committed: https://crrev.com/9a51b633fca04015d122b763fd70ae216f65d30a Cr-Commit-Position: refs/heads/master@{#392964}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -30 lines) Patch
M chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_button_cocoa.mm View 3 chunks +68 lines, -30 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
shrike
PTAL
4 years, 7 months ago (2016-05-11 00:26:12 UTC) #1
Avi (use Gerrit)
lgtm
4 years, 7 months ago (2016-05-11 14:57:02 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1965193002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1965193002/1
4 years, 7 months ago (2016-05-11 16:33:13 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-11 17:12:43 UTC) #5
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 17:15:01 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9a51b633fca04015d122b763fd70ae216f65d30a
Cr-Commit-Position: refs/heads/master@{#392964}

Powered by Google App Engine
This is Rietveld 408576698