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