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 13 matching lines...) Expand all Loading... |
24 | 24 |
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 WebCore { | 30 namespace WebCore { |
31 | 31 |
32 class ExceptionState; | 32 class ExceptionState; |
33 class Position; | 33 class Position; |
| 34 class Range; |
34 class RenderTextControl; | 35 class RenderTextControl; |
35 class VisiblePosition; | 36 class VisiblePosition; |
36 | 37 |
37 enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD
irection, SelectionHasBackwardDirection }; | 38 enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD
irection, SelectionHasBackwardDirection }; |
38 enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInpu
tAndChangeEvent }; | 39 enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInpu
tAndChangeEvent }; |
39 | 40 |
40 class HTMLTextFormControlElement : public HTMLFormControlElementWithState { | 41 class HTMLTextFormControlElement : public HTMLFormControlElementWithState { |
41 public: | 42 public: |
42 // Common flag for HTMLInputElement::tooLong() and HTMLTextAreaElement::tooL
ong(). | 43 // Common flag for HTMLInputElement::tooLong() and HTMLTextAreaElement::tooL
ong(). |
43 enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; | 44 enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 144 } |
144 | 145 |
145 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 146 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
146 | 147 |
147 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 148 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
148 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 149 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
149 | 150 |
150 } // namespace | 151 } // namespace |
151 | 152 |
152 #endif | 153 #endif |
OLD | NEW |