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

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

Issue 375313002: Expose isEmailField() for input element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | public/web/WebInputElement.h » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | public/web/WebInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698