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 * | 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 virtual ~HTMLTextFormControlElement(); | 178 virtual ~HTMLTextFormControlElement(); |
179 | 179 |
180 String strippedPlaceholder() const; | 180 String strippedPlaceholder() const; |
181 | 181 |
182 int selectionStart(); | 182 int selectionStart(); |
183 int selectionEnd(); | 183 int selectionEnd(); |
184 void setSelectionStart(int); | 184 void setSelectionStart(int); |
185 void setSelectionEnd(int); | 185 void setSelectionEnd(int); |
186 void select(); | 186 void select(); |
187 void setSelectionRange(int start, int end); | 187 void setSelectionRange(int start, int end); |
188 VisibleSelection selection() const; | 188 PassRefPtr<Range> selection() const; |
189 | 189 |
190 protected: | 190 protected: |
191 HTMLTextFormControlElement(const QualifiedName&, Document*, HTMLFormElement*
); | 191 HTMLTextFormControlElement(const QualifiedName&, Document*, HTMLFormElement*
); |
192 | 192 |
193 bool placeholderShouldBeVisible() const; | 193 bool placeholderShouldBeVisible() const; |
194 void updatePlaceholderVisibility(bool); | 194 void updatePlaceholderVisibility(bool); |
195 | 195 |
196 virtual void parseMappedAttribute(Attribute*); | 196 virtual void parseMappedAttribute(Attribute*); |
197 | 197 |
198 private: | 198 private: |
(...skipping 13 matching lines...) Expand all Loading... |
212 virtual void handleFocusEvent() { } | 212 virtual void handleFocusEvent() { } |
213 // Called in dispatchBlurEvent(), after placeholder process, before calling
parent's dispatchBlurEvent(). | 213 // Called in dispatchBlurEvent(), after placeholder process, before calling
parent's dispatchBlurEvent(). |
214 virtual void handleBlurEvent() { } | 214 virtual void handleBlurEvent() { } |
215 | 215 |
216 RenderTextControl* textRendererAfterUpdateLayout(); | 216 RenderTextControl* textRendererAfterUpdateLayout(); |
217 }; | 217 }; |
218 | 218 |
219 } // namespace | 219 } // namespace |
220 | 220 |
221 #endif | 221 #endif |
OLD | NEW |