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_cache.h" | 5 #include "components/autofill/content/renderer/form_cache.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "components/autofill/content/renderer/form_autofill_util.h" | 9 #include "components/autofill/content/renderer/form_autofill_util.h" |
10 #include "components/autofill/core/common/autofill_constants.h" | 10 #include "components/autofill/core/common/autofill_constants.h" |
11 #include "components/autofill/core/common/form_data.h" | 11 #include "components/autofill/core/common/form_data.h" |
12 #include "components/autofill/core/common/form_data_predictions.h" | 12 #include "components/autofill/core/common/form_data_predictions.h" |
13 #include "components/autofill/core/common/form_field_data.h" | 13 #include "components/autofill/core/common/form_field_data.h" |
14 #include "components/autofill/core/common/form_field_data_predictions.h" | 14 #include "components/autofill/core/common/form_field_data_predictions.h" |
15 #include "grit/component_strings.h" | 15 #include "grit/component_strings.h" |
16 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
18 #include "third_party/WebKit/public/web/WebDocument.h" | 18 #include "third_party/WebKit/public/web/WebDocument.h" |
19 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 19 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
20 #include "third_party/WebKit/public/web/WebFormElement.h" | 20 #include "third_party/WebKit/public/web/WebFormElement.h" |
21 #include "third_party/WebKit/public/web/WebFrame.h" | |
22 #include "third_party/WebKit/public/web/WebInputElement.h" | 21 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 22 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
23 #include "third_party/WebKit/public/web/WebSelectElement.h" | 23 #include "third_party/WebKit/public/web/WebSelectElement.h" |
24 #include "third_party/WebKit/public/web/WebTextAreaElement.h" | 24 #include "third_party/WebKit/public/web/WebTextAreaElement.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 | 26 |
27 using blink::WebDocument; | 27 using blink::WebDocument; |
28 using blink::WebFormControlElement; | 28 using blink::WebFormControlElement; |
29 using blink::WebFormElement; | 29 using blink::WebFormElement; |
30 using blink::WebFrame; | 30 using blink::WebFrame; |
31 using blink::WebInputElement; | 31 using blink::WebInputElement; |
32 using blink::WebSelectElement; | 32 using blink::WebSelectElement; |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 element->setAttribute("placeholder", | 296 element->setAttribute("placeholder", |
297 WebString(base::UTF8ToUTF16(placeholder))); | 297 WebString(base::UTF8ToUTF16(placeholder))); |
298 } | 298 } |
299 element->setAttribute("title", WebString(title)); | 299 element->setAttribute("title", WebString(title)); |
300 } | 300 } |
301 | 301 |
302 return true; | 302 return true; |
303 } | 303 } |
304 | 304 |
305 } // namespace autofill | 305 } // namespace autofill |
OLD | NEW |