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

Side by Side Diff: components/autofill/core/common/autofill_util.h

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « components/autofill/core/common/DEPS ('k') | components/autofill/core/common/autofill_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_COMMON_AUTOFILL_UTIL_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "components/autofill/core/common/form_field_data.h"
11 12
12 namespace autofill { 13 namespace autofill {
13 14
14 // Returns true when command line switch |kEnableSuggestionsWithSubstringMatch| 15 // Returns true when command line switch |kEnableSuggestionsWithSubstringMatch|
15 // is on. 16 // is on.
16 bool IsFeatureSubstringMatchEnabled(); 17 bool IsFeatureSubstringMatchEnabled();
17 18
18 // Returns true when keyboard accessory is enabled. 19 // Returns true when keyboard accessory is enabled.
19 bool IsKeyboardAccessoryEnabled(); 20 bool IsKeyboardAccessoryEnabled();
20 21
(...skipping 14 matching lines...) Expand all
35 // not found. "preview-on-hover" feature is one such use case where the 36 // not found. "preview-on-hover" feature is one such use case where the
36 // substring |field_contents| may not be found within the string |suggestion|. 37 // substring |field_contents| may not be found within the string |suggestion|.
37 size_t GetTextSelectionStart(const base::string16& suggestion, 38 size_t GetTextSelectionStart(const base::string16& suggestion,
38 const base::string16& field_contents, 39 const base::string16& field_contents,
39 bool case_sensitive); 40 bool case_sensitive);
40 41
41 // Returns true if running on a desktop platform. Any platform that is not 42 // Returns true if running on a desktop platform. Any platform that is not
42 // Android or iOS is considered desktop. 43 // Android or iOS is considered desktop.
43 bool IsDesktopPlatform(); 44 bool IsDesktopPlatform();
44 45
46 bool ShouldSkipField(const FormFieldData& field);
47
48 bool IsCheckable(const FormFieldData::CheckStatus& check_status);
49 bool IsChecked(const FormFieldData::CheckStatus& check_status);
50 void SetCheckStatus(FormFieldData* form_field_data,
51 bool isCheckable,
52 bool isChecked);
53
45 } // namespace autofill 54 } // namespace autofill
46 55
47 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_ 56 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_UTIL_H_
OLDNEW
« no previous file with comments | « components/autofill/core/common/DEPS ('k') | components/autofill/core/common/autofill_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698