| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 int selectionEnd() const; | 62 int selectionEnd() const; |
| 63 const AtomicString& selectionDirection() const; | 63 const AtomicString& selectionDirection() const; |
| 64 void setSelectionStart(int); | 64 void setSelectionStart(int); |
| 65 void setSelectionEnd(int); | 65 void setSelectionEnd(int); |
| 66 void setSelectionDirection(const String&); | 66 void setSelectionDirection(const String&); |
| 67 void select(); | 67 void select(); |
| 68 virtual void setRangeText(const String& replacement, ExceptionState&); | 68 virtual void setRangeText(const String& replacement, ExceptionState&); |
| 69 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); | 69 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); |
| 70 void setSelectionRange(int start, int end, const String& direction); | 70 void setSelectionRange(int start, int end, const String& direction); |
| 71 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection); | 71 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection); |
| 72 PassRefPtr<Range> selection() const; | 72 PassRefPtrWillBeRawPtr<Range> selection() const; |
| 73 | 73 |
| 74 virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; | 74 virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; |
| 75 | 75 |
| 76 virtual String value() const = 0; | 76 virtual String value() const = 0; |
| 77 | 77 |
| 78 HTMLElement* innerTextElement() const; | 78 HTMLElement* innerTextElement() const; |
| 79 | 79 |
| 80 void selectionChanged(bool userTriggered); | 80 void selectionChanged(bool userTriggered); |
| 81 bool lastChangeWasUserEdit() const; | 81 bool lastChangeWasUserEdit() const; |
| 82 void setInnerTextValue(const String&); | 82 void setInnerTextValue(const String&); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 return element.isTextFormControl(); | 140 return element.isTextFormControl(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 143 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
| 144 | 144 |
| 145 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 145 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
| 146 | 146 |
| 147 } // namespace | 147 } // namespace |
| 148 | 148 |
| 149 #endif | 149 #endif |
| OLD | NEW |