OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
7 | 7 |
8 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" |
9 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h" | 9 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h" |
10 #include "ui/gfx/animation/animation_delegate.h" | 10 #include "ui/gfx/animation/animation_delegate.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void SetRetriableErrorMessage(const base::string16& message); | 113 void SetRetriableErrorMessage(const base::string16& message); |
114 bool ExpirationDateIsValid() const; | 114 bool ExpirationDateIsValid() const; |
115 void SetInputsEnabled(bool enabled); | 115 void SetInputsEnabled(bool enabled); |
116 void ShowNewCardLink(); | 116 void ShowNewCardLink(); |
117 void ClosePrompt(); | 117 void ClosePrompt(); |
118 | 118 |
119 CardUnmaskPromptController* controller_; | 119 CardUnmaskPromptController* controller_; |
120 | 120 |
121 views::View* main_contents_; | 121 views::View* main_contents_; |
122 | 122 |
| 123 // Expository language at the top of the dialog. |
| 124 views::Label* instructions_; |
| 125 |
123 // The error label for permanent errors (where the user can't retry). | 126 // The error label for permanent errors (where the user can't retry). |
124 views::Label* permanent_error_label_; | 127 views::Label* permanent_error_label_; |
125 | 128 |
126 // Holds the cvc and expiration inputs. | 129 // Holds the cvc and expiration inputs. |
127 views::View* input_row_; | 130 views::View* input_row_; |
128 | 131 |
129 DecoratedTextfield* cvc_input_; | 132 DecoratedTextfield* cvc_input_; |
130 | 133 |
131 views::Combobox* month_input_; | 134 views::Combobox* month_input_; |
132 views::Combobox* year_input_; | 135 views::Combobox* year_input_; |
(...skipping 17 matching lines...) Expand all Loading... |
150 gfx::SlideAnimation overlay_animation_; | 153 gfx::SlideAnimation overlay_animation_; |
151 | 154 |
152 base::WeakPtrFactory<CardUnmaskPromptViews> weak_ptr_factory_; | 155 base::WeakPtrFactory<CardUnmaskPromptViews> weak_ptr_factory_; |
153 | 156 |
154 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViews); | 157 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViews); |
155 }; | 158 }; |
156 | 159 |
157 } // namespace autofill | 160 } // namespace autofill |
158 | 161 |
159 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 162 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
OLD | NEW |