Chromium Code Reviews| Index: Source/core/html/HTMLTextFormControlElement.h |
| diff --git a/Source/core/html/HTMLTextFormControlElement.h b/Source/core/html/HTMLTextFormControlElement.h |
| index fb0ba4458a5eaa7f0a4af4c9c163db5294782cc9..6b6a96bdc00ca5d13108bd9ae6a8e8f688b5b8a6 100644 |
| --- a/Source/core/html/HTMLTextFormControlElement.h |
| +++ b/Source/core/html/HTMLTextFormControlElement.h |
| @@ -39,7 +39,15 @@ enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD |
| enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInputAndChangeEvent }; |
| enum NeedToDispatchSelectEvent { DispatchSelectEvent, NotDispatchSelectEvent }; |
| -class CORE_EXPORT HTMLTextFormControlElement : public HTMLFormControlElementWithState { |
| +enum class TextFieldAutocapitalize : char { |
| + Uninitialized, |
| + None, |
| + Characters, |
| + Words, |
| + Sentences |
| +}; |
| + |
| +class HTMLTextFormControlElement : public HTMLFormControlElementWithState { |
|
tkent
2015/03/17 22:53:50
Do not remove CORE_EXPORT.
mlamouri (slow - plz ping)
2015/03/18 10:08:16
Sorry about that, this is a rebase mistake.
|
| public: |
| // Common flag for HTMLInputElement::tooLong(), HTMLTextAreaElement::tooLong(), |
| // HTMLInputElement::tooShort() and HTMLTextAreaElement::tooShort(). |
| @@ -81,6 +89,12 @@ public: |
| void setSelectionRange(int start, int end, TextFieldSelectionDirection = SelectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent, SelectionOption = ChangeSelection); |
| PassRefPtrWillBeRawPtr<Range> selection() const; |
| + virtual bool supportsAutocapitalize() const = 0; |
| + virtual TextFieldAutocapitalize defaultAutocapitalizeValue() const = 0; |
| + TextFieldAutocapitalize autocapitalizeValue() const; |
| + const AtomicString& autocapitalize() const; |
| + void setAutocapitalize(const AtomicString&); |
| + |
| virtual void dispatchFormControlChangeEvent() override final; |
| virtual String value() const = 0; |
| @@ -155,6 +169,7 @@ private: |
| int m_cachedSelectionStart; |
| int m_cachedSelectionEnd; |
| TextFieldSelectionDirection m_cachedSelectionDirection; |
| + TextFieldAutocapitalize m_autocapitalize; |
|
tkent
2015/03/17 22:53:50
Please remove this data member.
We should avoid ca
|
| }; |
| inline bool isHTMLTextFormControlElement(const Element& element) |