Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: Source/web/WebInputElement.cpp

Issue 270573008: Oilpan: Prepare to support garbage-collected Node in WebNode hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add FIXME comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebFormElement.cpp ('k') | Source/web/WebLabelElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/web/WebFormElement.cpp ('k') | Source/web/WebLabelElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698