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

Issue 1064213002: views: Change CardUnmaskPromptViews::FadeOutView opacity to alpha. (Closed)

Created:
5 years, 8 months ago by danakj
Modified:
5 years, 8 months ago
CC:
chromium-reviews, tfarina, rouslan+autofillwatch_chromium.org, estade+watch_chromium.org, enne (OOO), piman, sadrul, sky
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: Change CardUnmaskPromptViews::FadeOutView opacity to alpha. Store an 0-255 alpha value instead of a 0-1 opacity value on the class since that is what we will use for painting. R=pkasting Committed: https://crrev.com/06cf7258babe8e44b904d36ac9beb9a954e985e4 Cr-Commit-Position: refs/heads/master@{#324220}

Patch Set 1 #

Total comments: 2

Patch Set 2 : alpha-view: uint8_t #

Patch Set 3 : alpha-view: SetAlpha #

Patch Set 4 : alpha-view: gfx #

Total comments: 2

Patch Set 5 : alpha-view: between #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -15 lines) Patch
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc View 1 2 3 4 5 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Peter Kasting
You may want to use uint8_t for this change depending on the discussion in the ...
5 years, 8 months ago (2015-04-07 21:45:30 UTC) #2
danakj
https://codereview.chromium.org/1064213002/diff/1/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1064213002/diff/1/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode330 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:330: progress_overlay_->SetOpacity(animation->GetCurrentValue()); The animation value is in the range 0-1. ...
5 years, 8 months ago (2015-04-07 21:47:05 UTC) #3
danakj
Changed alpha_ to a uint8_t.
5 years, 8 months ago (2015-04-07 22:01:54 UTC) #4
Peter Kasting
On 2015/04/07 22:01:54, danakj wrote: > Changed alpha_ to a uint8_t. OK. I'd still like ...
5 years, 8 months ago (2015-04-07 22:09:41 UTC) #5
danakj
Ok PTAL
5 years, 8 months ago (2015-04-07 22:22:32 UTC) #6
Peter Kasting
LGTM with a change https://codereview.chromium.org/1064213002/diff/60001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1064213002/diff/60001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode330 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:330: uint8_t alpha = gfx::ToRoundedInt(255 * ...
5 years, 8 months ago (2015-04-07 22:29:43 UTC) #7
danakj
https://codereview.chromium.org/1064213002/diff/60001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc File chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc (right): https://codereview.chromium.org/1064213002/diff/60001/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc#newcode330 chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc:330: uint8_t alpha = gfx::ToRoundedInt(255 * animation->GetCurrentValue()); On 2015/04/07 22:29:42, ...
5 years, 8 months ago (2015-04-07 22:36:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1064213002/100001
5 years, 8 months ago (2015-04-08 08:06:40 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 8 months ago (2015-04-08 12:45:01 UTC) #13
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 12:45:58 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/06cf7258babe8e44b904d36ac9beb9a954e985e4
Cr-Commit-Position: refs/heads/master@{#324220}

Powered by Google App Engine
This is Rietveld 408576698