OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 bool OnFormSubmitted(const FormData& form); | 160 bool OnFormSubmitted(const FormData& form); |
161 | 161 |
162 void OnTextFieldDidChange(const FormData& form, | 162 void OnTextFieldDidChange(const FormData& form, |
163 const FormFieldData& field, | 163 const FormFieldData& field, |
164 const base::TimeTicks& timestamp); | 164 const base::TimeTicks& timestamp); |
165 | 165 |
166 // The |bounding_box| is a window relative value. | 166 // The |bounding_box| is a window relative value. |
167 void OnQueryFormFieldAutofill(int query_id, | 167 void OnQueryFormFieldAutofill(int query_id, |
168 const FormData& form, | 168 const FormData& form, |
169 const FormFieldData& field, | 169 const FormFieldData& field, |
170 const gfx::RectF& bounding_box, | 170 const gfx::RectF& bounding_box); |
171 bool display_warning); | |
172 void OnDidEndTextFieldEditing(); | 171 void OnDidEndTextFieldEditing(); |
173 void OnHidePopup(); | 172 void OnHidePopup(); |
174 void OnSetDataList(const std::vector<base::string16>& values, | 173 void OnSetDataList(const std::vector<base::string16>& values, |
175 const std::vector<base::string16>& labels); | 174 const std::vector<base::string16>& labels); |
176 | 175 |
177 // Try to label password fields and upload |form|. This differs from | 176 // Try to label password fields and upload |form|. This differs from |
178 // OnFormSubmitted() in a few ways. | 177 // OnFormSubmitted() in a few ways. |
179 // - This function will only label the first <input type="password"> field | 178 // - This function will only label the first <input type="password"> field |
180 // as |password_type|. Other fields will stay unlabeled, as they | 179 // as |password_type|. Other fields will stay unlabeled, as they |
181 // should have been labeled during the upload for OnFormSubmitted(). | 180 // should have been labeled during the upload for OnFormSubmitted(). |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, SaneMetricsWithCacheMismatch); | 462 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, SaneMetricsWithCacheMismatch); |
464 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, TestExternalDelegate); | 463 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, TestExternalDelegate); |
465 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 464 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
466 TestTabContentsWithExternalDelegate); | 465 TestTabContentsWithExternalDelegate); |
467 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 466 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
468 UserHappinessFormLoadAndSubmission); | 467 UserHappinessFormLoadAndSubmission); |
469 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 468 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
470 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 469 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
471 FormSubmittedAutocompleteEnabled); | 470 FormSubmittedAutocompleteEnabled); |
472 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 471 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
473 AutocompleteOffRespected); | 472 AutocompleteOffRespectedForAutocomplete); |
474 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | |
475 AutocompleteOffRespectedWithFlag); | |
476 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 473 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
477 }; | 474 }; |
478 | 475 |
479 } // namespace autofill | 476 } // namespace autofill |
480 | 477 |
481 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ | 478 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_MANAGER_H_ |
OLD | NEW |