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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 class WebFormElement; | 23 class WebFormElement; |
24 class WebFrame; | 24 class WebFrame; |
25 class WebInputElement; | 25 class WebInputElement; |
26 class WebNode; | 26 class WebNode; |
27 } | 27 } |
28 | 28 |
29 namespace autofill { | 29 namespace autofill { |
30 | 30 |
31 struct FormData; | 31 struct FormData; |
32 struct FormFieldData; | 32 struct FormFieldData; |
33 struct WebElementDescriptor; | |
34 | 33 |
35 namespace form_util { | 34 namespace form_util { |
36 | 35 |
37 // A bit field mask to extract data from WebFormControlElement. | 36 // A bit field mask to extract data from WebFormControlElement. |
38 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. | 37 // Copied to components/autofill/ios/browser/resources/autofill_controller.js. |
39 enum ExtractMask { | 38 enum ExtractMask { |
40 EXTRACT_NONE = 0, | 39 EXTRACT_NONE = 0, |
41 EXTRACT_VALUE = 1 << 0, // Extract value from WebFormControlElement. | 40 EXTRACT_VALUE = 1 << 0, // Extract value from WebFormControlElement. |
42 EXTRACT_OPTION_TEXT = 1 << 1, // Extract option text from | 41 EXTRACT_OPTION_TEXT = 1 << 1, // Extract option text from |
43 // WebFormSelectElement. Only valid when | 42 // WebFormSelectElement. Only valid when |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // |input_element|. Note that |user_input| cannot be easily derived from | 238 // |input_element|. Note that |user_input| cannot be easily derived from |
240 // |input_element| by calling value(), because of http://crbug.com/507714. | 239 // |input_element| by calling value(), because of http://crbug.com/507714. |
241 void PreviewSuggestion(const base::string16& suggestion, | 240 void PreviewSuggestion(const base::string16& suggestion, |
242 const base::string16& user_input, | 241 const base::string16& user_input, |
243 blink::WebFormControlElement* input_element); | 242 blink::WebFormControlElement* input_element); |
244 | 243 |
245 } // namespace form_util | 244 } // namespace form_util |
246 } // namespace autofill | 245 } // namespace autofill |
247 | 246 |
248 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ | 247 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_FORM_AUTOFILL_UTIL_H_ |
OLD | NEW |