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

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_views.h

Issue 1064213002: views: Change CardUnmaskPromptViews::FadeOutView opacity to alpha. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alpha-view: between Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
index 03c4434e321ab993d0d4c3255b39d5a22134c64b..631828437ea07500dbe1b7264b1d2293e9f85ea8 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
@@ -87,16 +87,17 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
void set_fade_everything(bool fade_everything) {
fade_everything_ = fade_everything;
}
- void SetOpacity(double opacity);
+
+ // Set the alpha channel for this view. 0 is transparent and 255 is opaque.
+ void SetAlpha(uint8_t alpha);
private:
// Controls whether the background and border are faded out as well. Default
// is false, meaning only children are faded.
bool fade_everything_;
- // On a scale of 0-1, how much to fade out the contents of this view. 0 is
- // totally invisible, 1 is totally visible.
- double opacity_;
+ // The alpha channel for this view. 0 is transparent and 255 is opaque.
+ uint8_t alpha_;
DISALLOW_COPY_AND_ASSIGN(FadeOutView);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698