| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/html/HTMLTextFormControlElement.h" | 28 #include "core/html/HTMLTextFormControlElement.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 class BeforeTextInsertedEvent; | 32 class BeforeTextInsertedEvent; |
| 33 class ExceptionState; | 33 class ExceptionState; |
| 34 | 34 |
| 35 class CORE_EXPORT HTMLTextAreaElement final : public HTMLTextFormControlElement
{ | 35 class CORE_EXPORT HTMLTextAreaElement final : public HTMLTextFormControlElement
{ |
| 36 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
| 37 public: | 37 public: |
| 38 static PassRefPtrWillBeRawPtr<HTMLTextAreaElement> create(Document&, HTMLFor
mElement*); | 38 static RawPtr<HTMLTextAreaElement> create(Document&, HTMLFormElement*); |
| 39 | 39 |
| 40 unsigned cols() const { return m_cols; } | 40 unsigned cols() const { return m_cols; } |
| 41 unsigned rows() const { return m_rows; } | 41 unsigned rows() const { return m_rows; } |
| 42 | 42 |
| 43 bool shouldWrapText() const { return m_wrap != NoWrap; } | 43 bool shouldWrapText() const { return m_wrap != NoWrap; } |
| 44 | 44 |
| 45 String value() const override; | 45 String value() const override; |
| 46 void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent) overr
ide; | 46 void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent) overr
ide; |
| 47 String defaultValue() const; | 47 String defaultValue() const; |
| 48 void setDefaultValue(const String&); | 48 void setDefaultValue(const String&); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 mutable String m_value; | 144 mutable String m_value; |
| 145 mutable bool m_isDirty; | 145 mutable bool m_isDirty; |
| 146 bool m_valueIsUpToDate; | 146 bool m_valueIsUpToDate; |
| 147 unsigned m_isPlaceholderVisible : 1; | 147 unsigned m_isPlaceholderVisible : 1; |
| 148 String m_suggestedValue; | 148 String m_suggestedValue; |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // HTMLTextAreaElement_h | 153 #endif // HTMLTextAreaElement_h |
| OLD | NEW |