| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 #include "base/compiler_specific.h" |
| 6 | 7 |
| 7 #pragma warning(push, 0) | 8 MSVC_PUSH_WARNING_LEVEL(0); |
| 8 #include "Frame.h" | 9 #include "Frame.h" |
| 9 #include "HTMLInputElement.h" | 10 #include "HTMLInputElement.h" |
| 10 #include "HTMLNames.h" | 11 #include "HTMLNames.h" |
| 11 #pragma warning(pop) | 12 MSVC_POP_WARNING(); |
| 12 | 13 |
| 13 #undef LOG | 14 #undef LOG |
| 14 | 15 |
| 15 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| 16 #include "base/logging.h" | 17 #include "base/logging.h" |
| 17 #include "webkit/glue/autofill_form.h" | 18 #include "webkit/glue/autofill_form.h" |
| 18 #include "webkit/glue/glue_util.h" | 19 #include "webkit/glue/glue_util.h" |
| 19 | 20 |
| 20 AutofillForm* AutofillForm::CreateAutofillForm( | 21 AutofillForm* AutofillForm::CreateAutofillForm( |
| 21 WebCore::HTMLFormElement* form) { | 22 WebCore::HTMLFormElement* form) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // For each TEXT input field, store the name and value | 59 // For each TEXT input field, store the name and value |
| 59 std::wstring name = webkit_glue::StringToStdWString(input_element->name()); | 60 std::wstring name = webkit_glue::StringToStdWString(input_element->name()); |
| 60 std::wstring value = webkit_glue::StringToStdWString( | 61 std::wstring value = webkit_glue::StringToStdWString( |
| 61 input_element->value()); | 62 input_element->value()); |
| 62 | 63 |
| 63 result->elements.push_back(AutofillForm::Element(name, value)); | 64 result->elements.push_back(AutofillForm::Element(name, value)); |
| 64 } | 65 } |
| 65 | 66 |
| 66 return result; | 67 return result; |
| 67 } | 68 } |
| OLD | NEW |