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

Issue 798673002: Use 0.2f opacity only when the shadow animation is applied. (Closed)

Created:
6 years ago by oshima
Modified:
6 years ago
Reviewers:
James Cook, sadrul
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use 0.2f opacity only when the shadow animation is applied. The opacity stays 0.2f if the window is created and shown in inactive state because the opacity is set back to 1.0f only when the animation is applied. This CL uses 1.0f opacity as initial opacity and when transitioning from/to small shadow. BUG=433574 TEST=manual test. See the bug for repro step. Committed: https://crrev.com/2f994844a6cdf6977e8960becb8dd5e94398a973 Cr-Commit-Position: refs/heads/master@{#308187}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -21 lines) Patch
M ui/wm/core/shadow.cc View 1 2 6 chunks +11 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
oshima
James, you seems to be the author of the original code. Could you please take ...
6 years ago (2014-12-11 18:57:05 UTC) #2
James Cook
Are you sure this is right? Do the underlying art assets have transparency? I seem ...
6 years ago (2014-12-11 19:53:17 UTC) #3
oshima
On 2014/12/11 19:53:17, James Cook wrote: > Are you sure this is right? Do the ...
6 years ago (2014-12-11 20:38:22 UTC) #4
James Cook
LGTM with nit Yep, that's how it's supposed to work. I remember now. https://codereview.chromium.org/798673002/diff/1/ui/wm/core/shadow.cc File ...
6 years ago (2014-12-11 22:34:04 UTC) #5
oshima
sadrul -> owners
6 years ago (2014-12-12 21:22:16 UTC) #7
oshima
https://codereview.chromium.org/798673002/diff/1/ui/wm/core/shadow.cc File ui/wm/core/shadow.cc (right): https://codereview.chromium.org/798673002/diff/1/ui/wm/core/shadow.cc#newcode16 ui/wm/core/shadow.cc:16: const float kActiveShadowOpacity = 1.0f; On 2014/12/11 22:34:04, James ...
6 years ago (2014-12-12 21:23:45 UTC) #8
sadrul
lgtm
6 years ago (2014-12-12 21:26:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/798673002/40001
6 years ago (2014-12-12 21:34:01 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-12-12 22:52:38 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-12 22:53:35 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2f994844a6cdf6977e8960becb8dd5e94398a973
Cr-Commit-Position: refs/heads/master@{#308187}

Powered by Google App Engine
This is Rietveld 408576698