| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 HTMLElement* innerEditorElement() const; | 130 HTMLElement* innerEditorElement() const; |
| 131 | 131 |
| 132 void selectionChanged(bool userTriggered); | 132 void selectionChanged(bool userTriggered); |
| 133 bool lastChangeWasUserEdit() const; | 133 bool lastChangeWasUserEdit() const; |
| 134 virtual void setInnerEditorValue(const String&); | 134 virtual void setInnerEditorValue(const String&); |
| 135 String innerEditorValue() const; | 135 String innerEditorValue() const; |
| 136 Node* createPlaceholderBreakElement() const; | 136 Node* createPlaceholderBreakElement() const; |
| 137 | 137 |
| 138 String directionForFormData() const; | 138 String directionForFormData() const; |
| 139 | 139 |
| 140 // TODO(yoichio): Remove these functions. |
| 140 // These functions don't cause synchronous layout and SpellChecker uses | 141 // These functions don't cause synchronous layout and SpellChecker uses |
| 141 // them to improve performance. | 142 // them to improve performance. |
| 142 // Passed |Position| must point inside of a text form control. | 143 // Passed |Position| must point inside of a text form control. |
| 143 static Position startOfWord(const Position&); | 144 static Position startOfWord(const Position&); |
| 144 static Position endOfWord(const Position&); | 145 static Position endOfWord(const Position&); |
| 145 static Position startOfSentence(const Position&); | 146 static Position startOfSentence(const Position&); |
| 146 static Position endOfSentence(const Position&); | 147 static Position endOfSentence(const Position&); |
| 147 | 148 |
| 148 protected: | 149 protected: |
| 149 TextControlElement(const QualifiedName&, Document&, HTMLFormElement*); | 150 TextControlElement(const QualifiedName&, Document&, HTMLFormElement*); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 221 } |
| 221 | 222 |
| 222 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement); | 223 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(TextControlElement); |
| 223 | 224 |
| 224 TextControlElement* enclosingTextControl(const Position&); | 225 TextControlElement* enclosingTextControl(const Position&); |
| 225 TextControlElement* enclosingTextControl(Node*); | 226 TextControlElement* enclosingTextControl(Node*); |
| 226 | 227 |
| 227 } // namespace blink | 228 } // namespace blink |
| 228 | 229 |
| 229 #endif | 230 #endif |
| OLD | NEW |