OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 static String sanitizeUserInputValue(const String&, unsigned maxLength); | 83 static String sanitizeUserInputValue(const String&, unsigned maxLength); |
84 void updateValue() const; | 84 void updateValue() const; |
85 virtual void setInnerEditorValue(const String&) override; | 85 virtual void setInnerEditorValue(const String&) override; |
86 void setNonDirtyValue(const String&); | 86 void setNonDirtyValue(const String&); |
87 void setValueCommon(const String&, TextFieldEventBehavior, SetValueCommonOpt
ion = NotSetSelection); | 87 void setValueCommon(const String&, TextFieldEventBehavior, SetValueCommonOpt
ion = NotSetSelection); |
88 | 88 |
89 virtual bool supportsPlaceholder() const override { return true; } | 89 virtual bool supportsPlaceholder() const override { return true; } |
90 virtual void updatePlaceholderText() override; | 90 virtual void updatePlaceholderText() override; |
91 virtual bool isEmptyValue() const override { return value().isEmpty(); } | 91 virtual bool isEmptyValue() const override { return value().isEmpty(); } |
92 virtual bool isEmptySuggestedValue() const override final { return suggested
Value().isEmpty(); } | 92 virtual bool isEmptySuggestedValue() const override final { return suggested
Value().isEmpty(); } |
| 93 virtual bool supportsAutocapitalize() const override { return true; } |
| 94 virtual const AtomicString& defaultAutocapitalize() const override; |
93 | 95 |
94 virtual bool isOptionalFormControl() const override { return !isRequiredForm
Control(); } | 96 virtual bool isOptionalFormControl() const override { return !isRequiredForm
Control(); } |
95 virtual bool isRequiredFormControl() const override { return isRequired(); } | 97 virtual bool isRequiredFormControl() const override { return isRequired(); } |
96 | 98 |
97 virtual void defaultEventHandler(Event*) override; | 99 virtual void defaultEventHandler(Event*) override; |
98 virtual void handleFocusEvent(Element* oldFocusedNode, WebFocusType) overrid
e; | 100 virtual void handleFocusEvent(Element* oldFocusedNode, WebFocusType) overrid
e; |
99 | 101 |
100 virtual void subtreeHasChanged() override; | 102 virtual void subtreeHasChanged() override; |
101 | 103 |
102 virtual bool isEnumeratable() const override { return true; } | 104 virtual bool isEnumeratable() const override { return true; } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 WrapMethod m_wrap; | 141 WrapMethod m_wrap; |
140 mutable String m_value; | 142 mutable String m_value; |
141 mutable bool m_isDirty; | 143 mutable bool m_isDirty; |
142 bool m_valueIsUpToDate; | 144 bool m_valueIsUpToDate; |
143 String m_suggestedValue; | 145 String m_suggestedValue; |
144 }; | 146 }; |
145 | 147 |
146 } // namespace blink | 148 } // namespace blink |
147 | 149 |
148 #endif // HTMLTextAreaElement_h | 150 #endif // HTMLTextAreaElement_h |
OLD | NEW |