| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/forms/form_field.h" | 5 #include "webkit/forms/form_field.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" | |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" | |
| 12 | |
| 13 using WebKit::WebFormControlElement; | |
| 14 using WebKit::WebElement; | |
| 15 using WebKit::WebInputElement; | |
| 16 using WebKit::WebOptionElement; | |
| 17 using WebKit::WebSelectElement; | |
| 18 using WebKit::WebVector; | |
| 19 | 9 |
| 20 namespace webkit { | 10 namespace webkit { |
| 21 namespace forms { | 11 namespace forms { |
| 22 | 12 |
| 23 FormField::FormField() | 13 FormField::FormField() |
| 24 : max_length(0), | 14 : max_length(0), |
| 25 is_autofilled(false), | 15 is_autofilled(false), |
| 26 is_focusable(false), | 16 is_focusable(false), |
| 27 should_autocomplete(false) { | 17 should_autocomplete(false) { |
| 28 } | 18 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 << " " | 57 << " " |
| 68 << (field.is_autofilled ? "true" : "false") | 58 << (field.is_autofilled ? "true" : "false") |
| 69 << " " | 59 << " " |
| 70 << (field.is_focusable ? "true" : "false") | 60 << (field.is_focusable ? "true" : "false") |
| 71 << " " | 61 << " " |
| 72 << (field.should_autocomplete ? "true" : "false"); | 62 << (field.should_autocomplete ? "true" : "false"); |
| 73 } | 63 } |
| 74 | 64 |
| 75 } // namespace forms | 65 } // namespace forms |
| 76 } // namespace webkit | 66 } // namespace webkit |
| OLD | NEW |