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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | public/web/WebInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebInputElement.cpp
diff --git a/Source/web/WebInputElement.cpp b/Source/web/WebInputElement.cpp
index e53860d4f2fb286562403966b9b81d7ae5b629db..6c8c1acee1d6dc9329be5e4b55455663837444e6 100644
--- a/Source/web/WebInputElement.cpp
+++ b/Source/web/WebInputElement.cpp
@@ -57,6 +57,11 @@ bool WebInputElement::isText() const
return constUnwrap<HTMLInputElement>()->isText();
}
+bool WebInputElement::isEmailField() const
+{
+ return constUnwrap<HTMLInputElement>()->isEmailField();
+}
+
bool WebInputElement::isPasswordField() const
{
return constUnwrap<HTMLInputElement>()->isPasswordField();
« 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