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

Unified Diff: Source/core/html/HTMLTextAreaElement.h

Issue 995363002: Implement autocapitalize in Blink to be used by the embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: ready for review Created 5 years, 9 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/HTMLTextAreaElement.h
diff --git a/Source/core/html/HTMLTextAreaElement.h b/Source/core/html/HTMLTextAreaElement.h
index f7936125d7e26b3b2a326dfd8e397ce1f3613f9e..8fe96836bf7735c46b7d8c386c7103cbb387ebd4 100644
--- a/Source/core/html/HTMLTextAreaElement.h
+++ b/Source/core/html/HTMLTextAreaElement.h
@@ -90,6 +90,8 @@ private:
virtual void updatePlaceholderText() override;
virtual bool isEmptyValue() const override { return value().isEmpty(); }
virtual bool isEmptySuggestedValue() const override final { return suggestedValue().isEmpty(); }
+ virtual bool supportsAutocapitalize() const override { return true; }
+ virtual TextFieldAutocapitalize defaultAutocapitalizeValue() const override { return TextFieldAutocapitalize::Sentences; }
virtual bool isOptionalFormControl() const override { return !isRequiredFormControl(); }
virtual bool isRequiredFormControl() const override { return isRequired(); }

Powered by Google App Engine
This is Rietveld 408576698