| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual void UpdateAutofillPopupDataListValues( | 144 virtual void UpdateAutofillPopupDataListValues( |
| 145 const std::vector<base::string16>& values, | 145 const std::vector<base::string16>& values, |
| 146 const std::vector<base::string16>& labels) = 0; | 146 const std::vector<base::string16>& labels) = 0; |
| 147 | 147 |
| 148 // Hide the Autofill popup if one is currently showing. | 148 // Hide the Autofill popup if one is currently showing. |
| 149 virtual void HideAutofillPopup() = 0; | 149 virtual void HideAutofillPopup() = 0; |
| 150 | 150 |
| 151 // Whether the Autocomplete feature of Autofill should be enabled. | 151 // Whether the Autocomplete feature of Autofill should be enabled. |
| 152 virtual bool IsAutocompleteEnabled() = 0; | 152 virtual bool IsAutocompleteEnabled() = 0; |
| 153 | 153 |
| 154 // Pass the form structures to the password generation manager to detect | 154 // Pass the form structures to the password manager to choose correct username |
| 155 // account creation forms. | 155 // and to the password generation manager to detect account creation forms. |
| 156 virtual void DetectAccountCreationForms( | 156 virtual void PropagateAutofillPredictions( |
| 157 content::RenderFrameHost* rfh, | 157 content::RenderFrameHost* rfh, |
| 158 const std::vector<autofill::FormStructure*>& forms) = 0; | 158 const std::vector<autofill::FormStructure*>& forms) = 0; |
| 159 | 159 |
| 160 // Inform the client that the field has been filled. | 160 // Inform the client that the field has been filled. |
| 161 virtual void DidFillOrPreviewField( | 161 virtual void DidFillOrPreviewField( |
| 162 const base::string16& autofilled_value, | 162 const base::string16& autofilled_value, |
| 163 const base::string16& profile_full_name) = 0; | 163 const base::string16& profile_full_name) = 0; |
| 164 | 164 |
| 165 // Informs the client that a user gesture has been observed. | 165 // Informs the client that a user gesture has been observed. |
| 166 virtual void OnFirstUserGestureObserved() = 0; | 166 virtual void OnFirstUserGestureObserved() = 0; |
| 167 | 167 |
| 168 // Opens |url| with the supplied |disposition|. | 168 // Opens |url| with the supplied |disposition|. |
| 169 virtual void LinkClicked(const GURL& url, | 169 virtual void LinkClicked(const GURL& url, |
| 170 WindowOpenDisposition disposition) = 0; | 170 WindowOpenDisposition disposition) = 0; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace autofill | 173 } // namespace autofill |
| 174 | 174 |
| 175 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 175 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |