OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/glue/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" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSelectElement.h" |
12 | 12 |
13 using WebKit::WebFormControlElement; | 13 using WebKit::WebFormControlElement; |
14 using WebKit::WebElement; | 14 using WebKit::WebElement; |
15 using WebKit::WebInputElement; | 15 using WebKit::WebInputElement; |
16 using WebKit::WebOptionElement; | 16 using WebKit::WebOptionElement; |
17 using WebKit::WebSelectElement; | 17 using WebKit::WebSelectElement; |
18 using WebKit::WebVector; | 18 using WebKit::WebVector; |
19 | 19 |
20 namespace webkit_glue { | 20 namespace webkit { |
| 21 namespace forms { |
21 | 22 |
22 FormField::FormField() | 23 FormField::FormField() |
23 : max_length(0), | 24 : max_length(0), |
24 is_autofilled(false), | 25 is_autofilled(false), |
25 is_focusable(false), | 26 is_focusable(false), |
26 should_autocomplete(false) { | 27 should_autocomplete(false) { |
27 } | 28 } |
28 | 29 |
29 FormField::~FormField() { | 30 FormField::~FormField() { |
30 } | 31 } |
(...skipping 26 matching lines...) Expand all Loading... |
57 << " " | 58 << " " |
58 << field.max_length | 59 << field.max_length |
59 << " " | 60 << " " |
60 << (field.is_autofilled ? "true" : "false") | 61 << (field.is_autofilled ? "true" : "false") |
61 << " " | 62 << " " |
62 << (field.is_focusable ? "true" : "false") | 63 << (field.is_focusable ? "true" : "false") |
63 << " " | 64 << " " |
64 << (field.should_autocomplete ? "true" : "false"); | 65 << (field.should_autocomplete ? "true" : "false"); |
65 } | 66 } |
66 | 67 |
67 } // namespace webkit_glue | 68 } // namespace forms |
| 69 } // namespace webkit |
OLD | NEW |