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

Unified Diff: Source/core/html/forms/InputType.h

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/core/html/forms/InputType.h
diff --git a/Source/core/html/forms/InputType.h b/Source/core/html/forms/InputType.h
index 511e5f79394fe1afe88cb8372a6832ba3044cf28..27568cf8e57cdf39da4b4ee298e3ad4c0908ca6e 100644
--- a/Source/core/html/forms/InputType.h
+++ b/Source/core/html/forms/InputType.h
@@ -109,6 +109,7 @@ public:
virtual bool hasBadInput() const;
virtual bool patternMismatch(const String&) const;
virtual bool tooLong(const String&, HTMLTextFormControlElement::NeedsToCheckDirtyFlag) const;
+ virtual bool tooShort(const String&, HTMLTextFormControlElement::NeedsToCheckDirtyFlag) const;
bool rangeUnderflow(const String&) const;
bool rangeOverflow(const String&) const;
bool isInRange(const String&) const;
@@ -166,6 +167,7 @@ public:
virtual bool isSteppable() const;
virtual bool shouldRespectHeightAndWidthAttributes();
virtual int maxLength() const;
+ virtual int minLength() const;
virtual bool supportsPlaceholder() const;
virtual bool supportsReadOnly() const;
virtual String defaultToolTip() const;

Powered by Google App Engine
This is Rietveld 408576698