| 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 21 matching lines...) Expand all Loading... |
| 32 class ExceptionState; | 32 class ExceptionState; |
| 33 class Position; | 33 class Position; |
| 34 class Range; | 34 class Range; |
| 35 class VisiblePosition; | 35 class VisiblePosition; |
| 36 | 36 |
| 37 enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD
irection, SelectionHasBackwardDirection }; | 37 enum TextFieldSelectionDirection { SelectionHasNoDirection, SelectionHasForwardD
irection, SelectionHasBackwardDirection }; |
| 38 enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInpu
tAndChangeEvent }; | 38 enum TextFieldEventBehavior { DispatchNoEvent, DispatchChangeEvent, DispatchInpu
tAndChangeEvent }; |
| 39 | 39 |
| 40 class HTMLTextFormControlElement : public HTMLFormControlElementWithState { | 40 class HTMLTextFormControlElement : public HTMLFormControlElementWithState { |
| 41 public: | 41 public: |
| 42 // Common flag for HTMLInputElement::tooLong() and HTMLTextAreaElement::tooL
ong(). | 42 // Common flag for HTMLInputElement::tooLong(), HTMLTextAreaElement::tooLong
(), |
| 43 // HTMLInputElement::tooShort() and HTMLTextAreaElement::tooShort(). |
| 43 enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; | 44 enum NeedsToCheckDirtyFlag {CheckDirtyFlag, IgnoreDirtyFlag}; |
| 44 // Option of setSelectionRange. | 45 // Option of setSelectionRange. |
| 45 enum SelectionOption { | 46 enum SelectionOption { |
| 46 ChangeSelection, | 47 ChangeSelection, |
| 47 NotChangeSelection | 48 NotChangeSelection |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 virtual ~HTMLTextFormControlElement(); | 51 virtual ~HTMLTextFormControlElement(); |
| 51 | 52 |
| 52 void forwardEvent(Event*); | 53 void forwardEvent(Event*); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 157 } |
| 157 | 158 |
| 158 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 159 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
| 159 | 160 |
| 160 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 161 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
| 161 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 162 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
| 162 | 163 |
| 163 } // namespace | 164 } // namespace |
| 164 | 165 |
| 165 #endif | 166 #endif |
| OLD | NEW |