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

Unified Diff: Source/platform/text/PlatformLocale.cpp

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests for minlength & maxlength together; fix comments Created 6 years, 2 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
Index: Source/platform/text/PlatformLocale.cpp
diff --git a/Source/platform/text/PlatformLocale.cpp b/Source/platform/text/PlatformLocale.cpp
index 01387a47ad139d906db0f6e10c29b061fbd7ac76..f98e0d82c654f03ef2e068424c520277ac970255 100644
--- a/Source/platform/text/PlatformLocale.cpp
+++ b/Source/platform/text/PlatformLocale.cpp
@@ -213,6 +213,11 @@ String Locale::validationMessageTooLongText(unsigned valueLength, int maxLength)
return queryString(WebLocalizedString::ValidationTooLong, convertToLocalizedNumber(String::number(valueLength)), convertToLocalizedNumber(String::number(maxLength)));
}
+String Locale::validationMessageTooShortText(unsigned valueLength, int minLength)
+{
+ return queryString(WebLocalizedString::ValidationTooShort, convertToLocalizedNumber(String::number(valueLength)), convertToLocalizedNumber(String::number(minLength)));
+}
+
String Locale::weekFormatInLDML()
{
String templ = queryString(WebLocalizedString::WeekFormatTemplate);
« Source/core/html/HTMLTextAreaElement.cpp ('K') | « Source/platform/text/PlatformLocale.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698