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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void updatePlaceholderVisibility(); | 60 void updatePlaceholderVisibility(); |
61 | 61 |
62 VisiblePosition visiblePositionForIndex(int) const; | 62 VisiblePosition visiblePositionForIndex(int) const; |
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(); |
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 // Web-exposed setSelectionRange() function. This translates "none" | 73 // Web-exposed setSelectionRange() function. This translates "none" |
74 // direction to "forward" if necessary. | 74 // direction to "forward" if necessary. |
75 void setSelectionRangeForBinding(int start, int end, const String& direction
= "none"); | 75 void setSelectionRangeForBinding(int start, int end, const String& direction
= "none"); |
76 // Blink-internal version of setSelectionRange(). This never translates | 76 // Blink-internal version of setSelectionRange(). This never translates |
77 // "none" direction. | 77 // "none" direction. |
78 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent); | 78 void setSelectionRange(int start, int end, TextFieldSelectionDirection = Sel
ectionHasNoDirection, NeedToDispatchSelectEvent = DispatchSelectEvent); |
79 Range* selection() const; | 79 Range* selection() const; |
80 | 80 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 169 } |
170 | 170 |
171 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 171 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
172 | 172 |
173 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 173 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
174 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 174 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
175 | 175 |
176 } // namespace blink | 176 } // namespace blink |
177 | 177 |
178 #endif | 178 #endif |
OLD | NEW |