| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual void setRangeText(const String& replacement, ExceptionState&); | 69 virtual void setRangeText(const String& replacement, ExceptionState&); |
| 70 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); | 70 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); |
| 71 void setSelectionRange(int start, int end, const String& direction); | 71 void setSelectionRange(int start, int end, const String& direction); |
| 72 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection); | 72 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection); |
| 73 PassRefPtrWillBeRawPtr<Range> selection() const; | 73 PassRefPtrWillBeRawPtr<Range> selection() const; |
| 74 | 74 |
| 75 virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; | 75 virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; |
| 76 | 76 |
| 77 virtual String value() const = 0; | 77 virtual String value() const = 0; |
| 78 | 78 |
| 79 HTMLElement* innerTextElement() const; | 79 HTMLElement* innerEditorElement() const; |
| 80 | 80 |
| 81 void selectionChanged(bool userTriggered); | 81 void selectionChanged(bool userTriggered); |
| 82 bool lastChangeWasUserEdit() const; | 82 bool lastChangeWasUserEdit() const; |
| 83 virtual void setInnerTextValue(const String&); | 83 virtual void setInnerEditorValue(const String&); |
| 84 String innerTextValue() const; | 84 String innerEditorValue() const; |
| 85 | 85 |
| 86 String directionForFormData() const; | 86 String directionForFormData() const; |
| 87 | 87 |
| 88 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL
astFormControlChangeEvent = text; } | 88 void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfL
astFormControlChangeEvent = text; } |
| 89 | 89 |
| 90 protected: | 90 protected: |
| 91 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement*
); | 91 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement*
); |
| 92 bool isPlaceholderEmpty() const; | 92 bool isPlaceholderEmpty() const; |
| 93 virtual void updatePlaceholderText() = 0; | 93 virtual void updatePlaceholderText() = 0; |
| 94 | 94 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 } | 144 } |
| 145 | 145 |
| 146 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 146 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
| 147 | 147 |
| 148 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 148 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
| 149 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 149 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
| 150 | 150 |
| 151 } // namespace | 151 } // namespace |
| 152 | 152 |
| 153 #endif | 153 #endif |
| OLD | NEW |