Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: components/autofill/core/browser/autofill_manager.h

Issue 1059393002: Remove --respect-autocomplete-off-autofill flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix last 3 tests Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_field.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698