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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void setSelectionStart(int); | 74 void setSelectionStart(int); |
75 void setSelectionEnd(int); | 75 void setSelectionEnd(int); |
76 void setSelectionDirection(const String&); | 76 void setSelectionDirection(const String&); |
77 void select(NeedToDispatchSelectEvent = DispatchSelectEvent); | 77 void select(NeedToDispatchSelectEvent = DispatchSelectEvent); |
78 virtual void setRangeText(const String& replacement, ExceptionState&); | 78 virtual void setRangeText(const String& replacement, ExceptionState&); |
79 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); | 79 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); |
80 void setSelectionRange(int start, int end, const String& direction); | 80 void setSelectionRange(int start, int end, const String& direction); |
81 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent, Selection
Option = ChangeSelection); | 81 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent, Selection
Option = ChangeSelection); |
82 PassRefPtrWillBeRawPtr<Range> selection() const; | 82 PassRefPtrWillBeRawPtr<Range> selection() const; |
83 | 83 |
| 84 virtual bool supportsAutocapitalize() const = 0; |
| 85 virtual const AtomicString& defaultAutocapitalize() const = 0; |
| 86 const AtomicString& autocapitalize() const; |
| 87 void setAutocapitalize(const AtomicString&); |
| 88 |
84 virtual void dispatchFormControlChangeEvent() override final; | 89 virtual void dispatchFormControlChangeEvent() override final; |
85 | 90 |
86 virtual String value() const = 0; | 91 virtual String value() const = 0; |
87 | 92 |
88 HTMLElement* innerEditorElement() const; | 93 HTMLElement* innerEditorElement() const; |
89 | 94 |
90 void selectionChanged(bool userTriggered); | 95 void selectionChanged(bool userTriggered); |
91 bool lastChangeWasUserEdit() const; | 96 bool lastChangeWasUserEdit() const; |
92 virtual void setInnerEditorValue(const String&); | 97 virtual void setInnerEditorValue(const String&); |
93 String innerEditorValue() const; | 98 String innerEditorValue() const; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 168 } |
164 | 169 |
165 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 170 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
166 | 171 |
167 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 172 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
168 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 173 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
169 | 174 |
170 } // namespace | 175 } // namespace |
171 | 176 |
172 #endif | 177 #endif |
OLD | NEW |