| 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_COCOA_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 base::string16 GetExplanatoryMessage() const; | 34 base::string16 GetExplanatoryMessage() const; |
| 35 | 35 |
| 36 // Returns the card that will be uploaded if the user accepts. | 36 // Returns the card that will be uploaded if the user accepts. |
| 37 CreditCard GetCard() const; | 37 CreditCard GetCard() const; |
| 38 | 38 |
| 39 // Returns the legal messages that should be displayed in the footer. Result | 39 // Returns the legal messages that should be displayed in the footer. Result |
| 40 // will be empty if no legal message should be shown. | 40 // will be empty if no legal message should be shown. |
| 41 const LegalMessageLines GetLegalMessageLines() const; | 41 const LegalMessageLines GetLegalMessageLines() const; |
| 42 | 42 |
| 43 // Interaction. | 43 // Interaction. |
| 44 void OnSaveButton(); | 44 // OnSaveButton takes in a string value representing the CVC entered by the |
| 45 // user if it was requested, or an empty string otherwise. |
| 46 void OnSaveButton(const base::string16& cvc = base::string16()); |
| 45 void OnCancelButton(); | 47 void OnCancelButton(); |
| 46 void OnLearnMoreClicked(); | 48 void OnLearnMoreClicked(); |
| 47 void OnLegalMessageLinkClicked(const GURL& url); | 49 void OnLegalMessageLinkClicked(const GURL& url); |
| 48 void OnBubbleClosed(); | 50 void OnBubbleClosed(); |
| 49 | 51 |
| 50 // SaveCardBubbleView implementation: | 52 // SaveCardBubbleView implementation: |
| 51 void Hide() override; | 53 void Hide() override; |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, SaveShouldClose); | 56 FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, SaveShouldClose); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 78 (BrowserWindowController*)browserWindowController | 80 (BrowserWindowController*)browserWindowController |
| 79 bridge: | 81 bridge: |
| 80 (autofill::SaveCardBubbleViewBridge*)bridge; | 82 (autofill::SaveCardBubbleViewBridge*)bridge; |
| 81 | 83 |
| 82 - (void)onSaveButton:(id)sender; | 84 - (void)onSaveButton:(id)sender; |
| 83 - (void)onCancelButton:(id)sender; | 85 - (void)onCancelButton:(id)sender; |
| 84 | 86 |
| 85 @end | 87 @end |
| 86 | 88 |
| 87 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_BRIDGE_H_ | 89 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_SAVE_CARD_BUBBLE_VIEW_BRIDGE_H_ |
| OLD | NEW |