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); |
}; |