| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" | 11 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" |
| 12 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" | 12 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" |
| 13 #include "ui/gfx/animation/animation_delegate.h" | 13 #include "ui/gfx/animation/animation_delegate.h" |
| 14 #include "ui/gfx/animation/slide_animation.h" | 14 #include "ui/gfx/animation/slide_animation.h" |
| 15 #include "ui/views/controls/combobox/combobox_listener.h" | 15 #include "ui/views/controls/combobox/combobox_listener.h" |
| 16 #include "ui/views/controls/link_listener.h" | 16 #include "ui/views/controls/link_listener.h" |
| 17 #include "ui/views/controls/textfield/textfield_controller.h" | 17 #include "ui/views/controls/textfield/textfield_controller.h" |
| 18 #include "ui/views/window/dialog_delegate.h" | 18 #include "ui/views/window/dialog_delegate.h" |
| 19 | 19 |
| 20 namespace content { | 20 namespace content { |
| 21 class WebContents; | 21 class WebContents; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| 25 class Checkbox; | 25 class Checkbox; |
| 26 class ImageView; | 26 class ImageView; |
| 27 class Label; | 27 class Label; |
| 28 class Link; | 28 class Link; |
| 29 class Textfield; |
| 29 class Throbber; | 30 class Throbber; |
| 30 } | 31 } |
| 31 | 32 |
| 32 namespace autofill { | 33 namespace autofill { |
| 33 | 34 |
| 34 class DecoratedTextfield; | |
| 35 | |
| 36 class CardUnmaskPromptViews : public CardUnmaskPromptView, | 35 class CardUnmaskPromptViews : public CardUnmaskPromptView, |
| 37 public views::ComboboxListener, | 36 public views::ComboboxListener, |
| 38 public views::DialogDelegateView, | 37 public views::DialogDelegateView, |
| 39 public views::TextfieldController, | 38 public views::TextfieldController, |
| 40 public views::LinkListener, | 39 public views::LinkListener, |
| 41 public gfx::AnimationDelegate { | 40 public gfx::AnimationDelegate { |
| 42 public: | 41 public: |
| 43 CardUnmaskPromptViews(CardUnmaskPromptController* controller, | 42 CardUnmaskPromptViews(CardUnmaskPromptController* controller, |
| 44 content::WebContents* web_contents); | 43 content::WebContents* web_contents); |
| 45 ~CardUnmaskPromptViews() override; | 44 ~CardUnmaskPromptViews() override; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 127 |
| 129 // Expository language at the top of the dialog. | 128 // Expository language at the top of the dialog. |
| 130 views::Label* instructions_; | 129 views::Label* instructions_; |
| 131 | 130 |
| 132 // The error label for permanent errors (where the user can't retry). | 131 // The error label for permanent errors (where the user can't retry). |
| 133 views::Label* permanent_error_label_; | 132 views::Label* permanent_error_label_; |
| 134 | 133 |
| 135 // Holds the cvc and expiration inputs. | 134 // Holds the cvc and expiration inputs. |
| 136 View* input_row_; | 135 View* input_row_; |
| 137 | 136 |
| 138 DecoratedTextfield* cvc_input_; | 137 views::Textfield* cvc_input_; |
| 139 | 138 |
| 140 views::Combobox* month_input_; | 139 views::Combobox* month_input_; |
| 141 views::Combobox* year_input_; | 140 views::Combobox* year_input_; |
| 142 | 141 |
| 143 MonthComboboxModel month_combobox_model_; | 142 MonthComboboxModel month_combobox_model_; |
| 144 YearComboboxModel year_combobox_model_; | 143 YearComboboxModel year_combobox_model_; |
| 145 | 144 |
| 146 views::Link* new_card_link_; | 145 views::Link* new_card_link_; |
| 147 | 146 |
| 148 // The error icon and label for most errors, which live beneath the inputs. | 147 // The error icon and label for most errors, which live beneath the inputs. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 159 gfx::SlideAnimation overlay_animation_; | 158 gfx::SlideAnimation overlay_animation_; |
| 160 | 159 |
| 161 base::WeakPtrFactory<CardUnmaskPromptViews> weak_ptr_factory_; | 160 base::WeakPtrFactory<CardUnmaskPromptViews> weak_ptr_factory_; |
| 162 | 161 |
| 163 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViews); | 162 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViews); |
| 164 }; | 163 }; |
| 165 | 164 |
| 166 } // namespace autofill | 165 } // namespace autofill |
| 167 | 166 |
| 168 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ | 167 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_ |
| OLD | NEW |