Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: Source/core/html/HTMLTextFormControlElement.h

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests for minlength & maxlength together; fix comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698