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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ |
7 | 7 |
8 namespace autofill { | 8 namespace autofill { |
9 | 9 |
10 class CardUnmaskPromptController; | 10 class CardUnmaskPromptController; |
11 | 11 |
12 // The cross-platform UI interface which prompts the user to unlock a masked | 12 // The cross-platform UI interface which prompts the user to unlock a masked |
13 // Wallet instrument (credit card). This object is responsible for its own | 13 // Wallet instrument (credit card). This object is responsible for its own |
14 // lifetime. | 14 // lifetime. |
15 class CardUnmaskPromptView { | 15 class CardUnmaskPromptView { |
16 public: | 16 public: |
17 static CardUnmaskPromptView* CreateAndShow( | 17 static CardUnmaskPromptView* CreateAndShow( |
18 CardUnmaskPromptController* controller); | 18 CardUnmaskPromptController* controller); |
19 | 19 |
20 virtual void ControllerGone() = 0; | 20 virtual void ControllerGone() = 0; |
21 virtual void DisableAndWaitForVerification() = 0; | 21 virtual void DisableAndWaitForVerification() = 0; |
22 virtual void GotVerificationResult(bool success) = 0; | 22 virtual void GotVerificationResult(bool success) = 0; |
23 | 23 |
24 // Simulates the user pressing 'Cancel' to abort the dialog. | |
25 virtual void CancelForTesting() = 0; | |
Evan Stade
2015/02/13 03:27:05
instead of adding this here, create another interf
bondd
2015/02/17 19:39:59
Done.
| |
26 | |
24 protected: | 27 protected: |
25 CardUnmaskPromptView(); | 28 CardUnmaskPromptView() {} |
26 virtual ~CardUnmaskPromptView(); | 29 virtual ~CardUnmaskPromptView() {} |
27 | 30 |
28 private: | 31 private: |
29 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); | 32 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptView); |
30 }; | 33 }; |
31 | 34 |
32 } // namespace autofill | 35 } // namespace autofill |
33 | 36 |
34 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ | 37 #endif // CHROME_BROWSER_UI_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_H_ |
OLD | NEW |