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