| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 6 |
| 7 #include "Document.h" | 7 #include "Document.h" |
| 8 #include "Frame.h" | 8 #include "Frame.h" |
| 9 #include "HTMLFormElement.h" | 9 #include "HTMLFormElement.h" |
| 10 #include "HTMLInputElement.h" | 10 #include "HTMLInputElement.h" |
| 11 #include "HTMLNames.h" | 11 #include "HTMLNames.h" |
| 12 #undef LOG | 12 #undef LOG |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/string16.h" | 16 #include "base/string16.h" |
| 17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
| 18 #include "webkit/api/public/WebFormElement.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebFormElement.h" |
| 19 #include "webkit/glue/form_field_values.h" | 19 #include "webkit/glue/form_field_values.h" |
| 20 // Can include from api/src because this file will eventually be there too. | 20 // Can include from api/src because this file will eventually be there too. |
| 21 #include "webkit/api/src/DOMUtilitiesPrivate.h" | 21 #include "third_party/WebKit/WebKit/chromium/src/DOMUtilitiesPrivate.h" |
| 22 #include "webkit/glue/glue_util.h" | 22 #include "webkit/glue/glue_util.h" |
| 23 | 23 |
| 24 using WebKit::WebFormElement; | 24 using WebKit::WebFormElement; |
| 25 | 25 |
| 26 namespace webkit_glue { | 26 namespace webkit_glue { |
| 27 | 27 |
| 28 FormFieldValues* FormFieldValues::Create(const WebFormElement& webform) { | 28 FormFieldValues* FormFieldValues::Create(const WebFormElement& webform) { |
| 29 RefPtr<WebCore::HTMLFormElement> form = WebFormElementToHTMLFormElement(webfor
m); | 29 RefPtr<WebCore::HTMLFormElement> form = WebFormElementToHTMLFormElement(webfor
m); |
| 30 DCHECK(form); | 30 DCHECK(form); |
| 31 | 31 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 string16 type = StringToString16(input_element->formControlType()); | 86 string16 type = StringToString16(input_element->formControlType()); |
| 87 if (type.empty()) | 87 if (type.empty()) |
| 88 continue; | 88 continue; |
| 89 | 89 |
| 90 elements.push_back(FormField(name, type, value)); | 90 elements.push_back(FormField(name, type, value)); |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace webkit_glue | 94 } // namespace webkit_glue |
| OLD | NEW |