OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 bool WebInputElement::isCheckbox() const | 75 bool WebInputElement::isCheckbox() const |
76 { | 76 { |
77 return constUnwrap<HTMLInputElement>()->isCheckbox(); | 77 return constUnwrap<HTMLInputElement>()->isCheckbox(); |
78 } | 78 } |
79 | 79 |
80 int WebInputElement::maxLength() const | 80 int WebInputElement::maxLength() const |
81 { | 81 { |
82 return constUnwrap<HTMLInputElement>()->maxLength(); | 82 return constUnwrap<HTMLInputElement>()->maxLength(); |
83 } | 83 } |
84 | 84 |
85 bool WebInputElement::isActivatedSubmit() const | |
86 { | |
87 return constUnwrap<HTMLInputElement>()->isActivatedSubmit(); | |
88 } | |
89 | |
90 void WebInputElement::setActivatedSubmit(bool activated) | 85 void WebInputElement::setActivatedSubmit(bool activated) |
91 { | 86 { |
92 unwrap<HTMLInputElement>()->setActivatedSubmit(activated); | 87 unwrap<HTMLInputElement>()->setActivatedSubmit(activated); |
93 } | 88 } |
94 | 89 |
95 int WebInputElement::size() const | 90 int WebInputElement::size() const |
96 { | 91 { |
97 return constUnwrap<HTMLInputElement>()->size(); | 92 return constUnwrap<HTMLInputElement>()->size(); |
98 } | 93 } |
99 | 94 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 } | 209 } |
215 | 210 |
216 WebInputElement* toWebInputElement(WebElement* webElement) | 211 WebInputElement* toWebInputElement(WebElement* webElement) |
217 { | 212 { |
218 if (!isHTMLInputElement(*webElement->unwrap<Element>())) | 213 if (!isHTMLInputElement(*webElement->unwrap<Element>())) |
219 return 0; | 214 return 0; |
220 | 215 |
221 return static_cast<WebInputElement*>(webElement); | 216 return static_cast<WebInputElement*>(webElement); |
222 } | 217 } |
223 } // namespace blink | 218 } // namespace blink |
OLD | NEW |