| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void WebInputElement::setEditingValue(const WebString& value) | 100 void WebInputElement::setEditingValue(const WebString& value) |
| 101 { | 101 { |
| 102 unwrap<HTMLInputElement>()->setEditingValue(value); | 102 unwrap<HTMLInputElement>()->setEditingValue(value); |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool WebInputElement::isValidValue(const WebString& value) const | 105 bool WebInputElement::isValidValue(const WebString& value) const |
| 106 { | 106 { |
| 107 return constUnwrap<HTMLInputElement>()->isValidValue(value); | 107 return constUnwrap<HTMLInputElement>()->isValidValue(value); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void WebInputElement::setChecked(bool nowChecked, bool sendChangeEvent) | 110 void WebInputElement::setChecked(bool nowChecked, bool sendEvents) |
| 111 { | 111 { |
| 112 unwrap<HTMLInputElement>()->setChecked(nowChecked, sendChangeEvent ? Dispatc
hChangeEvent : DispatchNoEvent); | 112 unwrap<HTMLInputElement>()->setChecked(nowChecked, sendEvents ? DispatchInpu
tAndChangeEvent : DispatchNoEvent); |
| 113 } | 113 } |
| 114 | 114 |
| 115 bool WebInputElement::isChecked() const | 115 bool WebInputElement::isChecked() const |
| 116 { | 116 { |
| 117 return constUnwrap<HTMLInputElement>()->checked(); | 117 return constUnwrap<HTMLInputElement>()->checked(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 bool WebInputElement::isMultiple() const | 120 bool WebInputElement::isMultiple() const |
| 121 { | 121 { |
| 122 return constUnwrap<HTMLInputElement>()->multiple(); | 122 return constUnwrap<HTMLInputElement>()->multiple(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 WebInputElement* toWebInputElement(WebElement* webElement) | 216 WebInputElement* toWebInputElement(WebElement* webElement) |
| 217 { | 217 { |
| 218 if (!isHTMLInputElement(*webElement->unwrap<Element>())) | 218 if (!isHTMLInputElement(*webElement->unwrap<Element>())) |
| 219 return 0; | 219 return 0; |
| 220 | 220 |
| 221 return static_cast<WebInputElement*>(webElement); | 221 return static_cast<WebInputElement*>(webElement); |
| 222 } | 222 } |
| 223 } // namespace blink | 223 } // namespace blink |
| OLD | NEW |