OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/renderer/autofill/form_autofill_util.h" | 5 #include "chrome/renderer/autofill/form_autofill_util.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/common/autofill/web_element_descriptor.h" | 13 #include "chrome/common/autofill/web_element_descriptor.h" |
14 #include "chrome/common/form_data.h" | 14 #include "chrome/common/form_data.h" |
15 #include "chrome/common/form_field_data.h" | 15 #include "chrome/common/form_field_data.h" |
| 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
| 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebLabelElement.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebLabelElement.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | |
30 | 30 |
31 using WebKit::WebDocument; | 31 using WebKit::WebDocument; |
32 using WebKit::WebElement; | 32 using WebKit::WebElement; |
33 using WebKit::WebExceptionCode; | 33 using WebKit::WebExceptionCode; |
34 using WebKit::WebFormControlElement; | 34 using WebKit::WebFormControlElement; |
35 using WebKit::WebFormElement; | 35 using WebKit::WebFormElement; |
36 using WebKit::WebFrame; | 36 using WebKit::WebFrame; |
37 using WebKit::WebInputElement; | 37 using WebKit::WebInputElement; |
38 using WebKit::WebLabelElement; | 38 using WebKit::WebLabelElement; |
39 using WebKit::WebNode; | 39 using WebKit::WebNode; |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 continue; | 958 continue; |
959 | 959 |
960 if (input_element->isAutofilled()) | 960 if (input_element->isAutofilled()) |
961 return true; | 961 return true; |
962 } | 962 } |
963 | 963 |
964 return false; | 964 return false; |
965 } | 965 } |
966 | 966 |
967 } // namespace autofill | 967 } // namespace autofill |
OLD | NEW |