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

Side by Side Diff: components/autofill/core/common/autofill_constants.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 // Contains constants specific to the Autofill component. 5 // Contains constants specific to the Autofill component.
6 6
7 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_ 7 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
8 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_ 8 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
9 9
10 #include <stddef.h> // For size_t 10 #include <stddef.h> // For size_t
11 11
12 namespace autofill { 12 namespace autofill {
13 13
14 // A bit field mask for form or form element requirements. 14 // A bit field mask for form or form element requirements.
15 // TODO(estade): remove after iOS no longer uses it. See crbug.com/459456
15 enum RequirementsMask { 16 enum RequirementsMask {
16 REQUIRE_NONE = 0, // No requirements. 17 REQUIRE_NONE = 0, // No requirements.
17 REQUIRE_AUTOCOMPLETE = 1, // Require that autocomplete != off. 18 REQUIRE_AUTOCOMPLETE = 1, // Require that autocomplete != off.
18 }; 19 };
19 20
20 // Help URL for the Autofill dialog. 21 // Help URL for the Autofill dialog.
21 extern const char kHelpURL[]; 22 extern const char kHelpURL[];
22 23
23 // The number of fields required by Autofill. Ideally we could send the forms 24 // The number of fields required by Autofill. Ideally we could send the forms
24 // to Autofill no matter how many fields are in the forms; however, finding the 25 // to Autofill no matter how many fields are in the forms; however, finding the
25 // label for each field is a costly operation and we can't spare the cycles if 26 // label for each field is a costly operation and we can't spare the cycles if
26 // it's not necessary. 27 // it's not necessary.
27 extern const size_t kRequiredAutofillFields; 28 extern const size_t kRequiredAutofillFields;
28 29
29 // Options bitmask values for AutofillHostMsg_ShowPasswordSuggestions IPC 30 // Options bitmask values for AutofillHostMsg_ShowPasswordSuggestions IPC
30 enum ShowPasswordSuggestionsOptions { 31 enum ShowPasswordSuggestionsOptions {
31 SHOW_ALL = 1 << 0 /* show all credentials, not just ones matching username */, 32 SHOW_ALL = 1 << 0 /* show all credentials, not just ones matching username */,
32 IS_PASSWORD_FIELD = 1 << 1 /* input field is a password field */ 33 IS_PASSWORD_FIELD = 1 << 1 /* input field is a password field */
33 }; 34 };
34 35
35 } // namespace autofill 36 } // namespace autofill
36 37
37 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_ 38 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698