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

Issue 1418563016: Use the new DrawHighlight() helper to replace GlowHoverController::Draw(). (Closed)

Created:
5 years, 1 month ago by Peter Kasting
Modified:
5 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the new DrawHighlight() helper to replace GlowHoverController::Draw(). This also makes a behavioral change: we now draw the hover effect for background tabs even when there is a custom theme. In testing, I couldn't find a reason to exclude custom themes; drawing the hover effect works fine and is as helpful as it is on the default theme. BUG=none TEST=none Committed: https://crrev.com/44f92d1b16b0d3b67f53469be5aa205e58cb0748 Cr-Commit-Position: refs/heads/master@{#358012}

Patch Set 1 #

Patch Set 2 : Correct conditional #

Total comments: 3

Patch Set 3 : Nuke #includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -52 lines) Patch
M chrome/browser/ui/views/tabs/tab.cc View 1 2 chunks +12 lines, -3 lines 0 comments Download
M ui/views/controls/glow_hover_controller.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/views/controls/glow_hover_controller.cc View 1 2 2 chunks +5 lines, -45 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Peter Kasting
https://codereview.chromium.org/1418563016/diff/20001/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/1418563016/diff/20001/chrome/browser/ui/views/tabs/tab.cc#newcode1231 chrome/browser/ui/views/tabs/tab.cc:1231: const SkAlpha hover_alpha = hover_controller_.GetAlpha(); If you're wondering why ...
5 years, 1 month ago (2015-11-04 23:47:10 UTC) #2
sky
LGTM https://codereview.chromium.org/1418563016/diff/20001/ui/views/controls/glow_hover_controller.cc File ui/views/controls/glow_hover_controller.cc (right): https://codereview.chromium.org/1418563016/diff/20001/ui/views/controls/glow_hover_controller.cc#newcode7 ui/views/controls/glow_hover_controller.cc:7: #include "third_party/skia/include/effects/SkGradientShader.h" nit: nuke any includes that are ...
5 years, 1 month ago (2015-11-05 03:27:16 UTC) #3
Peter Kasting
https://codereview.chromium.org/1418563016/diff/20001/ui/views/controls/glow_hover_controller.cc File ui/views/controls/glow_hover_controller.cc (right): https://codereview.chromium.org/1418563016/diff/20001/ui/views/controls/glow_hover_controller.cc#newcode7 ui/views/controls/glow_hover_controller.cc:7: #include "third_party/skia/include/effects/SkGradientShader.h" On 2015/11/05 03:27:16, sky wrote: > nit: ...
5 years, 1 month ago (2015-11-05 06:25:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418563016/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418563016/40001
5 years, 1 month ago (2015-11-05 06:25:32 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-05 07:36:31 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 07:37:27 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/44f92d1b16b0d3b67f53469be5aa205e58cb0748
Cr-Commit-Position: refs/heads/master@{#358012}

Powered by Google App Engine
This is Rietveld 408576698