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, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. | 6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void selectionChanged(bool userTriggered); | 82 void selectionChanged(bool userTriggered); |
83 bool lastChangeWasUserEdit() const; | 83 bool lastChangeWasUserEdit() const; |
84 void setInnerTextValue(const String&); | 84 void setInnerTextValue(const String&); |
85 String innerTextValue() const; | 85 String innerTextValue() const; |
86 | 86 |
87 String directionForFormData() const; | 87 String directionForFormData() const; |
88 | 88 |
89 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL
astFormControlChangeEvent = text; } | 89 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL
astFormControlChangeEvent = text; } |
90 | 90 |
91 protected: | 91 protected: |
92 HTMLTextFormControlElement(const QualifiedName&, Document*, HTMLFormElement*
); | 92 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement*
); |
93 bool isPlaceholderEmpty() const; | 93 bool isPlaceholderEmpty() const; |
94 virtual void updatePlaceholderText() = 0; | 94 virtual void updatePlaceholderText() = 0; |
95 | 95 |
96 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 96 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
97 | 97 |
98 void cacheSelection(int start, int end, TextFieldSelectionDirection directio
n) | 98 void cacheSelection(int start, int end, TextFieldSelectionDirection directio
n) |
99 { | 99 { |
100 m_cachedSelectionStart = start; | 100 m_cachedSelectionStart = start; |
101 m_cachedSelectionEnd = end; | 101 m_cachedSelectionEnd = end; |
102 m_cachedSelectionDirection = direction; | 102 m_cachedSelectionDirection = direction; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 { | 150 { |
151 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextFormControlElement(node)
); | 151 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTextFormControlElement(node)
); |
152 return static_cast<HTMLTextFormControlElement*>(node); | 152 return static_cast<HTMLTextFormControlElement*>(node); |
153 } | 153 } |
154 | 154 |
155 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 155 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
156 | 156 |
157 } // namespace | 157 } // namespace |
158 | 158 |
159 #endif | 159 #endif |
OLD | NEW |