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 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 PassRefPtr<Range> selection() const; |
73 String selectedText() const; | |
74 | 73 |
75 virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; | 74 virtual void dispatchFormControlChangeEvent() OVERRIDE FINAL; |
76 | 75 |
77 virtual int maxLength() const = 0; | 76 virtual int maxLength() const = 0; |
78 virtual String value() const = 0; | 77 virtual String value() const = 0; |
79 | 78 |
80 HTMLElement* innerTextElement() const; | 79 HTMLElement* innerTextElement() const; |
81 | 80 |
82 void selectionChanged(bool userTriggered); | 81 void selectionChanged(bool userTriggered); |
83 bool lastChangeWasUserEdit() const; | 82 bool lastChangeWasUserEdit() const; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 return node.isElementNode() && toElement(node).isTextFormControl(); | 141 return node.isElementNode() && toElement(node).isTextFormControl(); |
143 } | 142 } |
144 | 143 |
145 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 144 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
146 | 145 |
147 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 146 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
148 | 147 |
149 } // namespace | 148 } // namespace |
150 | 149 |
151 #endif | 150 #endif |
OLD | NEW |