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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // TODO(yoichio): Remove these functions. | 140 // TODO(yoichio): Remove these functions. |
141 // These functions don't cause synchronous layout and SpellChecker uses | 141 // These functions don't cause synchronous layout and SpellChecker uses |
142 // them to improve performance. | 142 // them to improve performance. |
143 // Passed |Position| must point inside of a text form control. | 143 // Passed |Position| must point inside of a text form control. |
144 static Position startOfWord(const Position&); | 144 static Position startOfWord(const Position&); |
145 static Position endOfWord(const Position&); | 145 static Position endOfWord(const Position&); |
146 static Position startOfSentence(const Position&); | 146 static Position startOfSentence(const Position&); |
147 static Position endOfSentence(const Position&); | 147 static Position endOfSentence(const Position&); |
148 | 148 |
149 protected: | 149 protected: |
150 TextControlElement(const QualifiedName&, Document&, HTMLFormElement*); | 150 TextControlElement(const QualifiedName&, Document&); |
151 bool isPlaceholderEmpty() const; | 151 bool isPlaceholderEmpty() const; |
152 virtual void updatePlaceholderText() = 0; | 152 virtual void updatePlaceholderText() = 0; |
153 | 153 |
154 void parseAttribute(const QualifiedName&, | 154 void parseAttribute(const QualifiedName&, |
155 const AtomicString&, | 155 const AtomicString&, |
156 const AtomicString&) override; | 156 const AtomicString&) override; |
157 | 157 |
158 void restoreCachedSelection(); | 158 void restoreCachedSelection(); |
159 | 159 |
160 void defaultEventHandler(Event*) override; | 160 void defaultEventHandler(Event*) override; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 221 } |
222 | 222 |
223 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement); | 223 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement); |
224 | 224 |
225 TextControlElement* enclosingTextControl(const Position&); | 225 TextControlElement* enclosingTextControl(const Position&); |
226 TextControlElement* enclosingTextControl(Node*); | 226 TextControlElement* enclosingTextControl(Node*); |
227 | 227 |
228 } // namespace blink | 228 } // namespace blink |
229 | 229 |
230 #endif | 230 #endif |
OLD | NEW |