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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // Hides the associated request autocomplete dialog (if it exists). | 73 // Hides the associated request autocomplete dialog (if it exists). |
74 virtual void HideRequestAutocompleteDialog() = 0; | 74 virtual void HideRequestAutocompleteDialog() = 0; |
75 | 75 |
76 // Causes the Autofill settings UI to be shown. | 76 // Causes the Autofill settings UI to be shown. |
77 virtual void ShowAutofillSettings() = 0; | 77 virtual void ShowAutofillSettings() = 0; |
78 | 78 |
79 // Run |save_card_callback| if the credit card should be imported as personal | 79 // Run |save_card_callback| if the credit card should be imported as personal |
80 // data. |metric_logger| can be used to log user actions. | 80 // data. |metric_logger| can be used to log user actions. |
81 virtual void ConfirmSaveCreditCard( | 81 virtual void ConfirmSaveCreditCard( |
| 82 const AutofillMetrics& metric_logger, |
82 const base::Closure& save_card_callback) = 0; | 83 const base::Closure& save_card_callback) = 0; |
83 | 84 |
84 // Returns true if both the platform and the device support scanning credit | 85 // Returns true if both the platform and the device support scanning credit |
85 // cards. Should be called before ScanCreditCard(). | 86 // cards. Should be called before ScanCreditCard(). |
86 virtual bool HasCreditCardScanFeature() = 0; | 87 virtual bool HasCreditCardScanFeature() = 0; |
87 | 88 |
88 // Shows the user interface for scanning a credit card. Invokes the |callback| | 89 // Shows the user interface for scanning a credit card. Invokes the |callback| |
89 // when a credit card is scanned successfully. Should be called only if | 90 // when a credit card is scanned successfully. Should be called only if |
90 // HasCreditCardScanFeature() returns true. | 91 // HasCreditCardScanFeature() returns true. |
91 virtual void ScanCreditCard(const CreditCardScanCallback& callback) = 0; | 92 virtual void ScanCreditCard(const CreditCardScanCallback& callback) = 0; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 const base::string16& autofilled_value, | 131 const base::string16& autofilled_value, |
131 const base::string16& profile_full_name) = 0; | 132 const base::string16& profile_full_name) = 0; |
132 | 133 |
133 // Informs the client that a user gesture has been observed. | 134 // Informs the client that a user gesture has been observed. |
134 virtual void OnFirstUserGestureObserved() = 0; | 135 virtual void OnFirstUserGestureObserved() = 0; |
135 }; | 136 }; |
136 | 137 |
137 } // namespace autofill | 138 } // namespace autofill |
138 | 139 |
139 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 140 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |