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 #include "components/autofill/content/renderer/form_autofill_util.h" | 5 #include "components/autofill/content/renderer/form_autofill_util.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "components/autofill/core/common/autofill_data_validation.h" | 15 #include "components/autofill/core/common/autofill_data_validation.h" |
16 #include "components/autofill/core/common/autofill_switches.h" | 16 #include "components/autofill/core/common/autofill_switches.h" |
17 #include "components/autofill/core/common/form_data.h" | 17 #include "components/autofill/core/common/form_data.h" |
18 #include "components/autofill/core/common/form_field_data.h" | 18 #include "components/autofill/core/common/form_field_data.h" |
19 #include "components/autofill/core/common/web_element_descriptor.h" | 19 #include "components/autofill/core/common/web_element_descriptor.h" |
20 #include "third_party/WebKit/public/platform/WebString.h" | 20 #include "third_party/WebKit/public/platform/WebString.h" |
21 #include "third_party/WebKit/public/platform/WebVector.h" | 21 #include "third_party/WebKit/public/platform/WebVector.h" |
22 #include "third_party/WebKit/public/web/WebDocument.h" | 22 #include "third_party/WebKit/public/web/WebDocument.h" |
23 #include "third_party/WebKit/public/web/WebElement.h" | 23 #include "third_party/WebKit/public/web/WebElement.h" |
24 #include "third_party/WebKit/public/web/WebElementCollection.h" | 24 #include "third_party/WebKit/public/web/WebElementCollection.h" |
25 #include "third_party/WebKit/public/web/WebExceptionCode.h" | 25 #include "third_party/WebKit/public/web/WebExceptionCode.h" |
26 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 26 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
27 #include "third_party/WebKit/public/web/WebFormElement.h" | 27 #include "third_party/WebKit/public/web/WebFormElement.h" |
28 #include "third_party/WebKit/public/web/WebFrame.h" | |
29 #include "third_party/WebKit/public/web/WebInputElement.h" | 28 #include "third_party/WebKit/public/web/WebInputElement.h" |
30 #include "third_party/WebKit/public/web/WebLabelElement.h" | 29 #include "third_party/WebKit/public/web/WebLabelElement.h" |
| 30 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
31 #include "third_party/WebKit/public/web/WebNode.h" | 31 #include "third_party/WebKit/public/web/WebNode.h" |
32 #include "third_party/WebKit/public/web/WebNodeList.h" | 32 #include "third_party/WebKit/public/web/WebNodeList.h" |
33 #include "third_party/WebKit/public/web/WebOptionElement.h" | 33 #include "third_party/WebKit/public/web/WebOptionElement.h" |
34 #include "third_party/WebKit/public/web/WebSelectElement.h" | 34 #include "third_party/WebKit/public/web/WebSelectElement.h" |
35 #include "third_party/WebKit/public/web/WebTextAreaElement.h" | 35 #include "third_party/WebKit/public/web/WebTextAreaElement.h" |
36 | 36 |
37 using blink::WebDocument; | 37 using blink::WebDocument; |
38 using blink::WebElement; | 38 using blink::WebElement; |
39 using blink::WebElementCollection; | 39 using blink::WebElementCollection; |
40 using blink::WebExceptionCode; | 40 using blink::WebExceptionCode; |
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 | 1171 |
1172 gfx::RectF GetScaledBoundingBox(float scale, WebFormControlElement* element) { | 1172 gfx::RectF GetScaledBoundingBox(float scale, WebFormControlElement* element) { |
1173 gfx::Rect bounding_box(element->boundsInViewportSpace()); | 1173 gfx::Rect bounding_box(element->boundsInViewportSpace()); |
1174 return gfx::RectF(bounding_box.x() * scale, | 1174 return gfx::RectF(bounding_box.x() * scale, |
1175 bounding_box.y() * scale, | 1175 bounding_box.y() * scale, |
1176 bounding_box.width() * scale, | 1176 bounding_box.width() * scale, |
1177 bounding_box.height() * scale); | 1177 bounding_box.height() * scale); |
1178 } | 1178 } |
1179 | 1179 |
1180 } // namespace autofill | 1180 } // namespace autofill |
OLD | NEW |