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 14 matching lines...) Expand all Loading... |
25 #ifndef HTMLTextFormControlElement_h | 25 #ifndef HTMLTextFormControlElement_h |
26 #define HTMLTextFormControlElement_h | 26 #define HTMLTextFormControlElement_h |
27 | 27 |
28 #include "core/html/HTMLFormControlElementWithState.h" | 28 #include "core/html/HTMLFormControlElementWithState.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class ExceptionState; | 32 class ExceptionState; |
33 class Position; | 33 class Position; |
34 class Range; | 34 class Range; |
35 class RenderTextControl; | |
36 class VisiblePosition; | 35 class VisiblePosition; |
37 | 36 |
38 enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD
irection, SelectionHasBackwardDirection }; | 37 enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD
irection, SelectionHasBackwardDirection }; |
39 enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInpu
tAndChangeEvent }; | 38 enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInpu
tAndChangeEvent }; |
40 | 39 |
41 class HTMLTextFormControlElement : public HTMLFormControlElementWithState { | 40 class HTMLTextFormControlElement : public HTMLFormControlElementWithState { |
42 public: | 41 public: |
43 // Common flag for HTMLInputElement::tooLong() and HTMLTextAreaElement::tooL
ong(). | 42 // Common flag for HTMLInputElement::tooLong() and HTMLTextAreaElement::tooL
ong(). |
44 enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; | 43 enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; |
45 // Option of setSelectionRange. | 44 // Option of setSelectionRange. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 156 } |
158 | 157 |
159 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 158 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
160 | 159 |
161 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 160 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
162 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 161 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
163 | 162 |
164 } // namespace | 163 } // namespace |
165 | 164 |
166 #endif | 165 #endif |
OLD | NEW |