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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 WebElement WebInputElement::passwordGeneratorButtonElement() const | 143 WebElement WebInputElement::passwordGeneratorButtonElement() const |
144 { | 144 { |
145 return WebElement(constUnwrap<HTMLInputElement>()->passwordGeneratorButtonEl
ement()); | 145 return WebElement(constUnwrap<HTMLInputElement>()->passwordGeneratorButtonEl
ement()); |
146 } | 146 } |
147 | 147 |
148 void WebInputElement::setShouldRevealPassword(bool value) | 148 void WebInputElement::setShouldRevealPassword(bool value) |
149 { | 149 { |
150 unwrap<HTMLInputElement>()->setShouldRevealPassword(value); | 150 unwrap<HTMLInputElement>()->setShouldRevealPassword(value); |
151 } | 151 } |
152 | 152 |
153 WebInputElement::WebInputElement(const PassRefPtr<HTMLInputElement>& elem) | 153 WebInputElement::WebInputElement(const PassRefPtrWillBeRawPtr<HTMLInputElement>&
elem) |
154 : WebFormControlElement(elem) | 154 : WebFormControlElement(elem) |
155 { | 155 { |
156 } | 156 } |
157 | 157 |
158 WebInputElement& WebInputElement::operator=(const PassRefPtr<HTMLInputElement>&
elem) | 158 WebInputElement& WebInputElement::operator=(const PassRefPtrWillBeRawPtr<HTMLInp
utElement>& elem) |
159 { | 159 { |
160 m_private = elem; | 160 m_private = elem; |
161 return *this; | 161 return *this; |
162 } | 162 } |
163 | 163 |
164 WebInputElement::operator PassRefPtr<HTMLInputElement>() const | 164 WebInputElement::operator PassRefPtrWillBeRawPtr<HTMLInputElement>() const |
165 { | 165 { |
166 return toHTMLInputElement(m_private.get()); | 166 return toHTMLInputElement(m_private.get()); |
167 } | 167 } |
168 | 168 |
169 WebInputElement* toWebInputElement(WebElement* webElement) | 169 WebInputElement* toWebInputElement(WebElement* webElement) |
170 { | 170 { |
171 if (!isHTMLInputElement(*webElement->unwrap<Element>())) | 171 if (!isHTMLInputElement(*webElement->unwrap<Element>())) |
172 return 0; | 172 return 0; |
173 | 173 |
174 return static_cast<WebInputElement*>(webElement); | 174 return static_cast<WebInputElement*>(webElement); |
175 } | 175 } |
176 } // namespace blink | 176 } // namespace blink |
OLD | NEW |