| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 int indexForVisiblePosition(const VisiblePosition&) const; | 63 int indexForVisiblePosition(const VisiblePosition&) const; |
| 64 int selectionStart() const; | 64 int selectionStart() const; |
| 65 int selectionEnd() const; | 65 int selectionEnd() const; |
| 66 const AtomicString& selectionDirection() const; | 66 const AtomicString& selectionDirection() const; |
| 67 void setSelectionStart(int); | 67 void setSelectionStart(int); |
| 68 void setSelectionEnd(int); | 68 void setSelectionEnd(int); |
| 69 void setSelectionDirection(const String&); | 69 void setSelectionDirection(const String&); |
| 70 void select(NeedToDispatchSelectEvent = DispatchSelectEvent); | 70 void select(NeedToDispatchSelectEvent = DispatchSelectEvent); |
| 71 virtual void setRangeText(const String& replacement, ExceptionState&); | 71 virtual void setRangeText(const String& replacement, ExceptionState&); |
| 72 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); | 72 virtual void setRangeText(const String& replacement, unsigned start, unsigne
d end, const String& selectionMode, ExceptionState&); |
| 73 void setSelectionRange(int start, int end, const String& direction); | 73 // Web-exposed setSelectionRange() function. This translates "none" |
| 74 // direction to "forward" if necessary. |
| 75 void setSelectionRangeForBinding(int start, int end, const String& direction
= "none"); |
| 76 // Blink-internal version of setSelectionRange(). This never translates |
| 77 // "none" direction. |
| 74 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent); | 78 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent); |
| 75 Range* selection() const; | 79 Range* selection() const; |
| 76 | 80 |
| 77 virtual bool supportsAutocapitalize() const = 0; | 81 virtual bool supportsAutocapitalize() const = 0; |
| 78 virtual const AtomicString& defaultAutocapitalize() const = 0; | 82 virtual const AtomicString& defaultAutocapitalize() const = 0; |
| 79 const AtomicString& autocapitalize() const; | 83 const AtomicString& autocapitalize() const; |
| 80 void setAutocapitalize(const AtomicString&); | 84 void setAutocapitalize(const AtomicString&); |
| 81 | 85 |
| 82 void dispatchFormControlChangeEvent() final; | 86 void dispatchFormControlChangeEvent() final; |
| 83 | 87 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } | 169 } |
| 166 | 170 |
| 167 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 171 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
| 168 | 172 |
| 169 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 173 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
| 170 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 174 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
| 171 | 175 |
| 172 } // namespace blink | 176 } // namespace blink |
| 173 | 177 |
| 174 #endif | 178 #endif |
| OLD | NEW |