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_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 | 11 |
12 struct FormData; | |
13 struct FormFieldData; | |
14 | |
15 namespace WebKit { | 12 namespace WebKit { |
16 class WebDocument; | 13 class WebDocument; |
17 class WebFormElement; | 14 class WebFormElement; |
18 class WebFormControlElement; | 15 class WebFormControlElement; |
19 class WebInputElement; | 16 class WebInputElement; |
20 } | 17 } |
21 | 18 |
22 namespace autofill { | 19 namespace autofill { |
23 | 20 |
| 21 struct FormData; |
| 22 struct FormFieldData; |
24 struct WebElementDescriptor; | 23 struct WebElementDescriptor; |
25 | 24 |
26 // A bit field mask for form or form element requirements. | 25 // A bit field mask for form or form element requirements. |
27 enum RequirementsMask { | 26 enum RequirementsMask { |
28 REQUIRE_NONE = 0, // No requirements. | 27 REQUIRE_NONE = 0, // No requirements. |
29 REQUIRE_AUTOCOMPLETE = 1, // Require that autocomplete != off. | 28 REQUIRE_AUTOCOMPLETE = 1, // Require that autocomplete != off. |
30 }; | 29 }; |
31 | 30 |
32 // A bit field mask to extract data from WebFormControlElement. | 31 // A bit field mask to extract data from WebFormControlElement. |
33 enum ExtractMask { | 32 enum ExtractMask { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // not found. | 129 // not found. |
131 bool ClearPreviewedFormWithElement(const WebKit::WebInputElement& element, | 130 bool ClearPreviewedFormWithElement(const WebKit::WebInputElement& element, |
132 bool was_autofilled); | 131 bool was_autofilled); |
133 | 132 |
134 // Returns true if |form| has any auto-filled fields. | 133 // Returns true if |form| has any auto-filled fields. |
135 bool FormWithElementIsAutofilled(const WebKit::WebInputElement& element); | 134 bool FormWithElementIsAutofilled(const WebKit::WebInputElement& element); |
136 | 135 |
137 } // namespace autofill | 136 } // namespace autofill |
138 | 137 |
139 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ | 138 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ |
OLD | NEW |