| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual void UpdateAutofillPopupDataListValues( | 96 virtual void UpdateAutofillPopupDataListValues( |
| 97 const std::vector<base::string16>& values, | 97 const std::vector<base::string16>& values, |
| 98 const std::vector<base::string16>& labels) = 0; | 98 const std::vector<base::string16>& labels) = 0; |
| 99 | 99 |
| 100 // Hide the Autofill popup if one is currently showing. | 100 // Hide the Autofill popup if one is currently showing. |
| 101 virtual void HideAutofillPopup() = 0; | 101 virtual void HideAutofillPopup() = 0; |
| 102 | 102 |
| 103 // Whether the Autocomplete feature of Autofill should be enabled. | 103 // Whether the Autocomplete feature of Autofill should be enabled. |
| 104 virtual bool IsAutocompleteEnabled() = 0; | 104 virtual bool IsAutocompleteEnabled() = 0; |
| 105 | 105 |
| 106 // Pass the form structures to the password generation manager to detect | |
| 107 // account creation forms. | |
| 108 virtual void DetectAccountCreationForms( | |
| 109 const std::vector<autofill::FormStructure*>& forms) = 0; | |
| 110 | |
| 111 // Inform the client that the field has been filled. | 106 // Inform the client that the field has been filled. |
| 112 virtual void DidFillOrPreviewField( | 107 virtual void DidFillOrPreviewField( |
| 113 const base::string16& autofilled_value, | 108 const base::string16& autofilled_value, |
| 114 const base::string16& profile_full_name) = 0; | 109 const base::string16& profile_full_name) = 0; |
| 115 }; | 110 }; |
| 116 | 111 |
| 117 } // namespace autofill | 112 } // namespace autofill |
| 118 | 113 |
| 119 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 114 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |