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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool WebInputElement::isTextField() const | 50 bool WebInputElement::isTextField() const |
51 { | 51 { |
52 return constUnwrap<HTMLInputElement>()->isTextField(); | 52 return constUnwrap<HTMLInputElement>()->isTextField(); |
53 } | 53 } |
54 | 54 |
55 bool WebInputElement::isText() const | 55 bool WebInputElement::isText() const |
56 { | 56 { |
57 return constUnwrap<HTMLInputElement>()->isText(); | 57 return constUnwrap<HTMLInputElement>()->isText(); |
58 } | 58 } |
59 | 59 |
| 60 bool WebInputElement::isEmailField() const |
| 61 { |
| 62 return constUnwrap<HTMLInputElement>()->isEmailField(); |
| 63 } |
| 64 |
60 bool WebInputElement::isPasswordField() const | 65 bool WebInputElement::isPasswordField() const |
61 { | 66 { |
62 return constUnwrap<HTMLInputElement>()->isPasswordField(); | 67 return constUnwrap<HTMLInputElement>()->isPasswordField(); |
63 } | 68 } |
64 | 69 |
65 bool WebInputElement::isImageButton() const | 70 bool WebInputElement::isImageButton() const |
66 { | 71 { |
67 return constUnwrap<HTMLInputElement>()->isImageButton(); | 72 return constUnwrap<HTMLInputElement>()->isImageButton(); |
68 } | 73 } |
69 | 74 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 } | 161 } |
157 | 162 |
158 WebInputElement* toWebInputElement(WebElement* webElement) | 163 WebInputElement* toWebInputElement(WebElement* webElement) |
159 { | 164 { |
160 if (!isHTMLInputElement(*webElement->unwrap<Element>())) | 165 if (!isHTMLInputElement(*webElement->unwrap<Element>())) |
161 return 0; | 166 return 0; |
162 | 167 |
163 return static_cast<WebInputElement*>(webElement); | 168 return static_cast<WebInputElement*>(webElement); |
164 } | 169 } |
165 } // namespace blink | 170 } // namespace blink |
OLD | NEW |