OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" | 9 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" |
10 #include "components/autofill/core/browser/credit_card.h" | 10 #include "components/autofill/core/browser/credit_card.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 const base::string16& exp_month, | 31 const base::string16& exp_month, |
32 const base::string16& exp_year) override; | 32 const base::string16& exp_year) override; |
33 | 33 |
34 content::WebContents* GetWebContents() override; | 34 content::WebContents* GetWebContents() override; |
35 base::string16 GetWindowTitle() const override; | 35 base::string16 GetWindowTitle() const override; |
36 base::string16 GetInstructionsMessage() const override; | 36 base::string16 GetInstructionsMessage() const override; |
37 int GetCvcImageRid() const override; | 37 int GetCvcImageRid() const override; |
38 bool ShouldRequestExpirationDate() const override; | 38 bool ShouldRequestExpirationDate() const override; |
39 bool InputTextIsValid(const base::string16& input_text) const override; | 39 bool InputTextIsValid(const base::string16& input_text) const override; |
40 | 40 |
| 41 protected: |
| 42 // Exposed for testing. |
| 43 CardUnmaskPromptView* view() { return card_unmask_view_; } |
| 44 |
41 private: | 45 private: |
42 content::WebContents* web_contents_; | 46 content::WebContents* web_contents_; |
43 CreditCard card_; | 47 CreditCard card_; |
44 base::WeakPtr<CardUnmaskDelegate> delegate_; | 48 base::WeakPtr<CardUnmaskDelegate> delegate_; |
45 CardUnmaskPromptView* card_unmask_view_; | 49 CardUnmaskPromptView* card_unmask_view_; |
46 | 50 |
47 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_; | 51 base::WeakPtrFactory<CardUnmaskPromptControllerImpl> weak_pointer_factory_; |
48 | 52 |
49 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl); | 53 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptControllerImpl); |
50 }; | 54 }; |
51 | 55 |
52 } // namespace autofill | 56 } // namespace autofill |
53 | 57 |
54 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ | 58 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_CONTROLLER_IMPL_H_ |
OLD | NEW |