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/Source/WebKit/chromium/public/WebDocument.h" | |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" | |
22 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
23 #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" |
| 19 #include "third_party/WebKit/public/web/WebFormControlElement.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" |
| 23 #include "third_party/WebKit/public/web/WebSelectElement.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 | 25 |
26 using WebKit::WebDocument; | 26 using WebKit::WebDocument; |
27 using WebKit::WebFormControlElement; | 27 using WebKit::WebFormControlElement; |
28 using WebKit::WebFormElement; | 28 using WebKit::WebFormElement; |
29 using WebKit::WebFrame; | 29 using WebKit::WebFrame; |
30 using WebKit::WebInputElement; | 30 using WebKit::WebInputElement; |
31 using WebKit::WebSelectElement; | 31 using WebKit::WebSelectElement; |
32 using WebKit::WebString; | 32 using WebKit::WebString; |
33 using WebKit::WebVector; | 33 using WebKit::WebVector; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 UTF8ToUTF16(form.experiment_id)); | 288 UTF8ToUTF16(form.experiment_id)); |
289 if (!element->hasAttribute("placeholder")) | 289 if (!element->hasAttribute("placeholder")) |
290 element->setAttribute("placeholder", WebString(UTF8ToUTF16(placeholder))); | 290 element->setAttribute("placeholder", WebString(UTF8ToUTF16(placeholder))); |
291 element->setAttribute("title", WebString(title)); | 291 element->setAttribute("title", WebString(title)); |
292 } | 292 } |
293 | 293 |
294 return true; | 294 return true; |
295 } | 295 } |
296 | 296 |
297 } // namespace autofill | 297 } // namespace autofill |
OLD | NEW |