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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 virtual String value() const = 0; | 84 virtual String value() const = 0; |
85 | 85 |
86 HTMLElement* innerEditorElement() const; | 86 HTMLElement* innerEditorElement() const; |
87 | 87 |
88 void selectionChanged(bool userTriggered); | 88 void selectionChanged(bool userTriggered); |
89 bool lastChangeWasUserEdit() const; | 89 bool lastChangeWasUserEdit() const; |
90 virtual void setInnerEditorValue(const String&); | 90 virtual void setInnerEditorValue(const String&); |
91 String innerEditorValue() const; | 91 String innerEditorValue() const; |
92 | 92 |
93 String directionForFormData() const; | |
94 | |
95 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL
astFormControlChangeEvent = text; } | 93 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL
astFormControlChangeEvent = text; } |
96 | 94 |
97 // These functions don't cause synchronous layout and SpellChecker uses | 95 // These functions don't cause synchronous layout and SpellChecker uses |
98 // them to improve performance. | 96 // them to improve performance. |
99 // Passed |Position| must point inside of a text form control. | 97 // Passed |Position| must point inside of a text form control. |
100 static Position startOfWord(const Position&); | 98 static Position startOfWord(const Position&); |
101 static Position endOfWord(const Position&); | 99 static Position endOfWord(const Position&); |
102 static Position startOfSentence(const Position&); | 100 static Position startOfSentence(const Position&); |
103 static Position endOfSentence(const Position&); | 101 static Position endOfSentence(const Position&); |
104 | 102 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 157 } |
160 | 158 |
161 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 159 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
162 | 160 |
163 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 161 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
164 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 162 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
165 | 163 |
166 } // namespace | 164 } // namespace |
167 | 165 |
168 #endif | 166 #endif |
OLD | NEW |